/* ===================================================================
   TOP10 MVP - CSS ESPECÍFICO PARA COMANDO /topmvp
   Autor: MAJESTIC S+Z
   Versão: 2024 - ESTILO MVP (TEMA DOURADO/CAMPEÃO)
   Compatível com: Counter-Strike 1.6 MOTD
   Colunas: Pos | Jogador | MVP | K/D
   =================================================================== */

/* Reset básico e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #ffffff;
    background: url('http://www.majesticsz.ihosts3.pt/adp3.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container principal - LAYOUT ÚNICO OTIMIZADO */
.container {
    max-width: 800px;
    width: 100%;
    margin: 12px auto;
    padding: 10px;
    background: rgba(25, 20, 5, 0.9); /* Fundo dourado escuro */
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); /* Sombra dourada para MVP */
    border: 2px solid rgba(255, 215, 0, 0.8); /* Borda dourada para MVP */
    position: relative;
    display: block;
}

/* Título principal */
h1 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Cor dourada para tema MVP */
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Tabela principal */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Larguras das colunas para layout 4 colunas (Pos | Jogador | MVP | K/D) */
th:nth-child(1), td:nth-child(1) { width: 12%; }  /* POS */
th:nth-child(2), td:nth-child(2) { width: 50%; }  /* JOGADOR */
th:nth-child(3), td:nth-child(3) { width: 20%; }  /* MVP */
th:nth-child(4), td:nth-child(4) { width: 18%; }  /* K/D */

/* Cabeçalho da tabela */
th {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 50%, #FFD700 100%); /* Gradiente dourado */
    color: #000000; /* Texto preto para contraste no dourado */
    font-weight: bold;
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #B8860B;
}

/* Substituir texto "Pos" por imagem na coluna 1 */
th:nth-child(1) {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icons/icon-top.png');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* esconde o texto "Pos" */
    height: 40px;
}

/* Substituir texto "Jogador" por imagem na coluna 2 */
th:nth-child(2) {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icon-jogadores4.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* esconde o texto "Jogador" */
    height: 45px;
}

/* Substituir texto "MVP" por imagem específica na coluna 3 */
th:nth-child(3) {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/icons/icon-star.png');
    background-size: 26%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* esconde o texto "MVP" */
    height: 45px;
}

/* Substituir texto "K/D" por imagem na coluna 4 */
th:nth-child(4) {
    background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/KDcolorido.png');
    background-size: 24%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* esconde o texto "K/D" */
    height: 40px;
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

/* Linhas da tabela - altura reduzida */
td {
    padding: 2px 6px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    vertical-align: middle;
    height: 25px;
}

/* Linhas alternadas - classe 'a' (linha clara) */
tr.a td {
    background: rgba(50, 40, 10, 0.7); /* Dourado escuro */
}

/* Linhas alternadas - classe 'b' (linha escura) */
tr.b td {
    background: rgba(30, 25, 5, 0.8); /* Marrom dourado escuro */
}

/* Hover nas linhas */
tr:hover td {
    background: rgba(255, 215, 0, 0.3) !important; /* Hover dourado para tema MVP */
    transform: scale(1.01);
}

/* Estilo da coluna de posição - Dourado brilhante */
td:nth-child(1) {
    font-weight: bold;
    color: #FFD700; /* Dourado brilhante para posições */
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

/* Estilo da coluna do jogador - Laranja dourado */
td:nth-child(2) {
    font-weight: bold;
    color: #FFA500; /* Laranja dourado para nomes */
    text-align: center;
}

/* Estilo da coluna de MVP - Dourado intenso */
td:nth-child(3) {
    font-weight: bold;
    color: #FFFF00; /* Amarelo dourado para MVP */
    font-size: 14px;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
}

/* Estilo da coluna K/D - Verde */
td:nth-child(4) {
    color: #00FF00; /* Verde para K/D */
    font-weight: bold;
}

/* Posições especiais removidas - todas as posições têm o mesmo estilo */

/* Destaque especial removido */

/* Media queries para responsividade */
@media (max-width: 600px) {
    .container {
        margin: 5px;
        padding: 5px;
    }
    
    th, td {
        font-size: 11px;
        padding: 3px;
    }
    
    th {
        height: 35px;
    }
}

/* Estilo para mensagens de erro/aviso */
.error-message {
    text-align: center;
    color: #FFD700;
    font-size: 14px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    margin: 10px 0;
}