/* GDPR Cookie Consent Banner Styles */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: white;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem;
}

.cookie-banner-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-banner-text a {
    color: #F6CB00;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    color: #ffdd00;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: #F6CB00;
    color: #1a1a1a;
    border-color: #F6CB00;
    font-weight: 700;
}

.cookie-btn-accept:hover {
    background-color: #ffdd00;
    border-color: #ffdd00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(246, 203, 0, 0.4);
}

.cookie-btn-settings {
    background-color: transparent;
    color: #e5e5e5;
    border-color: #444444;
}

.cookie-btn-settings:hover {
    background-color: #2a2a2a;
    border-color: #666666;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: transparent;
    color: #999999;
    border-color: #333333;
}

.cookie-btn-reject:hover {
    background-color: #252525;
    border-color: #444444;
    color: #cccccc;
}

/* Settings Modal */
#cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-settings-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.cookie-settings-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.cookie-settings-body {
    padding: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

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

.cookie-category-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-category-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #dbeafe;
    color: #1e40af;
}

.cookie-category-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    width: 3rem;
    height: 1.75rem;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 1.75rem;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 1.25rem;
    width: 1.25rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #10b981;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #10b981;
}

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

.cookie-btn-save {
    background-color: #2563eb;
    color: white;
    border: none;
}

.cookie-btn-save:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.cookie-btn-cancel {
    background-color: #e5e7eb;
    color: #1f2937;
    border: none;
}

.cookie-btn-cancel:hover {
    background-color: #d1d5db;
}

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

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-content {
        width: 95%;
        max-height: 90vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1rem;
    }

    .cookie-settings-footer {
        flex-direction: column-reverse;
    }

    .cookie-btn-save,
    .cookie-btn-cancel {
        width: 100%;
    }
}

/* Utility */
.hidden {
    display: none !important;
}
