/* ========================
   COOKIE BANNER
   ======================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 20px 24px;
    box-shadow: 0 -4px 24px rgba(26, 58, 82, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
    color: var(--color-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

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

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--color-orange);
    color: white;
}

.cookie-btn-accept:hover {
    background: #e55a38;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 71, 0.4);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 10px 12px;
}

.cookie-btn-customize:hover {
    color: white;
}

/* ========================
   COOKIE MODAL
   ======================== */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.cookie-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-navy);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--color-navy);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-intro {
    color: #6B7280;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cookie-category {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-category-info h3 {
    font-size: 1.1rem;
    color: var(--color-navy);
    margin: 0 0 8px 0;
}

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

/* Toggle Switch */
.cookie-toggle {
    flex-shrink: 0;
}

.cookie-checkbox {
    display: none;
}

.toggle-label {
    display: block;
    width: 52px;
    height: 28px;
    background: #D1D5DB;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-checkbox:checked + .toggle-label {
    background: var(--color-orange);
}

.cookie-checkbox:checked + .toggle-label .toggle-switch {
    transform: translateX(24px);
}

.toggle-disabled {
    background: #E5E7EB;
    color: #6B7280;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cookie-policy-link {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.cookie-policy-link a {
    color: var(--color-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-policy-link a:hover {
    color: var(--color-navy);
}

.cookie-modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #E5E7EB;
    flex-wrap: wrap;
}

.cookie-modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.cookie-modal-btn-primary {
    background: var(--color-orange);
    color: white;
}

.cookie-modal-btn-primary:hover {
    background: #e55a38;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 71, 0.3);
}

.cookie-modal-btn-secondary {
    background: white;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.cookie-modal-btn-secondary:hover {
    background: var(--color-navy);
    color: white;
}

/* ========================
   MOBILE RESPONSIVE
   ======================== */
@media (max-width: 768px) {
    /* Banner mobile */
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-container {
        flex-direction: column;
        gap: 16px;
    }

    .cookie-banner-text {
        font-size: 0.85rem;
        min-width: auto;
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* Modal mobile */
    .cookie-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-modal-header h2 {
        font-size: 1.4rem;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-toggle {
        align-self: flex-end;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-btn {
        width: 100%;
    }
}
