/* =========================================================
   tema.css - VISUAL "JOGO DE LUTA / QUADRINHO" DO 2XKO
   Carregado DEPOIS do estilo de cada página, para dar o mesmo
   acabamento a todo o 2XKO: fundo com retícula (halftone),
   formas em diagonal, brilho verde neon e efeito de "salto" ao
   passar o mouse.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --ko-verde: #00f070;
    --ko-verde-escuro: #00a84e;
    --ko-magenta: #ff2e88;
    --ko-amarelo: #ffe14d;
    --ko-noite: #0a0d12;
    --ko-painel: rgba(17, 22, 30, 0.9);
    --ko-borda: rgba(0, 240, 112, 0.25);
    --ko-brilho: 0 0 18px rgba(0, 240, 112, 0.55), 0 0 40px rgba(0, 240, 112, 0.2);
    --ko-sombra-hq: 5px 5px 0 #000;   /* sombra "chapada" de quadrinho */
    --ko-diag: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* --- FUNDO: noite + retícula de quadrinho + linhas de velocidade --- */
body {
    font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif !important;
    font-size: 17px;
    background-color: var(--ko-noite) !important;
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(0, 240, 112, 0.12), transparent 45%),
        radial-gradient(ellipse at 100% 20%, rgba(255, 46, 136, 0.08), transparent 45%) !important;
    background-attachment: fixed !important;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(0, 240, 112, 0.22) 1.3px, transparent 1.8px),
        repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.018) 46px 48px);
    background-size: 14px 14px, auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
            mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.15) 100%);
}

/* --- CABEÇALHO ESCURO COM FAIXA DIAGONAL --- */
header {
    background: linear-gradient(180deg, #05070a, rgba(10, 13, 18, 0.6)) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
    padding: 34px 0 26px !important;
}

header::before {
    content: "";
    position: absolute;
    left: -10%; right: -10%; top: 38%;
    height: 54px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 112, 0.22), transparent);
    transform: skewY(-4deg);
    pointer-events: none;
}

header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--ko-verde), var(--ko-magenta), transparent);
}

header h1 {
    position: relative;
    font-style: italic;
    letter-spacing: 3px;
    color: #fff !important;
    text-shadow: 3px 3px 0 #000, -2px -2px 0 var(--ko-verde), 2px -2px 0 var(--ko-verde), -2px 2px 0 var(--ko-verde), 2px 2px 0 var(--ko-verde), 0 0 30px rgba(0, 240, 112, 0.6) !important;
    transform: skewX(-6deg);
}

/* --- MENU: botões em diagonal, estilo tela de seleção --- */
.navegacao { position: relative; gap: 10px !important; flex-wrap: wrap; justify-content: center; }

.nav-botao {
    background: #11161e !important;
    color: #e2e8f0 !important;
    border: none !important;
    border-radius: 0 !important;
    clip-path: var(--ko-diag);
    padding: 11px 26px !important;
    font-family: 'Russo One', sans-serif;
    font-weight: 400 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.82rem;
    box-shadow: inset 0 0 0 1px var(--ko-borda);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

.nav-botao:hover, .nav-botao.ativo {
    background: var(--ko-verde) !important;
    color: #000 !important;
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 0 10px rgba(0, 240, 112, 0.7));
}

/* --- TÍTULOS DE SEÇÃO COM BARRA INCLINADA --- */
main h2, .secao-titulo, .page-title, .page-header h2 {
    font-family: 'Russo One', sans-serif !important;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: var(--ko-sombra-hq);
}

.secao-titulo, .page-header h2 { position: relative; padding-left: 18px; }
.secao-titulo::before, .page-header h2::before {
    content: "";
    position: absolute;
    left: 0; top: 10%; bottom: 10%;
    width: 7px;
    background: var(--ko-verde);
    transform: skewX(-15deg);
    box-shadow: var(--ko-brilho);
}

/* --- CARDS DE NOTÍCIA (página inicial) --- */
.card {
    border-radius: 0 !important;
    border: 2px solid #000 !important;
    box-shadow: var(--ko-sombra-hq), inset 0 0 0 1px var(--ko-borda) !important;
    transition: transform 0.25s cubic-bezier(.2, 1.6, .4, 1), box-shadow 0.25s ease !important;
}
.card:hover {
    transform: translateY(-6px) scale(1.03) rotate(-0.4deg) !important;
    box-shadow: 8px 8px 0 #000, var(--ko-brilho) !important;
}
.card h3 { font-style: italic; text-shadow: 3px 3px 0 #000; }
.tag {
    border-radius: 0 !important;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    padding: 5px 14px !important;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 1px;
}

/* --- TIER LIST: tela de seleção de personagem --- */
.tier-row {
    border-radius: 0 !important;
    background: var(--ko-painel) !important;
    border: 2px solid #000 !important;
    box-shadow: var(--ko-sombra-hq), inset 0 0 0 1px var(--ko-borda) !important;
    overflow: visible !important;
}
.tier-rank, .tier-label {
    font-family: 'Russo One', sans-serif !important;
    font-style: italic;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55) !important;
}
.champ-link { transition: transform 0.22s cubic-bezier(.2, 1.8, .4, 1) !important; position: relative; z-index: 1; }
.champ-img-container, .champ-link img {
    border-radius: 0 !important;
    border: 2px solid #000 !important;
    box-shadow: 3px 3px 0 #000, inset 0 0 0 1px var(--ko-borda);
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}
.champ-link:hover { transform: translateY(-6px) scale(1.18) !important; z-index: 5; }
.champ-link:hover .champ-img-container, .champ-link:hover > img {
    filter: brightness(1.15) saturate(1.2) drop-shadow(0 0 10px rgba(0, 240, 112, 0.9));
}
.champ-name { font-family: 'Russo One', sans-serif; font-style: italic; }
.champ-link:hover .champ-name { color: var(--ko-verde) !important; text-shadow: 0 0 8px rgba(0, 240, 112, 0.8); }

