﻿/* ===================================================================
   TOP 10 P90 RANKING - CSS PARA CS 1.6 MOTD (VERSÃƒO CORRIGIDA)
   Autor: MAJESTIC S+Z
   VersÃ£o: 2024 - FIXED
   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: 600px;
    margin: 25px auto;
    padding: 10px;
    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 */
th:nth-child(1), td:nth-child(1) { width: 8%; }  /* Top */
th:nth-child(2), td:nth-child(2) { width: 38%; } /* Jogador */
th:nth-child(3), td:nth-child(3) { width: 11%; } /* Kills */
th:nth-child(4), td:nth-child(4) { width: 11%; } /* Deaths */
th:nth-child(5), td:nth-child(5) { width: 11%; } /* Headshots */
th:nth-child(6), td:nth-child(6) { width: 11%; } /* K/D */
th:nth-child(7), td:nth-child(7) { width: 10%; } /* HS% */

/* 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 4px;
    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 */
td {
    padding: 6px 3px;
    text-align: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* 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 */
tr:hover {
    background: linear-gradient(90deg, rgba(0, 191, 255, 0.25), rgba(0, 191, 255, 0.15)) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.4);
}

/* Coluna de posiÃ§Ã£o (TOP) */
td:first-child {
    font-weight: bold;
    font-size: 13px;
    color: #00FFFF;
}

/* Cores alternadas para posiÃ§Ãµes Ã­mpares e pares */
tr:nth-child(odd) td:first-child { color: #00FFFF; } /* 1Âº, 3Âº, 5Âº, 7Âº, 9Âº - Ciano */
tr:nth-child(even) td:first-child { color: #4169E1; } /* 2Âº, 4Âº, 6Âº, 8Âº, 10Âº - Azul royal */

/* Coluna do nome do jogador */
td:nth-child(2) {
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    padding: 8px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Colunas de estatÃ­sticas */
td:nth-child(3), /* Kills */
td:nth-child(4), /* Deaths */
td:nth-child(5)  /* Headshots */
{
    font-weight: bold;
}

/* Kills - Azul Claro */
td:nth-child(3) {
    color: #66B2FF;
    font-weight: bold;
}

/* Deaths - Branco Azulado */
td:nth-child(4) {
    color: #E6F3FF;
    font-weight: bold;
}

/* Headshots - Ciano */
td:nth-child(5) {
    color: #00FFFF;
    font-weight: bold;
}

/* K/D Ratio - Azul CÃ©u */
td:nth-child(6) {
    font-weight: bold;
    color: #87CEEB;
}

/* Headshot % - Ciano Claro */
td:nth-child(7) {
    font-weight: bold;
    color: #AFEEEE;
}

/* Efeitos especiais para o TOP 1 */
tr:nth-child(2) {
    background: linear-gradient(90deg, rgba(0, 50, 100, 0.4), rgba(0, 255, 255, 0.2)) !important;
    border-left: 4px solid #00FFFF !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

/* Responsividade para CS 1.6 MOTD */
@media screen and (max-width: 700px) {
    body {
        font-size: 10px;
    }
    
    .container {
        max-width: 95%;
        margin: 3px auto;
        padding: 8px;
        border-radius: 4px;
    }
    
    h1 {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 5px;
    }
    
    th, td {
        font-size: 9px;
        padding: 4px 2px;
    }
    
    td:nth-child(2) {
        padding-left: 4px;
    }
    
    table {
        border-radius: 4px;
    }
    
    /* Ajustar larguras em mobile */
    th:nth-child(1), td:nth-child(1) { width: 6%; }  /* Top */
    th:nth-child(2), td:nth-child(2) { width: 38%; } /* Jogador */
    th:nth-child(3), td:nth-child(3) { width: 10%; } /* Kills */
    th:nth-child(4), td:nth-child(4) { width: 10%; } /* Deaths */
    th:nth-child(5), td:nth-child(5) { width: 10%; } /* Headshots */
    th:nth-child(6), td:nth-child(6) { width: 13%; } /* K/D */
    th:nth-child(7), td:nth-child(7) { width: 13%; } /* HS% */
}

