/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

.cookie-consent-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-banner .banner-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-banner h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.cookie-consent-banner p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-consent-banner .banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cookie-consent-banner .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #3b82f6);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cookie-consent-banner .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookie-consent-banner .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #3b82f6);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    color: #ffffff;
}

.cookie-consent-banner .btn-secondary {
    background: #6b7280;
    color: #ffffff;
}

.cookie-consent-banner .btn-secondary:hover {
    background: #4b5563;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.cookie-consent-banner .btn-link {
    background: transparent;
    color: #007bff;
    padding: 0.75rem 1rem;
}

.cookie-consent-banner .btn-link:hover {
    text-decoration: underline;
    background: transparent;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    padding: 2rem;
    overflow-y: auto;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-modal .modal-content {
    background: #ffffff;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

.cookie-settings-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.cookie-settings-modal .close-btn:hover {
    background: #f0f0f0;
}

.cookie-settings-modal .cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.cookie-settings-modal .cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-settings-modal .cookie-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.cookie-settings-modal .cookie-category-header .toggle {
    position: relative;
    width: 50px;
    height: 26px;
}

.cookie-settings-modal .cookie-category-header .toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-settings-modal .cookie-category-header .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-settings-modal .cookie-category-header .toggle input:checked + .toggle-slider {
    background-color: #007bff;
}

.cookie-settings-modal .cookie-category-header .toggle input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.cookie-settings-modal .cookie-category-header .toggle input:disabled + .toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-settings-modal .cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

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

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-banner .banner-actions {
        flex-direction: column;
    }

    .cookie-consent-banner .btn {
        width: 100%;
    }

    .cookie-settings-modal {
        padding: 1rem;
    }

    .cookie-settings-modal .modal-content {
        padding: 1.5rem;
    }
}
