/* GoalLogic Premium Cookie Banner */

.cookie-banner {
    position: fixed;
    bottom: -100%; /* Hidden by default, animated in */
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px;
    background: transparent;
    pointer-events: none; /* Let clicks pass through when hidden */
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    bottom: 0;
    pointer-events: auto;
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.05) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.cookie-icon {
    font-size: 28px;
    color: var(--accent-green);
    background: rgba(30, 215, 96, 0.1);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-text h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cookie-text a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-decline:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cookie-accept {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 2px 10px rgba(30, 215, 96, 0.2);
}

.cookie-accept:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(30, 215, 96, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 20px;
    }
    
    .cookie-content {
        align-items: flex-start;
    }
    
    .cookie-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .cookie-actions {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    /* Ensure it sits above the mobile bottom nav */
    .cookie-banner.visible {
        bottom: calc(60px + env(safe-area-inset-bottom));
    }
}
