/**
 * ELECTRIC THEME — Consciousness Revolution
 * "This is what the future looks like."
 *
 * An additive layer on top of universal-styles.css.
 * Loaded site-wide via animate-init.js injection or direct <link>.
 * Provides: neon glow tokens, animated borders, electric keyframes,
 *           particle-ready canvas, and power-up card/button variants.
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

/* ─────────────────────────────────────────
   ELECTRIC DESIGN TOKENS
   ───────────────────────────────────────── */
:root {
    --el-cyan:    #00f5ff;
    --el-purple:  #9b30ff;
    --el-magenta: #ff00aa;
    --el-gold:    #FFD700;
    --el-green:   #39ff14;
    --el-red:     #ff2244;
    --el-dark:    #020206;
    --el-card:    rgba(8, 8, 25, 0.88);

    /* Neon glow shadows */
    --glow-cyan:    0 0 6px #00f5ff, 0 0 18px rgba(0,245,255,0.45), 0 0 40px rgba(0,245,255,0.2);
    --glow-purple:  0 0 6px #9b30ff, 0 0 18px rgba(155,48,255,0.45), 0 0 40px rgba(155,48,255,0.2);
    --glow-magenta: 0 0 6px #ff00aa, 0 0 18px rgba(255,0,170,0.45), 0 0 40px rgba(255,0,170,0.2);
    --glow-gold:    0 0 6px #FFD700, 0 0 18px rgba(255,215,0,0.45), 0 0 40px rgba(255,215,0,0.2);
    --glow-green:   0 0 6px #39ff14, 0 0 18px rgba(57,255,20,0.45),  0 0 40px rgba(57,255,20,0.2);

    /* Text neon glow */
    --text-glow-cyan:   0 0 8px rgba(0,245,255,0.8),  0 0 20px rgba(0,245,255,0.4);
    --text-glow-purple: 0 0 8px rgba(155,48,255,0.8), 0 0 20px rgba(155,48,255,0.4);
    --text-glow-gold:   0 0 8px rgba(255,215,0,0.8),  0 0 20px rgba(255,215,0,0.4);
}

/* ─────────────────────────────────────────
   KEYFRAME ANIMATIONS
   ───────────────────────────────────────── */

/* Slow rainbow shimmer across gradient text */
@keyframes el-shimmer {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* Glow intensity pulse */
@keyframes el-glow-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
}

/* Flowing gradient border */
@keyframes el-border-flow {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

/* Soft vertical float */
@keyframes el-float {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(-8px); }
}

/* Electric flicker (subtle) */
@keyframes el-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
    19%, 23%, 54%, 56%                 { opacity: 0.85; }
}

/* Scan-line sweep */
@keyframes el-scan {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Rotate (for decorative elements) */
@keyframes el-spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Card entrance */
@keyframes el-card-in {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ─────────────────────────────────────────
   ELECTRIC CANVAS BACKGROUND
   ───────────────────────────────────────── */
#electric-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

/* ─────────────────────────────────────────
   ELECTRIC TEXT UTILITIES
   ───────────────────────────────────────── */
.el-text-gradient {
    background: linear-gradient(90deg, var(--el-cyan), var(--el-purple), var(--el-magenta), var(--el-gold), var(--el-cyan));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: el-shimmer 6s linear infinite;
}

.el-glow-cyan    { text-shadow: var(--text-glow-cyan);   }
.el-glow-purple  { text-shadow: var(--text-glow-purple); }
.el-glow-gold    { text-shadow: var(--text-glow-gold);   }

/* ─────────────────────────────────────────
   ELECTRIC CARD
   ───────────────────────────────────────── */
.el-card {
    background: var(--el-card);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: el-card-in 0.5s ease both;
}

/* Animated gradient border ring */
.el-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, var(--el-cyan), var(--el-purple), var(--el-magenta), var(--el-cyan));
    background-size: 300% auto;
    animation: el-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.7;
}

/* Scan-line sweep overlay */
.el-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 245, 255, 0.04) 50%,
        transparent 100%
    );
    animation: el-scan 5s linear infinite;
    pointer-events: none;
}

.el-card:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ─────────────────────────────────────────
   ELECTRIC BUTTON
   ───────────────────────────────────────── */
.el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 44px;
    border-radius: 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    background: linear-gradient(90deg, var(--el-cyan), var(--el-purple), var(--el-cyan));
    background-size: 200% auto;
    animation: el-shimmer 3s linear infinite;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0,245,255,0.4), 0 0 40px rgba(155,48,255,0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.el-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    animation: el-flicker 4s ease-in-out infinite;
}

.el-btn:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 0 30px rgba(0,245,255,0.7), 0 0 60px rgba(155,48,255,0.4);
    color: #000;
}

/* ─────────────────────────────────────────
   ELECTRIC SECTION HEADER
   ───────────────────────────────────────── */
.el-section-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--el-cyan);
    text-shadow: var(--text-glow-cyan);
    text-align: center;
    position: relative;
    padding-bottom: 18px;
}

.el-section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--el-purple), var(--el-cyan), var(--el-magenta), var(--el-cyan), var(--el-purple));
    background-size: 300% auto;
    animation: el-border-flow 3s linear infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0,245,255,0.6);
}

/* ─────────────────────────────────────────
   ELECTRIC BADGE
   ───────────────────────────────────────── */
.el-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(90deg, rgba(0,245,255,0.15), rgba(155,48,255,0.15));
    border: 1px solid rgba(0,245,255,0.4);
    color: var(--el-cyan);
    text-shadow: 0 0 6px rgba(0,245,255,0.5);
}

/* ─────────────────────────────────────────
   ELECTRIC DOMAIN CARD ENHANCEMENT
   ───────────────────────────────────────── */
.el-domain-card {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow  0.35s ease;
}

.el-domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 28px var(--el-cyan), 0 0 60px rgba(0,245,255,0.15);
}

/* ─────────────────────────────────────────
   ELECTRIC DIVIDER
   ───────────────────────────────────────── */
.el-divider {
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, var(--el-cyan), var(--el-purple), var(--el-cyan), transparent);
    background-size: 300% auto;
    animation: el-border-flow 5s linear infinite;
    margin: 40px 0;
    opacity: 0.4;
}

/* ─────────────────────────────────────────
   ELECTRIC HERO BADGE / ANNOUNCE BAR
   ───────────────────────────────────────── */
.el-announce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    border-radius: 40px;
    background: rgba(0,245,255,0.08);
    border: 1px solid rgba(0,245,255,0.3);
    font-size: 0.78rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.08em;
    color: var(--el-cyan);
    text-shadow: var(--text-glow-cyan);
    animation: el-glow-pulse 3s ease-in-out infinite;
}

.el-announce .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--el-green);
    box-shadow: var(--glow-green);
    animation: el-glow-pulse 1.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   ELECTRIC GRID OVERLAY  (decorative)
   ───────────────────────────────────────── */
.el-grid-bg {
    background-image:
        linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ─────────────────────────────────────────
   REDUCED-MOTION OVERRIDES
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .el-text-gradient,
    .el-card::before,
    .el-btn,
    .el-section-title::after,
    .el-divider,
    .el-announce { animation: none; }

    .el-card:hover,
    .el-domain-card:hover,
    .el-btn:hover { transform: none; }
}
