/* ===================================================================
   MAPSTATS PERSONAL - Design baseado na Página 3 do /ranking
   Autor: MAJESTIC S+Z
   Versão: 2025 - Tema Verde
   Compatível com: Counter-Strike 1.6 (IE6/IE7)
   =================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0b0e1a; font-family: Arial, sans-serif; color: #c8d6e5; min-height: 100vh; padding: 16px; }

/* HEADER */
.header { width: 100%; background: #12172b; border-left: 4px solid #2ecc71; border-radius: 0; margin-bottom: 14px; border-collapse: collapse; }
.header td { padding: 10px 14px; vertical-align: middle; }
.header-avatar { width: 74px; }
.header-avatar img { width: 64px; height: 64px; border-radius: 0; border: 1px solid #2ecc71; display: block; }
.header-name { font-size: 22px; font-weight: bold; color: #ffffff; }
.header-sub { font-size: 10px; color: #7f8fa6; margin-top: 2px; }
.header-badge-cell { text-align: right; width: 80px; }
.header-badge { background: #2ecc71; color: #fff; font-size: 10px; font-weight: bold; padding: 3px 10px; border-radius: 0; letter-spacing: 1px; white-space: nowrap; }

/* GRID */
.grid { width: 100%; border-collapse: separate; border-spacing: 10px; }
.grid td { width: 33.33%; vertical-align: top; padding: 0; }

/* CARD */
.card { background: #12172b; border: 1px solid #2ecc71; border-radius: 0; }
.card-title { background: #1a2040; color: #2ecc71; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; padding: 7px 14px; border-bottom: 1px solid #1e2a45; text-align: center; }

/* STAT ROW */
.stat-row { padding: 8px 14px; border-bottom: 1px solid #1a2040; }
.stat-row:last-child { border-bottom: none; }
.stat-ic-img { width: 14px; height: 14px; vertical-align: middle; margin-right: 4px; border: 0; }
.stat-label { font-size: 10px; color: #2ecc71; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; vertical-align: middle; }
.stat-value { font-size: 13px; font-weight: bold; color: #ff6b35; vertical-align: middle; }

/* LABEL BLOCK (2-line) */
.label-block { padding: 6px 14px 0 14px; border-bottom: 1px solid #1a2040; }
.label-block .lbl { font-size: 10px; color: #2ecc71; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.label-block .val { font-size: 13px; color: #ff6b35; font-weight: bold; padding: 2px 0 6px 4px; }

/* RANK BLOCK */
.rank-block { padding: 8px 14px; border-bottom: 1px solid #1a2040; }
.rank-block:last-child { border-bottom: none; }
.rank-block .lbl { font-size: 10px; color: #2ecc71; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; display: block; margin-bottom: 4px; }
.rank-block .rank-name { font-size: 12px; color: #ff6b35; }
.rank-block .rank-map { font-size: 10px; color: #7f8fa6; margin-top: 1px; }

/* NAV */
.nav { margin-top: 14px; display: flex; gap: 8px; }
.nav a { color: #ff6b35; text-decoration: none; font-size: 11px; padding: 5px 12px; background: #12172b; border: 1px solid #1e2a45; border-radius: 4px; }

/* Imagens flexíveis */
img { max-width: 100%; height: auto; }
.header-avatar img { max-width: 64px; height: auto; }
.stat-ic-img { max-width: 14px; height: auto; }
.rank-img { max-width: 200px; height: auto; display: block; margin: 4px auto; }

/* Media queries para resoluções baixas */
@media screen and (max-width: 1024px) {
    body { font-size: 11px; padding: 10px; }
    .header-name { font-size: 18px; }
    .stat-label { font-size: 9px; }
    .stat-value { font-size: 12px; }
    .card-title { font-size: 9px; }
    .stat-row { padding: 5px 10px; }
    .label-block { padding: 4px 10px 0 10px; }
    .rank-block { padding: 5px 10px; }
}

@media screen and (max-width: 800px) {
    body { font-size: 9px; padding: 8px; }
    .header-name { font-size: 14px; }
    .header-avatar { width: 50px; }
    .header-avatar img { max-width: 40px; }
    .stat-label { font-size: 8px; }
    .stat-value { font-size: 10px; }
    .card-title { font-size: 8px; padding: 5px 8px; }
    .stat-row { padding: 3px 8px; }
    .label-block { padding: 3px 8px 0 8px; }
    .rank-block { padding: 3px 8px; }
    .stat-ic-img { max-width: 12px; }
    .rank-img { max-width: 24px; }
}
