/* ===================================================================
   TOP 5 MAP GLOBAL RANKING - CSS OTIMIZADO PARA 5 COLUNAS
   Autor: MAJESTIC S+Z
   Versão: 2025 - CS2 18 RANKS + PREMIER SYSTEM
   Compatível com: Counter-Strike 1.6 MOTD
   HTML Structure: POS | JOGADOR | RANK | PONTOS | PREMIER
   =================================================================== */

/* Reset básico e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuração dos ícones de rank */
.rank-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 8px;
}

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;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 650px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(5, 10, 30, 0.95);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.8);
    position: relative;
}

/* Título principal */
h1 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #00FFFF;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(90deg, transparent, rgba(0, 50, 100, 0.4), transparent);
    border-radius: 6px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Tabela principal */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: rgba(0, 30, 60, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    table-layout: fixed;
    color: #ffffff !important;
}

/* Larguras das 5 colunas otimizadas */
th:nth-child(1), td:nth-child(1) { width: 10%; }  /* POS */
th:nth-child(2), td:nth-child(2) { width: 30%; }  /* JOGADOR */
th:nth-child(3), td:nth-child(3) { width: 25%; }  /* RANK */
th:nth-child(4), td:nth-child(4) { width: 17.5%; }  /* PONTOS */
th:nth-child(5), td:nth-child(5) { width: 17.5%; }  /* PREMIER */

/* Cabeçalho da tabela */
th {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
    color: #ffffff !important;
    font-weight: bold;
    font-size: 12px;
    padding: 12px 8px;
    text-align: center;
    border-bottom: 2px solid #d4651a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Células da tabela */
td {
    padding: 10px 6px;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    vertical-align: middle;
    color: #ffffff !important;
}

/* Linhas da tabela - Alternadas */
tr.a {
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.25), rgba(0, 50, 100, 0.15));
    border-left: 3px solid #0066CC;
}

tr.b {
    background: linear-gradient(90deg, rgba(0, 100, 150, 0.2), rgba(0, 100, 150, 0.1));
    border-left: 3px solid #0088DD;
}

/* Hover effect nas linhas */
tr:hover {
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.3), rgba(0, 191, 255, 0.2)) !important;
    transform: scale(1.02);
    box-shadow: 0 3px 15px rgba(0, 255, 255, 0.5);
    border-left: 4px solid #00FFFF !important;
}

/* === COLUNA 1: POSIÇÃO === */
td:nth-child(1) {
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* === COLUNA 2: JOGADOR === */
td:nth-child(2) {
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

/* === COLUNA 3: RANK - Ícones CS2 === */
td:nth-child(3) {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: auto;
    height: 45px;
    min-width: 50px;
    max-width: 80px;
    padding: 5px;
    
    /* Melhor renderização das imagens */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

/* === COLUNAS 4 e 5: PONTOS e PREMIER === */
td:nth-child(4), 
td:nth-child(5) {
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ===== SISTEMA PREMIER - 7 TIER COLORS ===== */
.premier-gray { color: #909090 !important; text-shadow: 0 0 5px rgba(144, 144, 144, 0.5) !important; }
.premier-lightblue { color: #87CEEB !important; text-shadow: 0 0 5px rgba(135, 206, 235, 0.5) !important; }
.premier-blue { color: #4169E1 !important; text-shadow: 0 0 5px rgba(65, 105, 225, 0.5) !important; }
.premier-purple { color: #9370DB !important; text-shadow: 0 0 5px rgba(147, 112, 219, 0.5) !important; }
.premier-pink { color: #FF69B4 !important; text-shadow: 0 0 5px rgba(255, 105, 180, 0.5) !important; }
.premier-red { color: #FF4500 !important; text-shadow: 0 0 5px rgba(255, 69, 0, 0.5) !important; }
.premier-yellow { color: #FFD700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important; }

/* ===== ÍCONES DOS RANKS CS2 - 18 RANKS ===== */
/* Silver Ranks (1-6) */
.rank-silver-i { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill1.png'); }
.rank-silver-ii { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill2.png'); }
.rank-silver-iii { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill3.png'); }
.rank-silver-iv { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill4.png'); }
.rank-silver-elite { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill5.png'); }
.rank-silver-elite-master { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill6.png'); }

/* Gold Nova Ranks (7-10) */
.rank-gold-nova-i { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill7.png'); }
.rank-gold-nova-ii { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill8.png'); }
.rank-gold-nova-iii { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill9.png'); }
.rank-gold-nova-master { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill10.png'); }

/* Master Guardian Ranks (11-13) */
.rank-master-guardian-i { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill11.png'); }
.rank-master-guardian-ii { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill12.png'); }
.rank-master-guardian-elite { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill13.png'); }

/* Distinguished Master Guardian */
.rank-distinguished-master-guardian { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill14.png'); }

/* Eagle Ranks (15-16) */
.rank-legendary-eagle { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill15.png'); }
.rank-legendary-eagle-master { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill16.png'); }

/* Top Ranks (17-18) */
.rank-supreme-master-first-class { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill17.png'); }
.rank-global-elite { background-image: url('http://www.majesticsz.ihosts3.pt/ranking_map_global/imagens/ranking/skills/skill18.png'); }

/* ===== EFEITOS ESPECIAIS ===== */
/* Efeitos especiais removidos - todas as linhas com estilo uniforme */

/* ===== RESPONSIVIDADE PARA CS 1.6 MOTD ===== */
@media screen and (max-width: 800px) {
    body {
        font-size: 10px;
    }
    
    .container {
        max-width: 95%;
        margin: 10px auto;
        padding: 10px;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 16px;
        margin-bottom: 10px;
        padding: 8px;
    }
    
    th, td {
        font-size: 10px;
        padding: 6px 4px;
    }
    
    table {
        border-radius: 6px;
    }
    
    /* Ajustar larguras em mobile */
    th:nth-child(1), td:nth-child(1) { width: 8%; }   /* POS */
    th:nth-child(2), td:nth-child(2) { width: 32%; }  /* JOGADOR */
    th:nth-child(3), td:nth-child(3) { width: 25%; }  /* RANK */
    th:nth-child(4), td:nth-child(4) { width: 17.5%; }  /* PONTOS */
    th:nth-child(5), td:nth-child(5) { width: 17.5%; }  /* PREMIER */
    
    /* Ícones menores em mobile */
    td:nth-child(3) {
        background-size: contain;
        height: 35px;
        min-width: 40px;
        max-width: 60px;
        padding: 3px;
    }
}

/* ===== ANIMAÇÕES SUAVES ===== */
table {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito hover nas células de dados importantes */
td:nth-child(4):hover, 
td:nth-child(5):hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
