/* ===================================================================
   TOP10 ASSISTS - CSS ESPECÍFICO PARA COMANDO /topassists
   Autor: MAJESTIC S+Z
   Versão: 2024 - ESTILO ASSISTS (TEMA VERDE/AZUL)
   Compatível com: Counter-Strike 1.6 MOTD
   Colunas: Pos | Jogador | Assists | 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(5, 25, 15, 0.9); /* Fundo verde escuro */
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 255, 128, 0.5); /* Sombra verde-azul para assists */
    border: 2px solid rgba(0, 255, 128, 0.8); /* Borda verde-azul para assists */
    position: relative;
    display: block;
}

/* Título principal */
h1 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #00FF80; /* Cor verde-azul para tema assists */
    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 | Assists | 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%; }  /* ASSISTS */
th:nth-child(4), td:nth-child(4) { width: 18%; }  /* K/D */

/* Cabeçalho da tabela */
th {
    background: linear-gradient(135deg, #006633 0%, #00CC66 50%, #00FF80 100%); /* Gradiente verde */
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #006633;
}

/* 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 "Assists" 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-assists.png');
    background-size: 23%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px; /* esconde o texto "Assists" */
    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(20, 50, 30, 0.7); /* Verde escuro */
}

/* Linhas alternadas - classe 'b' (linha escura) */
tr.b td {
    background: rgba(10, 30, 20, 0.8); /* Verde muito escuro */
}

/* Hover nas linhas */
tr:hover td {
    background: rgba(0, 255, 128, 0.2) !important; /* Hover verde-azul para tema assists */
    transform: scale(1.01);
}

/* Estilo da coluna de posição - Dourado */
td:nth-child(1) {
    font-weight: bold;
    color: #FFD700; /* Dourado para posições */
    font-size: 14px;
}

/* Estilo da coluna do jogador - Laranja */
td:nth-child(2) {
    font-weight: bold;
    color: #FFA500; /* Laranja para nomes */
    text-align: center;
}

/* Estilo da coluna de assists - Verde claro */
td:nth-child(3) {
    font-weight: bold;
    color: #00FF80; /* Verde claro para assists */
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0, 0, 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: #00FF80;
    font-size: 14px;
    padding: 20px;
    background: rgba(0, 255, 128, 0.1);
    border: 1px solid rgba(0, 255, 128, 0.3);
    border-radius: 5px;
    margin: 10px 0;
}