/* =====================================================================
   ARENA WOW · TEMA PADRÃO (Lich King)
   ---------------------------------------------------------------------
   Este é o ÚNICO lugar das cores, fontes e tamanhos de ícone do site.
   Todas as páginas carregam este arquivo. Mudou aqui, muda em tudo.
   ===================================================================== */

:root {
    /* Fundos */
    --bg: #03070d;          /* fundo da página */
    --bg-2: #060d18;        /* fundo de campos e barras */
    --card: #0a1424;        /* caixas e painéis */
    --card-2: #0e1b30;      /* caixas internas, linhas de tabela */
    --glow: #0c2240;        /* brilho gelado do topo da página */

    /* Destaque gelado (era o dourado) */
    --accent: #7cc8ff;
    --accent-rgb: 124, 200, 255;   /* o mesmo destaque, para usar com transparência */
    --accent-light: #c4ecff;       /* destaque ao passar o mouse */
    --accent-2: #3b82b8;           /* destaque escuro, bordas fortes */

    /* Textos e linhas */
    --text: #b6cee4;
    --text-dim: #6f87a1;
    --muted: #8a9bb0;
    --border: #1b3756;
    --line: #14263d;

    /* Cores de sentido (vitória, derrota, informação) */
    --green: #00ff88;
    --red: #ff5a5a;
    --blue: #62a8ff;

    /* Fontes */
    --font-title: 'Cinzel', Georgia, serif;
    --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

    /* Ícones de classe, raça e facção: um tamanho só em todo o site */
    --icon-size: 24px;

    /* Velocidade das transições */
    --speed: .2s;
}

/* ================= BASE ================= */

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Campos e botões usam a fonte do site (o navegador põe Arial por padrão) */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* Títulos principais na fonte de título */
h1,
h2 {
    font-family: var(--font-title);
}

::selection {
    background: rgba(var(--accent-rgb), .35);
    color: #fff;
}

/* Barra de rolagem no tema */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-2) var(--bg-2);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-2);
    border: 2px solid var(--bg-2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ================= ÍCONES PADRÃO =================
   Classe, raça e facção ficam todos do mesmo tamanho,
   não importa a página nem o tamanho que ela pedia antes. */

img[src*="img/warrior." i],
img[src*="img/paladin." i],
img[src*="img/hunter." i],
img[src*="img/rogue." i],
img[src*="img/priest." i],
img[src*="img/dk." i],
img[src*="img/shaman." i],
img[src*="img/mage." i],
img[src*="img/warlock." i],
img[src*="img/druid." i],
img[src*="img/human." i],
img[src*="img/dwarf." i],
img[src*="img/nelf." i],
img[src*="img/gnome." i],
img[src*="img/draenei." i],
img[src*="img/orc." i],
img[src*="img/undead." i],
img[src*="img/tauren." i],
img[src*="img/troll." i],
img[src*="img/bloodelf." i],
img[src*="img/female" i],
img[src*="img/alianca." i],
img[src*="img/horda." i],
img[src*="achievement_character_" i],
img[src*="classicon_" i] {
    box-sizing: border-box !important;
    width: var(--icon-size) !important;
    height: var(--icon-size) !important;
    min-width: var(--icon-size);
    flex: 0 0 var(--icon-size) !important;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 0 0 0 1px var(--border);
    padding: 0 !important;
}

/* Colunas de classe, raça e facção nas tabelas: só o ícone, centralizado
   (o nome aparece ao passar o mouse ou segurar o dedo) */
th.col-icone,
td.col-icone {
    text-align: center !important;
    white-space: nowrap;
}

.icone-tabela {
    display: inline-block;
    cursor: help;
}

/* Facção, raça e classe juntas ao lado do nome do personagem */
.icones-trio {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* No celular, tabela com colunas de ícone pode encolher (antes tinha largura mínima fixa) */
@media (max-width: 700px) {
    table:has(th.col-icone) {
        min-width: 0 !important;
    }

    th.col-icone,
    td.col-icone {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* Confrontos (Campeonato PvP e por Classes): também podem encolher no celular */
    table.tabela-confrontos {
        min-width: 0 !important;
    }
}

/* Celular bem estreito: ícones menores ao lado do nome no Status, pro nome não quebrar */
@media (max-width: 430px) {
    .player-cell {
        --icon-size: 18px;
    }
}

/* ================= DENTRO DO PORTAL =================
   O portal (index.html) já mostra o logo e o menu,
   então o cabeçalho antigo de cada página some. */

html.in-portal .topbar,
html.in-portal .site-header {
    display: none !important;
}

html.in-portal body {
    padding-top: 8px;
}

/* ================= TRANSIÇÕES ================= */

@media (prefers-reduced-motion: no-preference) {
    body {
        animation: arena-surgir .35s ease-out both;
    }

    a,
    button,
    input,
    select,
    textarea,
    .btn,
    tr,
    td,
    th {
        transition:
            color var(--speed),
            background-color var(--speed),
            border-color var(--speed),
            box-shadow var(--speed),
            opacity var(--speed),
            transform var(--speed);
    }

    button:not(:disabled):hover,
    .btn:hover {
        box-shadow: 0 0 14px rgba(var(--accent-rgb), .25);
    }
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18);
}

@keyframes arena-surgir {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =====================================================================
   ARENA WOW · CAMADA GLOBAL DE PADRONIZAÇÃO
   Complementa os estilos próprios de cada módulo sem alterar sua lógica.
   ===================================================================== */
:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: radial-gradient(ellipse at 50% -12%, rgba(var(--accent-rgb), .10), transparent 46%),
                linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 420px);
    color: var(--text); line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
button, .btn, input[type="button"], input[type="submit"], input[type="reset"] { border-radius: 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select, textarea {
    max-width: 100%; background-color: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: 6px;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 1; }
button, .btn, input[type="submit"], input[type="button"] {
    border: 1px solid var(--accent-2); background: linear-gradient(180deg, #153453, #0b1d32);
    color: var(--accent-light); font-weight: 600; cursor: pointer;
}
button:hover, .btn:hover, input[type="submit"]:hover, input[type="button"]:hover {
    border-color: var(--accent); background: linear-gradient(180deg, #1b4267, #102944);
}
table { border-collapse: collapse; border-color: var(--line); }
th { color: var(--accent-light); background: var(--card-2); }
td { color: var(--text); }
th, td { border-color: var(--line); }
tbody tr:nth-child(even) { background-color: rgba(14, 27, 48, .42); }
tbody tr:hover { background-color: rgba(var(--accent-rgb), .075); }
hr { border: 0; border-top: 1px solid var(--border); }
pre, code { color: var(--accent-light); }
img { max-width: 100%; }
@media (max-width: 760px) {
    body { overflow-x: hidden; }
    main, .container, .wrap, .content, .page, .painel, .panel { max-width: 100%; }
    table { max-width: 100%; }
    input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important;
      animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
