/* Cookie Consent Banner Styles */

/* Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid #0cc0df;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: 'Inter', sans-serif;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

#cookie-consent-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-policy-link {
    color: #0cc0df;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-policy-link:hover {
    color: #1E7970;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 120px;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-accept {
    background-color: #0cc0df;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #1E7970;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background-color: #6b7280;
    color: white;
}

.cookie-btn-decline:hover {
    background-color: #4b5563;
    transform: translateY(-1px);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #0cc0df;
    border: 2px solid #0cc0df;
}

.cookie-btn-settings:hover {
    background-color: #0cc0df;
    color: white;
}

/* Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#cookie-settings-modal.show {
    opacity: 1;
    visibility: visible;
}

#cookie-settings-modal.hide {
    opacity: 0;
    visibility: hidden;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#cookie-settings-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-body > p {
    color: #374151;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Cookie Categories */
.cookie-category {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cookie-category-header {
    padding: 20px;
    background-color: #f9fafb;
}

.cookie-toggle-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category-info h4 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.required-badge {
    background-color: #fbbf24;
    color: #92400e;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #0cc0df;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-toggle.required input:disabled + .cookie-slider {
    background-color: #0cc0df;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-toggle.required input:disabled + .cookie-slider:before {
    transform: translateX(26px);
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Floating Settings Button */
#cookie-settings-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.cookie-floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0cc0df;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(12, 192, 223, 0.4);
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-floating-btn:hover {
    background-color: #1E7970;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 192, 223, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: auto;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }
    
    .cookie-toggle-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    #cookie-settings-floating {
        bottom: 80px;
        right: 20px;
        left: auto;
    }
    
    .cookie-floating-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 16px;
    }
    
    .cookie-banner-text p {
        font-size: 13px;
    }
    
    .cookie-modal-header h2 {
        font-size: 20px;
    }
    
    .cookie-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Animation for consent given state */
.consent-given #cookie-consent-banner {
    display: none;
}

/* Focus styles for accessibility */
.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-floating-btn:focus {
    outline: 2px solid #0cc0df;
    outline-offset: 2px;
}

.cookie-toggle input:focus + .cookie-slider {
    box-shadow: 0 0 0 2px #0cc0df;
} 