/* Cookie Consent Styles */
/* This file contains only cookie-related styles to avoid conflicts */

/* Cookie Consent Banner Styles */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 41, 55, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.cookie-banner-text p {
    margin: 0;
    color: #d1d5db;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-btn.primary {
    background: #2563eb;
    color: white;
}

.cookie-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.cookie-btn.secondary {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

.cookie-btn.secondary:hover {
    background: #4b5563;
    color: white;
}

.cookie-btn.tertiary {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #374151;
}

.cookie-btn.tertiary:hover {
    background: #374151;
    color: white;
}

/* Cookie Settings Modal */
#cookie-settings-modal {
    /* Full screen overlay */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    
    /* Backdrop */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    
    /* Center the content */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal-content {
    /* Modal content box */
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Ensure it stays centered */
    position: relative;
    z-index: 1;
}

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

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    line-height: 1;
}

.close-btn:hover {
    color: #1f2937;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: #1f2937;
}

.cookie-category p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.cookie-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cookie-toggle input:checked + .toggle-slider {
    background: #2563eb;
}

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

.toggle-slider.essential {
    background: #10b981;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
}

/* Footer Layout for Cookie Settings */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Cookie Settings Link in Footer */
.cookie-settings-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid #4b5563;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-settings-link:hover {
    color: white;
    border-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

/* Mobile Responsive for Cookie Components */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    #cookie-settings-modal {
        padding: 1rem;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
