/**
 * futuristic-ui.css
 * Consciousness Revolution — Universal Futuristic Blue-Light Design System
 *
 * Combines the professional clarity of coconutBioDiesel.html with the
 * animated blue-light glow aesthetic of famIncomeDashboard.html.
 *
 * Classes provided:
 *   .fui-card        — glassmorphism card with animated blue border
 *   .fui-card-purple — card variant with purple glow border
 *   .fui-card-gold   — card variant with gold glow border
 *   .fui-btn         — shimmer-animated primary button
 *   .fui-btn-outline — outlined animated button
 *   .fui-glow        — animated blue glow border (additive — no layout change)
 *   .fui-text        — gradient shimmer text
 *   .fui-section     — section title with animated underline
 *   .fui-badge       — electric badge chip
 *   .fui-divider     — animated rainbow divider line
 *   .fui-pulse       — breathing glow pulse
 *
 * Auto-applied via js/futuristic-init.js to common card/button elements.
 * Safe to use standalone — no dependency on electric-theme.css.
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

/* ─────────────────────────────────────────
   DESIGN TOKENS
   ───────────────────────────────────────── */
:root {
    --fui-blue:    #00c8ff;   /* Primary blue — the main "light"   */
    --fui-cyan:    #00f5ff;   /* Bright cyan accent                 */
    --fui-purple:  #9b30ff;   /* Purple accent                      */
    --fui-gold:    #FFD700;   /* Gold accent                        */
    --fui-green:   #39ff14;   /* Success / live indicator           */
    --fui-dark:    #020208;   /* Near-black background              */
    --fui-surface: rgba(6, 8, 28, 0.88);  /* Card surface          */

    /* Glow shadows */
    --fui-glow-blue:   0 0 6px #00c8ff, 0 0 20px rgba(0,200,255,0.4), 0 0 45px rgba(0,200,255,0.15);
    --fui-glow-cyan:   0 0 6px #00f5ff, 0 0 20px rgba(0,245,255,0.4), 0 0 45px rgba(0,245,255,0.15);
    --fui-glow-purple: 0 0 6px #9b30ff, 0 0 20px rgba(155,48,255,0.4), 0 0 45px rgba(155,48,255,0.15);
    --fui-glow-gold:   0 0 6px #FFD700, 0 0 20px rgba(255,215,0,0.4), 0 0 45px rgba(255,215,0,0.15);

    /* Text glow */
    --fui-text-glow: 0 0 10px rgba(0,200,255,0.9), 0 0 24px rgba(0,200,255,0.5);

    /* Border gradient */
    --fui-border-grad: linear-gradient(90deg, var(--fui-blue), var(--fui-purple), var(--fui-cyan), var(--fui-blue));
    --fui-border-grad-gold: linear-gradient(90deg, var(--fui-gold), var(--fui-purple), var(--fui-cyan), var(--fui-gold));
}

/* ─────────────────────────────────────────
   KEYFRAMES
   ───────────────────────────────────────── */
@keyframes fui-border-flow {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes fui-shimmer {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

@keyframes fui-glow-pulse {
    0%, 100% { box-shadow: var(--fui-glow-blue);  opacity: 1;    }
    50%       { box-shadow: var(--fui-glow-cyan);  opacity: 0.75; }
}

@keyframes fui-text-pulse {
    0%, 100% { text-shadow: var(--fui-text-glow); }
    50%       { text-shadow: 0 0 4px rgba(0,200,255,0.3); }
}

@keyframes fui-card-in {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

@keyframes fui-float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-7px); }
}

@keyframes fui-sweep {
    from { left: -100%; }
    to   { left: 200%;  }
}

@keyframes fui-scan {
    from { top: -40px;  }
    to   { top: 110%;   }
}

@keyframes fui-dot-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ─────────────────────────────────────────
   FUTURISTIC CARD  (.fui-card)
   ───────────────────────────────────────── */
.fui-card {
    background: var(--fui-surface);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fui-card-in 0.45s ease both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animated gradient border ring */
.fui-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--fui-border-grad);
    background-size: 300% auto;
    animation: fui-border-flow 4s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.8;
}

/* Scan-line sweep */
.fui-card::after {
    content: '';
    position: absolute;
    top: -40px; left: 0;
    width: 100%; height: 60px;
    background: linear-gradient(180deg, transparent, rgba(0,200,255,0.04), transparent);
    animation: fui-scan 6s linear infinite;
    pointer-events: none;
}

.fui-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fui-glow-blue);
}

/* Purple variant */
.fui-card-purple::before {
    background: linear-gradient(90deg, var(--fui-purple), var(--fui-cyan), var(--fui-purple));
    background-size: 300% auto;
}
.fui-card-purple:hover { box-shadow: var(--fui-glow-purple); }

/* Gold variant */
.fui-card-gold::before {
    background: var(--fui-border-grad-gold);
    background-size: 300% auto;
}
.fui-card-gold:hover { box-shadow: var(--fui-glow-gold); }

/* ─────────────────────────────────────────
   FUTURISTIC GLOW BORDER (.fui-glow)
   Additive — overlays animated border on existing elements.
   ───────────────────────────────────────── */
.fui-glow {
    position: relative;
    overflow: hidden;
}

.fui-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--fui-border-grad);
    background-size: 300% auto;
    animation: fui-border-flow 4.5s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

/* ─────────────────────────────────────────
   ANIMATED BUTTONS (.fui-btn)
   ───────────────────────────────────────── */
