/**
 * Hero Core — CSS Base (funciona com qualquer tema).
 *
 * Carregado pelo plugin, não pelo tema.
 * O tema pode sobrescrever tudo com hero-components.css.
 * Se o tema não tiver estilos Hero, este CSS garante o mínimo funcional.
 */

/* ── Tokens globais (só registra se não existem) ── */
:root {
    --lime: #A3D900;
    --lime-dark: #8BC200;
    --lime-light: rgba(163, 217, 0, .08);
    --dark: #1A1A1A;
    --charcoal: #2D2D2D;
    --surface: rgba(255, 255, 255, .04);
    --border: rgba(255, 255, 255, .06);
    --mid: #888;
    --light-text: rgba(255, 255, 255, .5);
    --white: #FFF;
    --green: #27AE60;
    --red: #FF3B3B;
    --orange: #FF8C42;
    --cyan: #00D4FF;
    --purple: #9B59FF;
    --pink: #FF4D8D;
    --gold: #FFD700;
    --font-d: 'Bangers', cursive;
    --font-b: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --transition: all .2s ease;
}

/* ── Utilitários ── */
.hero-title { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.hero-title-sm { font-size: 17px; font-weight: 700; }
.hero-subtitle { font-size: 13px; color: #888; }
.hero-gc { color: var(--gold) !important; }
.hero-loading { text-align: center; padding: 24px; color: #888; }
.hero-empty { text-align: center; padding: 24px; color: #888; }
.hero-error { color: var(--red); font-size: 13px; }
.hero-success { color: var(--green); font-size: 13px; }

/* ── Input ── */
.hero-input {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; box-sizing: border-box;
}
.hero-input:focus { outline: none; border-color: var(--lime); }
.hero-input-lg { font-size: 18px; padding: 14px; }
.hero-input-pin { font-size: 24px; text-align: center; letter-spacing: 4px; }
.hero-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; }
.hero-select-block { width: 100%; }
.hero-label { font-size: 12px; color: #888; margin-bottom: 4px; display: block; }

/* ── Button ── */
.hero-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px;
    font-weight: 600; cursor: pointer; text-decoration: none;
}
.hero-btn-primary { background: var(--lime); color: #1a1a1a; }
.hero-btn-primary:hover { opacity: .9; }
.hero-btn-outline { background: transparent; border: 1px solid #ddd; color: inherit; }
.hero-btn-outline:hover { border-color: var(--lime); }
.hero-btn-sm { padding: 6px 14px; font-size: 12px; }
.hero-btn-block { width: 100%; }

/* ── Tab ── */
.hero-tab { padding: 6px 14px; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; background: transparent; color: #888; }
.hero-tab.active { background: var(--lime); color: #1a1a1a; }

/* ── Badge ── */
.hero-badge { display: inline-block; padding: 2px 8px; border-radius: 50px; font-size: 11px; font-weight: 600; }

/* ── Section header ── */
.hero-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ── Stat card ── */
.hero-stat-card { background: #f9f9f7; border: 1px solid #eee; border-radius: 10px; padding: 14px; text-align: center; }
.hero-stat-card strong { display: block; font-size: 22px; }
.hero-stat-card span { font-size: 11px; color: #888; }

/* ── Radio card ── */
.hero-radio-card { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.hero-radio-card:has(input:checked) { border-color: var(--lime); background: var(--lime-light); }

/* ── Profile card ── */
.hero-profile-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; text-align: center; }
.hero-profile-cover { height: 60px; background: linear-gradient(135deg, var(--lime), var(--cyan)); }
.hero-profile-body { padding: 0 16px 16px; margin-top: -32px; }
.hero-profile-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; }
.hero-profile-name { font-size: 18px; font-weight: 700; margin-top: 6px; }
.hero-profile-level { display: inline-block; padding: 2px 10px; border-radius: 50px; background: var(--lime-light); color: var(--lime); font-size: 11px; font-weight: 600; }
.hero-profile-stats { display: flex; justify-content: center; gap: 20px; margin: 12px 0; }
.hero-stat-value { display: block; font-size: 18px; font-weight: 800; }
.hero-stat-label { font-size: 11px; color: #888; }

/* ── Leaderboard ── */
.hero-leaderboard { border: 1px solid #eee; border-radius: 12px; padding: 16px; }
.hero-lb-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; margin-bottom: 3px; }
.hero-lb-rank { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.hero-lb-r1 { background: var(--gold); color: #1a1a1a; }
.hero-lb-r2 { background: #e0e0e0; }
.hero-lb-r3 { background: #cd9b6a; color: #fff; }
.hero-lb-rn { background: #f0f0f0; }
.hero-lb-avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.hero-lb-name { flex: 1; font-weight: 600; font-size: 13px; }
.hero-lb-score { font-size: 15px; font-weight: 800; color: var(--lime); }

/* ── Login ── */
.hero-login-form { max-width: 340px; margin: 0 auto; }
.hero-login-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.hero-login-form form { display: flex; flex-direction: column; gap: 8px; }
.hero-login-hint { font-size: 12px; color: var(--cyan); margin-top: 10px; text-align: center; }

@media (max-width: 480px) {
    .hero-profile-stats { gap: 12px; }
}
