/* ===================================
   Privacy Banner - Elegant & Professional Design
   =================================== */

/* Banner Container - Bottom Bar Style */
.cookie-banner-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner-overlay.active {
    transform: translateY(0);
}

.cookie-banner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Content */
.cookie-content {
    flex: 1;
    max-width: 800px;
}

.cookie-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.cookie-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.cookie-link {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.cookie-link:hover {
    border-bottom-color: #60a5fa;
}

/* Actions */
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #ffffff;
    color: #0f172a;
}

.cookie-btn-primary:hover {
    background: #f1f5f9;
}

.cookie-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px 16px;
}

.cookie-btn-text:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.cookie-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-modal-overlay.active .cookie-modal {
    transform: scale(1);
}

/* Modal Header */
.cookie-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.cookie-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.cookie-modal-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.cookie-modal-close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f1f5f9;
}

.cookie-modal-close svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

/* Modal Body */
.cookie-modal-body {
    padding: 24px 32px;
}

/* Category */
.cookie-category {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #0f172a;
    color: white;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-category-description {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

/* Toggle Switch - Minimal Design */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.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: #e5e7eb;
    border-radius: 24px;
    transition: background 0.2s ease;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #0f172a;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Footer */
.cookie-modal-footer {
    padding: 20px 32px 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 6px;
}

.cookie-modal-footer .cookie-btn-primary {
    background: #0f172a;
    color: white;
}

.cookie-modal-footer .cookie-btn-primary:hover {
    background: #1e293b;
}

.cookie-modal-footer .cookie-btn-secondary {
    background: transparent;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

.cookie-modal-footer .cookie-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Responsive */
@media (max-width: 1024px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px 32px;
    }

    .cookie-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 24px;
    }

    .cookie-content {
        max-width: 100%;
    }

    .cookie-title {
        font-size: 0.875rem;
    }

    .cookie-description {
        font-size: 0.8125rem;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-modal {
        border-radius: 12px;
        max-height: 90vh;
    }

    .cookie-modal-header {
        padding: 24px 24px 20px;
    }

    .cookie-modal-title {
        font-size: 1.125rem;
        padding-right: 32px;
    }

    .cookie-modal-close {
        top: 24px;
        right: 24px;
    }

    .cookie-modal-body {
        padding: 20px 24px;
    }

    .cookie-modal-footer {
        padding: 20px 24px 24px;
        flex-direction: column;
    }

    .cookie-category {
        padding: 16px;
    }
}

/* Scrollbar */
.cookie-modal::-webkit-scrollbar {
    width: 6px;
}

.cookie-modal::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-modal::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cookie-modal::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
