/* ═══════════════════════════════════════════════════════════
   ORBIS — Button DNA Standard v2.0  (LOCKED / APPROVED)
   UIverse by gharsh11032000 — adapted for ORBIS portal system

   ⚠️  THIS STYLE IS FROZEN. DO NOT CHANGE THE ANIMATION.
   Only change: label text, --btn-color value.

   Color inheritance:
     Landing  (index.html)          → --tx-accent-genetic: #FFC629  gold
     COMMAND  (command/index.html)  → --tx-accent-genetic: #8BBFD8  steel blue
     OPERA    (opera/index.html)    → --tx-accent-genetic: #50C878  emerald

   HTML structure (copy exactly):
   ──────────────────────────────
   <button class="animated-button">
     <svg class="arr-1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
       <path d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"/>
     </svg>
     <span class="text">BUTTON LABEL</span>
     <svg class="arr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
       <path d="M16.1716 10.9999L10.8076 5.63589L12.2218 4.22168L20 11.9999L12.2218 19.778L10.8076 18.3638L16.1716 12.9999H4V10.9999H16.1716Z"/>
     </svg>
     <span class="circle"></span>
   </button>
   ═══════════════════════════════════════════════════════════ */

/* ── GLOBAL COLOR DEFAULTS (used by .animated-button) ──
   Pages can override on :root. These are safe fallbacks so the
   button works even on pages that use different variable names. */
:root {
    --tx-neon: #81FF28;
    --tx-bg:   #060606;
}

/* ── BASE (color driven by --btn-color) ──
   Default = neon (dark backgrounds). Override inline:
     style="--btn-color: var(--tx-neon);"   on dark  bg
     style="--btn-color: var(--tx-bg);"     on neon / light bg
*/
.animated-button {
    --btn-color: var(--tx-accent-genetic, var(--tx-neon, #81FF28));

    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: none;
    font-size: 14px;
    background-color: transparent;
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: var(--btn-color);
    box-shadow: 0 0 0 2px var(--btn-color);
    cursor: pointer;
    overflow: clip;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
}

.animated-button svg {
    position: absolute;
    width: 24px;
    fill: var(--btn-color);
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .arr-1 { right: 16px; }
.animated-button .arr-2 { left: -25%; }

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: var(--btn-color);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.animated-button .text {
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── HOVER STATE ── */
.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: var(--tx-bg, #060606);
    border-radius: 12px;
}
.animated-button:hover .arr-1 { right: -25%; }
.animated-button:hover .arr-2 { left: 16px; }
.animated-button:hover .text  { transform: translateX(12px); }
.animated-button:hover svg    { fill: var(--tx-bg, #060606); }
.animated-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}

/* When the button itself is dark (on neon/light bg), invert hover text to neon */
.animated-button[style*="--btn-color: var(--tx-bg)"]:hover,
.animated-button[style*="--btn-color:var(--tx-bg)"]:hover {
    color: var(--tx-neon, #81FF28);
}
.animated-button[style*="--btn-color: var(--tx-bg)"]:hover svg,
.animated-button[style*="--btn-color:var(--tx-bg)"]:hover svg {
    fill: var(--tx-neon, #81FF28);
}

/* ── FOCUS STATE (keyboard accessibility - WCAG 2.1 AA) ── */
.animated-button:focus-visible {
    outline: 2px solid var(--btn-color);
    outline-offset: 4px;
}

/* ── ACTIVE STATE ── */
.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px var(--btn-color);
}

/* ─────────────────────────────────────────────────────────────
   PORTAL COLOR OVERRIDES (auto-applied via --tx-accent-genetic)
   No extra classes needed — just use .animated-button anywhere.
   ─────────────────────────────────────────────────────────────

   COMMAND portal already sets: --tx-accent-genetic: #8BBFD8
   OPERA   portal already sets: --tx-accent-genetic: #50C878
   Landing already sets:        --tx-accent-genetic: #FFC629
*/


/* ── MOBILE — slightly smaller, centered, uniform ── */
@media (max-width: 767px) {
    .animated-button {
        padding: 12px 28px;
        font-size: 12px;
        letter-spacing: -0.01em;
    }
    .animated-button svg {
        width: 20px;
    }
    .animated-button .arr-1 { right: 12px; }
    .animated-button .arr-2 { left: -25%; }
    .animated-button:hover .arr-2 { left: 12px; }
    .animated-button .text {
        transform: translateX(-10px);
    }
    .animated-button:hover .text {
        transform: translateX(10px);
    }
}

/* ═══════════════════════════════════════════════════════════
   LEGACY — kept for backward compatibility only
   Do NOT use for new elements. Use .animated-button instead.
   ═══════════════════════════════════════════════════════════ */

.orbis-btn {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    border-radius: 100px;
    padding: 18px 40px;
    cursor: pointer;
    display: inline-block;
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-font-smoothing: antialiased;
}
.orbis-btn--primary {
    color: #ffffff;
    background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(80,200,120,0.45) 0%, rgba(80,200,120,0.15) 55%, rgba(0,0,0,0.2) 100%), rgba(255,255,255,0.08);
    border: 1px solid rgba(80,200,120,0.5);
    box-shadow: 0 -1px 0 rgba(255,255,255,0.4) inset, 0 16px 32px rgba(80,200,120,0.15);
}
.orbis-btn--primary:hover { box-shadow: 0 -1px 0 rgba(255,255,255,0.6) inset, 0 24px 48px rgba(80,200,120,0.25); transform: translateY(-4px); border-color: rgba(80,200,120,0.8); }
.orbis-btn--primary:active { transform: translateY(1px); }

.orbis-btn--ghost { color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); }
.orbis-btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); color: #ffffff; transform: translateY(-2px); }
.orbis-btn--ghost:active { transform: translateY(1px); }

.orbis-btn--champagne {
    color: #ffffff;
    background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(185,168,128,0.45) 0%, rgba(185,168,128,0.15) 55%, rgba(0,0,0,0.2) 100%), rgba(255,255,255,0.08);
    border: 1px solid rgba(185,168,128,0.5);
    box-shadow: 0 -1px 0 rgba(255,255,255,0.4) inset, 0 16px 32px rgba(185,168,128,0.15);
}
.orbis-btn--champagne:hover { box-shadow: 0 -1px 0 rgba(255,255,255,0.6) inset, 0 24px 48px rgba(185,168,128,0.25); transform: translateY(-4px); border-color: rgba(185,168,128,0.8); }
.orbis-btn--champagne:active { transform: translateY(1px); }

.orbis-btn--disabled { color: rgba(255,255,255,0.30); background: transparent; border: 1px solid rgba(255,255,255,0.08); pointer-events: none; cursor: default; opacity: 0.5; }

.orbis-btn--sm { font-size: 9px; padding: 12px 24px; letter-spacing: 0.25em; }
.orbis-btn--lg { font-size: 12px; padding: 22px 56px; }
.orbis-btn--full { width: 100%; display: block; }