/* --- MELHORES DUPLAS: "VS" de jogo de luta --- */
.duo-card, .team-suggestion {
    border-radius: 0 !important;
    border: 2px solid #000 !important;
    background: var(--ko-painel) !important;
    box-shadow: var(--ko-sombra-hq), inset 0 0 0 1px var(--ko-borda) !important;
    transition: transform 0.25s cubic-bezier(.2, 1.6, .4, 1), box-shadow 0.25s ease !important;
}
.duo-card:hover, .team-suggestion:hover { transform: translateY(-6px) scale(1.04) !important; box-shadow: 8px 8px 0 #000, var(--ko-brilho) !important; }
.duo-portraits img, .char-icons img {
    border-radius: 0 !important;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    border: 2px solid #000 !important;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.duo-card:hover .duo-portraits img, .team-suggestion:hover .char-icons img { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(0, 240, 112, 0.8)); }
.duo-separator {
    font-family: 'Russo One', sans-serif !important;
    font-style: italic;
    font-size: 1.8em !important;
    color: var(--ko-amarelo) !important;
    text-shadow: 3px 3px 0 #000, 0 0 14px rgba(255, 225, 77, 0.7) !important;
}
.duo-name, .fuse-name { font-family: 'Russo One', sans-serif !important; font-style: italic; text-shadow: 3px 3px 0 #000; }

/* --- PAINÉIS GERAIS (guias, notícias, fuses, pro players) --- */
.guide-container, .artigo-container, .news-block, .fuse-card, .ficha, .highlight-box, .expert-tip {
    border-radius: 0 !important;
    border: 2px solid #000 !important;
    box-shadow: 6px 6px 0 #000, inset 0 0 0 1px var(--ko-borda) !important;
}
.fuse-card, .ficha, .news-block { transition: transform 0.25s cubic-bezier(.2, 1.6, .4, 1), box-shadow 0.25s ease !important; }
.fuse-card:hover, .ficha:hover, .news-block:hover { transform: translateY(-6px) scale(1.02) !important; box-shadow: 9px 9px 0 #000, var(--ko-brilho) !important; }

.hero-section img { border-radius: 0 !important; clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); filter: drop-shadow(0 0 14px rgba(0, 240, 112, 0.35)); }
.hero-info h1 { font-style: italic; text-shadow: 4px 4px 0 #000; }

.skill-table { border-radius: 0 !important; border: 2px solid #000; box-shadow: var(--ko-sombra-hq); }
.skill-table tr { transition: background 0.15s ease; }
.skill-table tbody tr:hover { background: rgba(0, 240, 112, 0.07); }

.combo-card { border-radius: 0 !important; box-shadow: var(--ko-sombra-hq); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.combo-card:hover { transform: translateX(6px); box-shadow: 6px 6px 0 #000, var(--ko-brilho); }
.combo-sequence { border-radius: 0 !important; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }

/* --- COMANDOS: botões de fliperama --- */
.btn-circle, .btn-icon {
    border: 2px solid #000 !important;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #000 !important;
    font-family: 'Russo One', sans-serif !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-circle:hover, .btn-icon:hover { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 1px 0 #000, 0 0 12px rgba(255, 255, 255, 0.35) !important; }
.arrow { text-shadow: 2px 2px 0 #000; }

/* --- RODAPÉ --- */
footer {
    border-top: none !important;
    position: relative;
    background: #05070a !important;
}
footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ko-verde), var(--ko-magenta));
}
.footer-section h4 { font-style: italic; text-shadow: 2px 2px 0 #000; }

/* --- CELULAR: menos efeitos para manter leve --- */
@media (max-width: 700px) {
    header h1 { transform: none; }
    .champ-link:hover { transform: scale(1.08) !important; }
    .card:hover, .duo-card:hover, .fuse-card:hover, .ficha:hover { transform: translateY(-3px) !important; }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}


/* --- CELULAR: evita rolagem para o lado --- */
.fuses-grid, .duo-grid, .antigos, .page-header { width: 100%; max-width: 100%; box-sizing: border-box; }
.antigos-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)) !important; }
.fuses-grid { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important; }
@media (max-width: 600px) {
    .duo-grid { padding: 16px 0; }
    .skill-table { display: block; overflow-x: auto; }
    .artigo-container { padding: 22px !important; overflow-wrap: anywhere; }
    .artigo-container h1 { font-size: 1.8em !important; }
    .page-header h2, main h2 { font-size: 1.8em !important; overflow-wrap: anywhere; }
}
