/* ============================================================
   PORTA DE ENTRADA (splash.php)

   Reaproveita os tokens e os cards do fundador do style.css.
   Aqui so mora o que e exclusivo desta tela.
   ============================================================ */

.splash-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-body);
    color: var(--text-light);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Mesma arte de fundo da landing, fixa e escurecida para o texto
   e os cards nao brigarem com ela. */
.splash-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('/plugins/olimpia/themes/olimpia/images/background.avif') no-repeat center center;
    background-size: cover;
}

.splash-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Deixa a arte respirar no topo e fecha em preto onde ficam os cards,
       que precisam de fundo neutro para as cores dos tiers lerem. */
    background: linear-gradient(180deg,
        rgba(12, 8, 6, 0.38) 0%,
        rgba(12, 8, 6, 0.62) 20%,
        rgba(12, 8, 6, 0.94) 46%,
        rgba(12, 8, 6, 0.99) 100%);
}

.splash {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
    padding: 42px 22px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

/* --- Cabecalho --- */
.splash-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.splash-logo {
    width: 300px;
    height: auto;
    margin-bottom: 2px;
}

.splash-eyebrow {
    margin: 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--primary);
    padding: 5px 15px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: rgba(232, 102, 60, 0.07);
}

.splash-title {
    margin: 0;
    max-width: 20ch;
    font-family: 'Changa One', 'Oswald', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5.2vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: 0.5px;
    text-wrap: balance;
    color: var(--text-white);
}

.splash-title em {
    font-style: normal;
    color: var(--primary);
}

.splash-lead {
    margin: 0;
    max-width: 60ch;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.splash-lead strong {
    color: var(--text-light);
    font-weight: 700;
}

/* --- Cards do fundador ---
   O partial ja traz a grade de 3 colunas; aqui so garantimos a largura
   e tiramos o respiro de topo que ele usa dentro da landing. */
.splash-tiers {
    width: 100%;
}

.splash-tiers .founder-tiers-grid {
    margin-top: 0;
}

/* --- Acoes --- */
.splash-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.splash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 15px 34px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.splash-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 26px rgba(232, 102, 60, 0.3);
}

.splash-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(232, 102, 60, 0.42);
}

.splash-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-light);
}

.splash-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.splash-btn:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

.splash-note {
    margin: -16px 0 0;
    max-width: 56ch;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-dim);
}

.splash-note strong {
    color: var(--text-muted);
    font-weight: 700;
}


/* O par de baixo repete o de cima; separa dos cards sem virar outro bloco. */
.splash-actions-fim {
    margin-top: 4px;
    padding-top: 26px;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
}

/* A nota do cadastro so precisa aparecer uma vez. */
.splash-actions-topo + .splash-note { margin-top: -18px; }
.splash-actions-fim + .splash-note { display: none; }

/* --- Rodape --- */
.splash-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
}

.splash-foot a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.splash-foot a:hover {
    color: var(--primary);
}

.splash-sep {
    color: var(--text-dim);
    opacity: 0.5;
}

@media (max-width: 760px) {
    .splash { padding: 30px 16px 54px; gap: 26px; }
    .splash-logo { width: 220px; }
    .splash-btn { min-width: 100%; }
    .splash-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .splash-btn { transition: none; }
    .splash-btn:hover { transform: none; }
}

/* ============================================================
   COLUNA SOCIAL — borda direita, fixa.

   Mesma linguagem dos quadrados da versao antiga: borda quente,
   fundo escuro, icone laranja. O Discord ganha o contador de
   membros; os outros dois ficam so com o icone, para o numero
   ser informacao e nao enfeite repetido.
   ============================================================ */
.social-rail {
    position: fixed;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-rail-item {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(12, 8, 6, 0.72);
    border: 1px solid var(--border-subtle);
    color: var(--primary);
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.22s ease;
}

.social-rail-item:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateX(-3px);
    box-shadow: 0 6px 22px rgba(232, 102, 60, 0.36);
}

.social-rail-item:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

/* Contador de membros, colado no canto do quadrado do Discord. */
.social-rail-count {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--primary);
    border: 1px solid var(--bg-body);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.social-rail-item:hover .social-rail-count {
    background: var(--bg-body);
    color: var(--primary);
}

/* Quantos estao online agora — verde, separado do total. */
.social-rail-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(12, 8, 6, 0.72);
    border: 1px solid rgba(120, 200, 120, 0.28);
    color: #8fd08f;
    font-size: 10.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.social-rail-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #57d857;
    box-shadow: 0 0 6px rgba(87, 216, 87, 0.8);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* No celular a coluna vertical rouba largura da tela: vira uma
   fileira horizontal no rodape do conteudo. */
