/* Match End Statistics MOTD CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tahoma', sans-serif;
    background: url('http://www.majesticsz.ihosts3.pt/adp3final.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    text-align: center;
    padding: 5px;
}

/* Fundos específicos para resultado do mapa */
body.tr-win {
    background: url('http://www.majesticsz.ihosts3.pt/adp3Tfinal.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.ct-win {
    background: url('http://www.majesticsz.ihosts3.pt/adp3CTfinal.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.draw {
    background: url('http://www.majesticsz.ihosts3.pt/adp3EMPATEfinal.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.match-container {
    width: 95%;
    max-width: 780px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 2px solid #444;
    margin-left: auto;
    margin-right: auto;
}

/* Cores de container para cada resultado */
body.tr-win .match-container {
    background: rgba(60, 20, 20, 0.95);
    border: 2px solid #ff4444;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
}

body.ct-win .match-container {
    background: rgba(20, 20, 60, 0.95);
    border: 2px solid #4444ff;
    box-shadow: 0 10px 30px rgba(68, 68, 255, 0.3);
}

body.draw .match-container {
    background: rgba(60, 55, 20, 0.95);
    border: 2px solid #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Header */
.match-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 5px 15px;
    text-align: center;
    border-bottom: 3px solid #FFD700;
    white-space: nowrap;
}

.match-title {
    color: #FFD700;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

.match-title:before {
    content: "FIM DO MAPA";
}

.match-map {
    color: #FFFFFF;
    font-size: 14px;
    display: inline-block;
    margin-left: 10px;
}

.match-map span {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
}

.match-map span:first-child {
    margin-right: 20px;
}

.match-content {
    width: 100%;
    text-align: center;
    min-height: 300px;
    padding-top: 0;
}

/* Left Side - Score */
.score-panel {
    display: inline-block;
    vertical-align: middle;
    width: 25%;
    background: transparent;
    padding: 10px 5px;
    border-right: none;
    text-align: center;
}

.team-score {
    text-align: center;
    margin: 10px 0;
}

.vs-image {
    text-align: center;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.team-label {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.tr-label { color: #ff4444; }

.score-number {
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.tr-score { color: #ff4444; }
.ct-score { color: rgb(50, 100, 255); }
.ct-label { color: rgb(50, 100, 255); }

.player-position-mini {
    margin-top: 30px;
    background: rgba(30, 30, 40, 0.8);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: 1px solid #444;
}

.position-label {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: 1px;
    text-align: left;
}

.position-number {
    font-size: 24px;
    font-weight: 900;
    color: #FFD700;
    line-height: 1;
    margin-bottom: 8px;
}

.position-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px;
    color: #FFFFFF;
    line-height: 1.3;
}

.position-stats span {
    font-weight: 600;
    margin-bottom: 1px;
}

.stat-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 9px;
    display: inline;
    vertical-align: baseline;
}

.vs-divider {
    color: #666;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.winner-badge {
    margin-top: 20px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: 900;
    font-size: 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Right Side - Tables */
.stats-panel {
    display: inline-block;
    width: 70%;
    padding: 5px 5px 5px 0px;
    vertical-align: middle;
    text-align: left;
}

.team-section {
    margin-bottom: 5px;
}

.team-title {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.tr-title {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border-left: 4px solid #ff4444;
}

.tr-title:before {
    content: "TR ";
    font-weight: 900;
}

.ct-title {
    background: rgba(68, 68, 255, 0.2);
    color: #4444ff;
    border-left: 4px solid #4444ff;
}

.ct-title:before {
    content: "CT ";
    font-weight: 900;
}

.team-icon {
    font-size: 16px;
}

/* Table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: fixed;
}

.stats-table th {
    color: #fff;
    padding: 0px 5px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: 0.5px;
}

.stats-table td {
    padding: 2px 5px;
    border-bottom: none;
    color: #fff;
    text-align: center;
}

.stats-table tr:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Fundo arredondado para cada linha de jogador - TR */
.tr-section .stats-table tbody tr td {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.5) 0%, rgba(180, 40, 40, 0.4) 100%);
    border-radius: 0;
}

/* Fundo arredondado para cada linha de jogador - CT */
.ct-section .stats-table tbody tr td {
    background: linear-gradient(135deg, rgba(80, 80, 255, 0.5) 0%, rgba(40, 40, 180, 0.4) 100%);
    border-radius: 0;
}

/* Espaçamento entre linhas */
.stats-table tbody tr {
    height: 26px;
}

/* Colunas com alinhamento à esquerda - larguras relativas para adaptatividade */
.col-pos { width: 8%; text-align: left; font-weight: 900; padding-left: 2%; }
.col-pp { width: 15%; text-align: left; color: #FFD700; font-weight: bold; padding-left: 2%; font-size: 14px; }
.col-name { width: 42%; text-align: left; padding-left: 2%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; font-weight: bold; }
.col-kills { width: 8%; text-align: left; padding-left: 2%; font-family: 'Tahoma', sans-serif; font-weight: bold; font-size: 14px; }
.col-deaths { width: 9%; text-align: left; padding-left: 2%; font-family: 'Tahoma', sans-serif; font-weight: bold; font-size: 14px; }
.col-rank { width: 18%; text-align: left; padding-left: 2%; }

/* Rank badges */
.rank-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Premier Tier Colors */
.p1 { color: #808080; }  /* Gray */
.p2 { color: #87CEEB; }  /* Light Blue */
.p3 { color: #4169E1; }  /* Blue */
.p4 { color: #9370DB; }  /* Purple */
.p5 { color: #FF69B4; }  /* Pink */
.p6 { color: #FF0000; }  /* Red */
.p7 { color: #FFD700; }  /* Yellow */

.rank-gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-silver { background: linear-gradient(135deg, #C0C0C0, #808080); color: #000; }
.rank-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

/* Position colors */
.pos-1 { color: #FFD700; font-size: 14px; }
.pos-2 { color: #C0C0C0; font-size: 13px; }
.pos-3 { color: #CD7F32; font-size: 12px; }
.pos-4, .pos-5 { color: #888; }

/* Footer - Player Stats */
.player-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    padding: 15px 20px;
    border-top: 2px solid #FFD700;
    text-align: center;
}

.player-info {
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}

.player-position {
    background: #FFD700;
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 900;
    font-size: 12px;
}

.player-name {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.player-stats {
    display: inline-block;
    vertical-align: middle;
}

.stat-box {
    display: inline-block;
    margin: 0 10px;
    text-align: center;
}


.stat-label {
    color: #888;
    font-size: 10px;
    text-transform: uppercase;
}

.stat-value {
    color: #FFD700;
    font-size: 18px;
    font-weight: 900;
}

.stat-value.deaths { color: #ff4444; }