.fui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    border-radius: 50px;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    background: linear-gradient(90deg, var(--fui-blue), var(--fui-purple), var(--fui-cyan), var(--fui-blue));
    background-size: 250% auto;
    animation: fui-shimmer 3s linear infinite;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,200,255,0.45), 0 0 40px rgba(155,48,255,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    /* Mobile tap target */
    min-height: 48px;
    min-width: 48px;
}

/* Shimmer sweep highlight */
.fui-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-18deg);
    animation: fui-sweep 3.5s ease-in-out infinite;
}

.fui-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 28px rgba(0,200,255,0.7), 0 0 60px rgba(155,48,255,0.4);
    color: #000;
    text-decoration: none;
}

.fui-btn:active {
    transform: scale(0.98);
}

/* Outline variant */
.fui-btn-outline {
    background: transparent;
    border: 1.5px solid var(--fui-blue);
    color: var(--fui-cyan);
    box-shadow: 0 0 10px rgba(0,200,255,0.2), inset 0 0 10px rgba(0,200,255,0.05);
    animation: fui-glow-pulse 3s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(0,200,255,0.6);
}

.fui-btn-outline::before { display: none; }

.fui-btn-outline:hover {
    background: rgba(0,200,255,0.12);
    box-shadow: 0 0 24px rgba(0,200,255,0.5), inset 0 0 16px rgba(0,200,255,0.1);
    color: #fff;
}

/* ─────────────────────────────────────────
   SHIMMER TEXT  (.fui-text)
   ───────────────────────────────────────── */
.fui-text {
    background: linear-gradient(90deg, var(--fui-cyan), var(--fui-purple), var(--fui-gold), var(--fui-cyan));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fui-shimmer 5s linear infinite;
}

.fui-text-blue {
    color: var(--fui-blue);
    text-shadow: var(--fui-text-glow);
    animation: fui-text-pulse 3s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   SECTION TITLE  (.fui-section)
   ───────────────────────────────────────── */
.fui-section {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fui-cyan);
    text-shadow: var(--fui-text-glow);
    text-align: center;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.fui-section::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    margin: 10px auto 0;
    background: var(--fui-border-grad);
    background-size: 300% auto;
    animation: fui-border-flow 3s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0,200,255,0.6);
}

/* ─────────────────────────────────────────
   BADGE  (.fui-badge)
   ───────────────────────────────────────── */
.fui-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0,200,255,0.1);
    border: 1px solid rgba(0,200,255,0.4);
    color: var(--fui-cyan);
    text-shadow: 0 0 6px rgba(0,200,255,0.5);
    animation: fui-glow-pulse 3s ease-in-out infinite;
}

.fui-badge-live::before {
    content: '● ';
    color: var(--fui-green);
    animation: fui-dot-blink 1.2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   DIVIDER  (.fui-divider)
   ───────────────────────────────────────── */
.fui-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--fui-blue), var(--fui-purple), var(--fui-cyan), transparent);
    background-size: 300% auto;
    animation: fui-border-flow 5s linear infinite;
    margin: 36px 0;
    opacity: 0.45;
}

/* ─────────────────────────────────────────
   PULSE ANIMATION  (.fui-pulse)
   ───────────────────────────────────────── */
.fui-pulse {
    animation: fui-glow-pulse 2.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   GRID OVERLAY BACKGROUND
   ───────────────────────────────────────── */
.fui-grid-bg {
    background-image:
        linear-gradient(rgba(0,200,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,200,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ─────────────────────────────────────────
   ANNOUNCE BAR  (.fui-announce)
   ───────────────────────────────────────── */
.fui-announce {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 40px;
    background: rgba(0,200,255,0.07);
    border: 1px solid rgba(0,200,255,0.3);
    font-size: 0.78rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    color: var(--fui-cyan);
    text-shadow: 0 0 8px rgba(0,200,255,0.5);
    animation: fui-glow-pulse 3s ease-in-out infinite;
}

.fui-announce .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fui-green);
    box-shadow: 0 0 6px var(--fui-green);
    animation: fui-dot-blink 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────
   STAT / METRIC WIDGET  (.fui-stat)
   ───────────────────────────────────────── */
.fui-stat {
    text-align: center;
    padding: 20px 16px;
}

.fui-stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--fui-cyan);
    text-shadow: var(--fui-text-glow);
    line-height: 1;
    margin-bottom: 6px;
}

.fui-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(200,220,255,0.5);
    font-family: 'Orbitron', sans-serif;
}

/* ─────────────────────────────────────────
   RESPONSIVE  (mobile-first)
   ───────────────────────────────────────── */
@media (max-width: 480px) {
    .fui-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .fui-btn {
        padding: 13px 28px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .fui-section {
        font-size: 1rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 768px) {
    .fui-card:hover {
        /* Disable lift on mobile — no hover state */
        transform: none;
    }
}

/* ─────────────────────────────────────────
   REDUCED-MOTION OVERRIDES
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .fui-card::before,
    .fui-card::after,
    .fui-glow::before,
    .fui-btn,
    .fui-btn::before,
    .fui-text,
    .fui-section::after,
    .fui-divider,
    .fui-badge,
    .fui-announce,
    .fui-pulse,
    .fui-text-blue {
        animation: none;
    }

    .fui-card:hover,
    .fui-btn:hover {
        transform: none;
    }
}