@media (max-width: 900px) {
    .social-rail {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 0 auto 6px;
    }
    .social-rail-item { width: 42px; height: 42px; }
    .social-rail-item svg { width: 18px; height: 18px; }
    .social-rail-item:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .social-rail-item { transition: none; }
    .social-rail-item:hover { transform: none; }
}

/* ============================================
   CONTADOR DENTRO DA SPLASH

   O componente e o mesmo da landing. Aqui ele perde duas partes porque a
   propria splash ja as diz, logo abaixo:
     - o rotulo "Pacote Fundador" repetiria o .splash-eyebrow;
     - a cauda "depois disso os outfits e montarias saem da loja..." repetiria
       o .splash-lead quase palavra por palavra.
   Sobra o que so o contador tem: o tempo restante e a data.
   ============================================ */
.splash-head .fc-kicker,
.splash-head .fc-nota-cauda {
    display: none;
}

.splash-head .fc-band.is-hero {
    margin: 6px 0 26px;
}

/* ============================================
   ROADMAP DENTRO DA SPLASH

   O componente vem de partials/roadmap.php e ja tem todo o estilo em
   style.css. Aqui so ajusto o encaixe: a splash e um flex column centrado,
   entao o bloco precisa dizer que ocupa a largura toda, senao ele encolhe
   ate o tamanho do texto e a grade de marcos se espreme.
   ============================================ */
.splash-roadmap {
    width: 100%;
    max-width: 100%;
    padding-top: 6px;
}

/* Na landing o cabecalho de secao respira dentro de uma secao propria; aqui
   ele divide o espaco com o "gap" da splash e ficaria longe demais. */
.splash-roadmap .section-header {
    margin-bottom: 26px;
}

/* ---------------------------------------------------------------------------
   Seletor de idioma do rail social
   A splash nao tem navbar, entao a bandeira vive no topo da coluna, acima do
   Discord. Um botao so: mostra a bandeira do idioma para o qual se troca.
   --------------------------------------------------------------------------- */
.social-rail-lang {
    padding: 0;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.social-rail-flag {
    width: 26px;
    height: 18px;
    display: block;
    border-radius: 3px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.social-rail-flag-br {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 504'%3E%3Crect fill='%23009c3b' width='720' height='504'/%3E%3Cpath fill='%23ffdf00' d='M360 36L60 252l300 216 300-216z'/%3E%3Ccircle fill='%23002776' cx='360' cy='252' r='90'/%3E%3Cpath fill='%23fff' d='M273.6 283.5c0-47.7 38.7-86.4 86.4-86.4 23.8 0 45.4 9.7 61 25.3-18.4-22.4-46.3-36.7-77.4-36.7-55.2 0-100 44.8-100 100 0 31.1 14.3 59 36.7 77.4-15.6-15.6-25.3-37.2-25.3-61z'/%3E%3C/svg%3E");
}

.social-rail-flag-us {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7410 3900'%3E%3Crect fill='%23b22234' width='7410' height='3900'/%3E%3Cg fill='%23fff'%3E%3Crect y='300' width='7410' height='300'/%3E%3Crect y='900' width='7410' height='300'/%3E%3Crect y='1500' width='7410' height='300'/%3E%3Crect y='2100' width='7410' height='300'/%3E%3Crect y='2700' width='7410' height='300'/%3E%3Crect y='3300' width='7410' height='300'/%3E%3C/g%3E%3Crect fill='%233c3b6e' width='2964' height='2100'/%3E%3Cg fill='%23fff'%3E%3Cg id='s18'%3E%3Cg id='s9'%3E%3Cg id='s5'%3E%3Cg id='s4'%3E%3Cpath id='s' d='M247 90l70.5 217-184.5-134h228l-184.5 134z'/%3E%3Cuse href='%23s' y='420'/%3E%3Cuse href='%23s' y='840'/%3E%3Cuse href='%23s' y='1260'/%3E%3C/g%3E%3Cuse href='%23s' y='1680'/%3E%3C/g%3E%3Cuse href='%23s4' x='247' y='210'/%3E%3C/g%3E%3Cuse href='%23s9' x='494'/%3E%3C/g%3E%3Cuse href='%23s18' x='988'/%3E%3Cuse href='%23s9' x='1976'/%3E%3Cuse href='%23s5' x='2470'/%3E%3C/g%3E%3C/svg%3E");
}

.social-rail-lang:hover .social-rail-flag {
    transform: scale(1.08);
}

@media screen and (max-width: 760px) {
    .social-rail-flag { width: 24px; height: 16px; }
}
