/* ============================================
   COOKIE CONSENT BAR
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0d1a10; /* Sleek dark forest green matching header */
    border-top: 3px solid var(--color-primary-light);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-primary);
}

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

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--color-primary-light);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(74, 124, 89, 0.2);
}

.cookie-consent-text {
    flex: 1;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-consent-text strong {
    color: white;
    font-size: 1rem;
    font-family: var(--font-display);
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.cookie-consent-text a {
    color: var(--color-primary-light);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-text a:hover {
    color: white;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-align: center;
    font-family: inherit;
}

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

.cookie-btn-accept:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cookie-btn-settings {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
}

.cookie-btn-settings:hover {
    border-color: var(--color-primary-light);
    color: white;
}

.cookie-btn-reject {
    background: transparent;
    color: #64748b;
    border: none;
    font-size: 0.8rem;
    padding: 0.4rem;
    text-decoration: underline;
}

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

/* ============================================
   COOKIE SETTINGS PANEL
   ============================================ */

.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
}

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

.cookie-settings-panel {
    background: white;
    border-radius: 1.25rem;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: cookieSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: var(--font-primary);
}

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

.cookie-settings-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    font-family: var(--font-display);
    display: flex;
    align-items: center;
}

.cookie-settings-header p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

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

.cookie-category {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

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

.cookie-category-header label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
}

.cookie-category-header label i {
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    padding-left: 1.6rem;
}

/* Toggle switch */
.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: #e2e8f0;
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.cookie-settings-footer .cookie-btn {
    flex: 1;
}

.cookie-btn-save {
    background: var(--color-primary-light);
    color: white;
}

.cookie-btn-save:hover {
    background: var(--color-primary);
}

.cookie-btn-accept-all {
    background: #0f172a;
    color: white;
}

.cookie-btn-accept-all:hover {
    background: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .cookie-consent-icon {
        display: none;
    }

    .cookie-consent-actions {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .cookie-btn-reject {
        width: 100%;
        text-align: center;
        padding: 0.2rem;
    }

    .cookie-consent-text {
        font-size: 0.82rem;
    }

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

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