/*
 * Brainflood Cookie Consent Banner Styles
 * Matches glassmorphism dark theme of brainflood.com
 */

#bf-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    /* Start hidden — JS adds .bf-consent-visible to animate in */
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;

    /* Glassmorphism dark panel matching site aesthetic */
    background: rgba(12, 18, 41, 0.97);
    border-top: 1px solid rgba(144, 97, 255, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #cbd5e1; /* slate-300 */
}

#bf-cookie-banner.bf-consent-visible {
    transform: translateY(0);
    opacity: 1;
}

#bf-cookie-banner.bf-consent-hiding {
    transform: translateY(100%);
    opacity: 0;
}

.bf-consent-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .bf-consent-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }
}

.bf-consent-text {
    flex: 1;
    line-height: 1.5;
}

.bf-consent-text a {
    color: #9061ff; /* brand-400 */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bf-consent-text a:hover {
    color: #b49cff; /* brand-300 */
}

.bf-consent-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.bf-consent-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
    white-space: nowrap;
}

.bf-consent-btn-accept {
    background: #7c3aed; /* brand-500 */
    color: #fff;
    border-color: #7c3aed;
}

.bf-consent-btn-accept:hover,
.bf-consent-btn-accept:focus-visible {
    background: #9061ff; /* brand-400 */
    border-color: #9061ff;
    outline: none;
}

.bf-consent-btn-reject {
    background: transparent;
    color: #94a3b8; /* slate-400 */
    border-color: rgba(148, 163, 184, 0.3);
}

.bf-consent-btn-reject:hover,
.bf-consent-btn-reject:focus-visible {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.6);
    outline: none;
}

/* Focus ring for keyboard navigation */
.bf-consent-btn:focus-visible {
    box-shadow: 0 0 0 2px #7c3aed;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    #bf-cookie-banner {
        transition: none;
    }
}
