/* ==========================================================
   RAINBOW v8 — AURORA GLASS MULTICOLOR
   Standalone Theme (no conflicts)
========================================================== */

body.theme-mirc-rainbow {
    --text: #ffffff;
    --border: rgba(255,255,255,0.25);
    --glow: rgba(255,255,255,0.55);

    /* --- Aurora Gradient Animated --- */
    --accent-gradient: linear-gradient(
        90deg,
        #ff005e,
        #ff8a00,
        #ffee00,
        #0aff9d,
        #00c3ff,
        #a200ff,
        #ff005e
    );

    background: linear-gradient(
        120deg,
        #ff0066,
        #ff8a00,
        #ffee00,
        #0aff9d,
        #00c3ff,
        #a200ff
    );
    background-size: 400% 400%;
    animation: rb-bg 16s ease infinite;

    color: var(--text);
}

/* BG animation */
@keyframes rb-bg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ==========================================================
   PANELS / SECTION / TEXT BLOCKS
========================================================== */
body.theme-mirc-rainbow .section,
body.theme-mirc-rainbow .text-block,
body.theme-mirc-rainbow .warning-box {
    background: rgba(20,20,20,0.45);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgba(0,0,0,0.4);
}

/* CARDS */
body.theme-mirc-rainbow .card {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    transition: .25s ease;
}
body.theme-mirc-rainbow .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 26px rgba(255,255,255,0.55);
    border-color: #fff;
}


/* ==========================================================
   TITLES — GRADIENT TEXT
========================================================== */
body.theme-mirc-rainbow h1,
body.theme-mirc-rainbow h2,
body.theme-mirc-rainbow h3 {
    background: var(--accent-gradient);
    background-size: 300% 300%;
    animation: rb-title 8s ease infinite;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(0,0,0,0.45);
}

@keyframes rb-title {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ==========================================================
   NAVBAR
========================================================== */
body.theme-mirc-rainbow .mirc-header {
    background: rgba(15,15,15,0.55);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 22px rgba(0,0,0,0.55);
}

body.theme-mirc-rainbow .brand {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

body.theme-mirc-rainbow .nav-group > span:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

/* Submenus */
body.theme-mirc-rainbow .nav-sub {
    background: rgba(10,10,10,0.85);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
}


/* ==========================================================
   MOBILE NAV
========================================================== */
body.theme-mirc-rainbow #hamburger span {
    background: var(--accent-gradient);
    background-size: 300% 300%;
    animation: rb-title 6s linear infinite;
}

body.theme-mirc-rainbow #mobile-menu {
    background: rgba(10,10,10,0.92);
    border-left: 1px solid var(--border);
    backdrop-filter: blur(10px);
}


/* ==========================================================
   LANGUAGE SELECTOR (DESKTOP + MOBILE)
========================================================== */

body.theme-mirc-rainbow .nav-lang a.active,
body.theme-mirc-rainbow .mobile-lang-selector a.active {
    background: var(--accent-gradient);
    background-size: 300% 300%;
    animation: rb-title 8s ease infinite;

    border-color: #fff;
    color: #000;

    box-shadow: 0 0 22px rgba(255,255,255,0.65);
}


/* ==========================================================
   BUTTONS
========================================================== */
body.theme-mirc-rainbow .btn {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
}

body.theme-mirc-rainbow .btn:hover {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.45);
}


/* ==========================================================
   POPUPS
========================================================== */
body.theme-mirc-rainbow .mirc-popup {
    background: rgba(15,15,15,0.85);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

body.theme-mirc-rainbow .popup-corner {
    background: var(--accent-gradient);
    background-size: 300% 300%;
    animation: rb-title 10s ease infinite;
}

body.theme-mirc-rainbow .popup-item:hover {
    background: rgba(255,255,255,0.08);
    border-left: 3px solid #fff;
}


/* ==========================================================
   FLOATING SIGIL
========================================================== */
body.theme-mirc-rainbow .floating-sigil img {
    filter: drop-shadow(0 0 18px rgba(255,255,255,0.95));
    transition: transform .8s ease, filter .4s ease;
}

body.theme-mirc-rainbow .floating-sigil[data-fx="spectrum"] img {
    animation: rb-spin 18s linear infinite;
}

@keyframes rb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media(min-width:821px) {
    body.theme-mirc-rainbow .floating-sigil:hover img {
        transform: scale(1.16);
        filter: drop-shadow(0 0 26px rgba(255,255,255,1));
    }
}
