/* Cookie Consent Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 24px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    display: flex;
}

.cookie-banner__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner__header i {
    font-size: 1.2rem;
    color: var(--primary);
    filter: drop-shadow(0 2px 6px var(--primary-glow));
}

.cookie-banner h3 {
    font-size: 1.15rem;
    font-family: var(--font-heading);
    color: var(--text-heading);
    margin: 0;
    font-weight: 800;
}

.cookie-banner p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
}

.cookie-banner .btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 22, 40, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay.visible {
    display: flex;
}

.cookie-modal {
    background: var(--bg-card);
    width: 600px;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-modal__header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cookie-modal__header h2 {
    font-size: 1.5rem;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cookie-modal__body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category__title {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-heading);
}

.cookie-category__status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.cookie-category__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background-color: #eee;
    cursor: not-allowed;
}

.cookie-modal__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal__links {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
}

.cookie-modal__links a {
    color: var(--primary);
    text-decoration: underline;
}

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

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .cookie-banner__actions {
        flex-direction: column;
    }
}
