/* ===================================================================
   TOPMAP RANKING - CSS PARA CS 1.6 MOTD (BASEADO NO TOP10)
   Autor: MAJESTIC S+Z
   Versão: 2024 - NOVO ESTILO
   Compatível com: Counter-Strike 1.6 MOTD
   =================================================================== */

/* 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.4;
    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 */
.container {
    max-width: 800px;
    margin: 25px auto;
    padding: 15px;
    background: rgba(5, 10, 30, 0.9);
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 191, 255, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.8);
    position: relative;
}

/* Título principal */
h1 {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #00FFFF;
    margin-bottom: 12px;
    padding: 8px;
    background: linear-gradient(90deg, transparent, rgba(0, 50, 100, 0.3), transparent);
    border-radius: 4px;
}

/* Tabela principal */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: rgba(0, 30, 60, 0.9);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    table-layout: fixed;
}

/* Larguras específicas das colunas TOPMAP (5 colunas) */
th:nth-child(1), td:nth-child(1) { width: 4%; }   /* POS */
th:nth-child(2), td:nth-child(2) { width: 55%; }  /* JOGADOR (expandido ainda mais) */
th:nth-child(3), td:nth-child(3) { width: 16%; }  /* RANK */
th:nth-child(4), td:nth-child(4) { width: 12.5%; } /* PONTOS */
th:nth-child(5), td:nth-child(5) { width: 12.5%; } /* PREMIER */

/* Cabeçalho da tabela */
th {
    background: linear-gradient(135deg, #003366 0%, #0066CC 50%, #00FFFF 100%);
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
    padding: 8px 8px;
    text-align: center;
    border-bottom: 1px solid #654321;
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

/* Linhas da tabela - altura reduzida */
td {
    padding: 6px 8px;
    text-align: center;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    vertical-align: middle;
}

/* Estilo das linhas alternadas */
tr.a {
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.2), rgba(0, 50, 100, 0.1));
    border-left: 3px solid #0066CC;
}

tr.b {
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.08));
    border-left: 3px solid #00FFFF;
}

/* Hover effect nas linhas - REMOVIDO */
/* tr:hover removido para visual mais limpo */

/* Coluna de posição (POS) */
td:first-child {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    box-shadow: inset -3px 0 6px rgba(255, 215, 0, 0.2);
}

/* Coluna do nome do jogador */
td:nth-child(2) {
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    padding: 6px 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    /* Efeitos removidos temporariamente para debug das cores Premier */
}

/* Coluna RANK - Ícones dos ranks */
td:nth-child(3) {
    text-align: center;
    padding: 15px;
    vertical-align: middle;
    background: linear-gradient(90deg, rgba(147, 112, 219, 0.1), rgba(147, 112, 219, 0.05));
    box-shadow: inset -3px 0 6px rgba(147, 112, 219, 0.2), inset 3px 0 6px rgba(147, 112, 219, 0.2);
}

/* Ícones de rank - proporção mantida */
table .rank-icon,
table td:nth-child(3) img,
.stats-table img.rank-icon,
td img.rank-icon {
    width: 80px !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Colunas PONTOS e PREMIER */
td:nth-child(4), /* PONTOS */
td:nth-child(5)  /* PREMIER */
{
    font-weight: bold;
    font-size: 16px;
    /* Efeitos das colunas removidos temporariamente para debug das cores Premier */
}

/* ===== SISTEMA PREMIER - 7 TIER COLORS (OTIMIZADO) ===== */
/* MÁXIMA ESPECIFICIDADE - Sobrescrever TUDO */
table td.p1,
td.p1 {
    color: #909090 !important; 
    text-shadow: 0 0 8px rgba(144, 144, 144, 1) !important; 
    background: linear-gradient(90deg, rgba(144, 144, 144, 0.15), rgba(144, 144, 144, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(144, 144, 144, 0.3) !important;
}

table td.p2,
td.p2 {
    color: #87CEEB !important; 
    text-shadow: 0 0 8px rgba(135, 206, 235, 1) !important; 
    background: linear-gradient(90deg, rgba(135, 206, 235, 0.15), rgba(135, 206, 235, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(135, 206, 235, 0.3) !important;
}

table td.p3,
td.p3 {
    color: #4169E1 !important; 
    text-shadow: 0 0 8px rgba(65, 105, 225, 1) !important; 
    background: linear-gradient(90deg, rgba(65, 105, 225, 0.15), rgba(65, 105, 225, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(65, 105, 225, 0.3) !important;
}

table td.p4,
td.p4 {
    color: #9370DB !important; 
    text-shadow: 0 0 8px rgba(147, 112, 219, 1) !important; 
    background: linear-gradient(90deg, rgba(147, 112, 219, 0.15), rgba(147, 112, 219, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(147, 112, 219, 0.3) !important;
}

table td.p5,
td.p5 {
    color: #FF69B4 !important; 
    text-shadow: 0 0 8px rgba(255, 105, 180, 1) !important; 
    background: linear-gradient(90deg, rgba(255, 105, 180, 0.15), rgba(255, 105, 180, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(255, 105, 180, 0.3) !important;
}

table td.p6,
td.p6 {
    color: #FF4500 !important; 
    text-shadow: 0 0 8px rgba(255, 69, 0, 1) !important; 
    background: linear-gradient(90deg, rgba(255, 69, 0, 0.15), rgba(255, 69, 0, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(255, 69, 0, 0.3) !important;
}

table td.p7,
td.p7 {
    color: #FFD700 !important; 
    text-shadow: 0 0 8px rgba(255, 215, 0, 1) !important; 
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08)) !important;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

/* ===== ANIMAÇÕES SUAVES ===== */
table {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeitos hover removidos para visual mais limpo */

/* ===== EFEITOS HOVER REMOVIDOS ===== */
/* Todos os efeitos hover foram removidos para visual mais limpo e estático */

/* ===== RESPONSIVIDADE PARA CS 1.6 MOTD ===== */
@media screen and (max-width: 800px) {
    body {
        font-size: 10px;
    }
    
    .container {
        max-width: 95%;
        margin: 10px auto;
        padding: 8px;
        border-radius: 6px;
    }
    
    h1 {
        font-size: 16px;
        margin-bottom: 8px;
        padding: 6px;
    }
    
    th, td {
        font-size: 10px;
        padding: 4px 2px;
    }
    
    table {
        border-radius: 4px;
    }
    
    /* Ícones menores em mobile */
    td:nth-child(3) img {
        max-width: 80px !important;
        max-height: 70px !important;
        width: auto !important;
        height: auto !important;
    }
}

/* ===== EFEITOS ESPECIAIS PARA RANKS ===== */
/* Glow effect removido - ícones limpos sem background */
