/* ============================================================
   BITCOIN ARCADE ZONE — CARD SYSTEM
   ============================================================
   SINGLE SOURCE OF TRUTH for every card on the platform.

   The design rule (locked):
     1. BIG card    — .hero-card     180×252  (160×224 mobile)
     2. SMALL card  — .feature-card  130×182  (120×168 mobile)

   That's it. Two sizes. Color = state, not size.

   Accents are driven by the --card-accent CSS variable, set
   per modifier class. Add a new state? Add a modifier here.
   Don't reach for inline styles or per-page <style> blocks.

   Requires: tokens.css loaded first.
   ============================================================ */


/* ============ CARD CONTAINERS (flex wrappers) ============ */

.hero-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 1.5rem 0;
    flex-wrap: wrap;
}

.hero-cards--spaced {
    margin-top: 3rem;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}


/* ============ BIG CARD — .hero-card ============
   Default accent: bitcoin-orange.
   Override with .hero-card--cyan / --green / --gold / --purple
   etc. by setting --card-accent + --card-accent-rgb.
   ============================================================ */

.hero-card {
    /* Accent tokens — overridden by modifier classes below. */
    --card-accent: var(--bitcoin-orange);
    --card-accent-rgb: 247, 147, 26;
    --card-sweep-rgb: var(--card-accent-rgb);

    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--card-accent);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    height: 252px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

a.hero-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--card-sweep-rgb), 0.15),
        transparent
    );
    opacity: 0;
    transition: left 0.5s ease, opacity 0.3s ease;
}

.hero-card:hover::before {
    left: 100%;
    opacity: 1;
}

.hero-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(var(--card-accent-rgb), 0.3);
}

.hero-card h3 {
    color: var(--card-accent);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-wrap: balance;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
    text-wrap: pretty;
}


/* ──── BIG card — accent modifiers ──── */

/* Default (orange) is already set on .hero-card. No modifier needed. */

.hero-card--cyan {
    --card-accent: var(--neon-cyan);
    --card-accent-rgb: 0, 212, 255;
    --card-sweep-rgb: 255, 255, 255;
}

.hero-card--green {
    --card-accent: var(--neon-green);
    --card-accent-rgb: 0, 255, 0;
    --card-sweep-rgb: 255, 255, 255;
}

.hero-card--gold {
    --card-accent: var(--bitcoin-gold);
    --card-accent-rgb: 255, 215, 0;
    --card-sweep-rgb: 255, 255, 255;
}

.hero-card--purple {
    --card-accent: var(--arcade-purple);
    --card-accent-rgb: 139, 92, 246;
    --card-sweep-rgb: 255, 255, 255;
    background: rgba(139, 92, 246, 0.1);
}


/* ──── BIG card — state modifiers ──── */

.hero-card--soon {
    opacity: 0.6;
    cursor: not-allowed;
}
.hero-card--soon:hover {
    transform: none;
    box-shadow: none;
}
.hero-card--soon::before {
    display: none;
}

/* Layout-only modifier: a wider hero-card for explainer/aside content
   (e.g. the single "Bitcoin Bank" card on business-model.html). The
   internal anatomy and accent system are unchanged; only width grows. */
.hero-card--wide {
    width: auto;
    min-width: 280px;
    max-width: 600px;
    height: auto;
    min-height: 252px;
    padding: 1.5rem 1.75rem 1.75rem;
}

.hero-card--disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
}
.hero-card--disabled:hover {
    transform: none;
    box-shadow: none;
}
.hero-card--disabled::before {
    display: none;
}

/* Non-interactive hero-card for loading / processing / success states.
   Same canonical 180×252 size and accent system — just kills hover-lift,
   pointer cursor, and the sweep ::before so the card reads as "working,
   please wait" instead of "click me". */
.hero-card--inert {
    cursor: default;
}
.hero-card--inert:hover {
    transform: none;
    box-shadow: none;
}
.hero-card--inert::before {
    display: none;
}


/* ============ SMALL CARD — .feature-card ============
   Default accent: neon-cyan.
   ============================================================ */

.feature-card {
    --card-accent: var(--neon-cyan);
    --card-accent-rgb: 0, 212, 255;

    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--card-accent);
    border-radius: 16px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    height: 182px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(var(--card-accent-rgb), 0.25);
}

.feature-card h3 {
    color: var(--card-accent);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
    text-wrap: balance;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
    text-wrap: pretty;
}

.feature-card .status {
    color: var(--card-accent);
    font-size: 0.7rem;
    margin-top: auto;
    padding-top: 0.35rem;
}


/* ──── SMALL card — accent modifiers ──── */

.feature-card--orange {
    --card-accent: var(--bitcoin-orange);
    --card-accent-rgb: 247, 147, 26;
}


/* ──── SMALL card — state modifiers ──── */

.feature-card--soon {
    opacity: 0.6;
    cursor: not-allowed;
}
.feature-card--soon:hover {
    transform: none;
    box-shadow: none;
}
.feature-card--soon::before {
    display: none;
}

.feature-card--clickable {
    cursor: pointer;
    border-color: rgba(247, 147, 26, 0.3);
}


/* ============ INNER ANATOMY (shared by both sizes) ============ */

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    margin-top: 0.2rem;
}
.feature-card .card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    text-align: left;
    font-size: 0.65rem;
    width: 100%;
}

.card-features li {
    color: var(--text-secondary);
    padding: 0.15rem 0;
}

.card-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid var(--card-accent);
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    background: var(--card-accent);
    color: #000;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: 0;
    font-size: 0.85rem;
    width: calc(100% - 1rem);
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--card-accent-rgb), 0.4);
}

.card-btn--ghost {
    background: transparent;
    color: var(--card-accent);
}

.card-price {
    color: var(--card-accent);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.25rem 0 0.75rem;
    line-height: 1;
}

.card-stat {
    color: var(--card-accent);
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: auto;
}

/* Default .card-stat in feature-card uses orange (matches old
   .feature-card .stat-value behavior on business-model.html). */
.feature-card .card-stat {
    color: var(--bitcoin-orange);
}

/* Small italic aside paragraph at the bottom of a hero-card.
   Used for the "play first, learn later" line on business-model.html. */
.card-aside {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Live indicator inside .feature-card (small card). The brighter,
   pulsing variant of .status — used on index.html NeonDrop tile. */
.status--live {
    color: var(--neon-green);
    font-weight: bold;
}


/* ============ STATUS BADGES (top-of-card ribbons) ============ */

.card-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 0 0 8px 8px;
    z-index: 5;
    white-space: nowrap;
    border-top: none;
}

.card-badge--soon {
    color: #aaa;
    background: rgba(80, 80, 80, 0.9);
    border: 1px solid rgba(136, 136, 136, 0.4);
}

.card-badge--live {
    color: #fff;
    background: rgba(0, 180, 0, 0.9);
    border: 1px solid rgba(0, 255, 0, 0.5);
    animation: cardBadgePulse 2s ease-in-out infinite;
}

@keyframes cardBadgePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0, 255, 0, 0.3); }
    50%      { box-shadow: 0 2px 16px rgba(0, 255, 0, 0.6); }
}


/* ============ RESPONSIVE ============
   Mobile sizes match the existing site exactly (no visual drift).
   ============================================================ */

@media (max-width: 768px) {
    .hero-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-card {
        width: 160px;
        min-width: 160px;
        max-width: 160px;
        height: 224px;
    }

    .feature-cards {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .feature-card {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 168px;
    }
}
