/* ==================================== */
/* 1. ESTRUTURA GERAL (ESTILO AUCTION)  */
/* ==================================== */

.ranking-container {
    background: #ffffff !important;
    padding: 25px;
    border-radius: 10px;
    color: #333;
    border: 1px solid #ddd;
}

.ranking-title {
    text-align: center;
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* ==================================== */
/* 2. TOP 3 - CARDS DINÂMICOS           */
/* ==================================== */

.top-rankings-wrapper {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.rank-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    width: 30%; 
    min-width: 280px;
    position: relative;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rank-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #3498db;
}

/* Cores das Bordas para os Ranks */
.rank-gold { border: 2px solid #3498db; background: #fffef9; }
.rank-silver { border: 1px solid #ddd; }
.rank-bronze { border: 1px solid #eee; }

.rank-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #3498db;
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    z-index: 10;
}

/* Fundo Dinâmico do Personagem */
.rank-icon-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.12) 0%, rgba(255,255,255,0) 75%);
}

.rank-icon-container img {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
    transition: transform 0.3s ease;
}

.rank-card:hover .rank-icon-container img {
    transform: scale(1.15);
}

.rank-char-name { font-size: 18px; color: #2c3e50; font-weight: bold; }
.rank-char-class { font-size: 11px; color: #3498db; font-weight: bold; text-transform: uppercase; }

/* Estatísticas e Pontos */
.rank-stats-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.rank-stat-box {
    font-size: 10px;
    color: #888;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.rank-stat-box strong { color: #333; font-size: 13px; display: block; }

.rank-main-score {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 10px;
}

.rank-main-score span {
    color: #f39c12; /* Zeny Color */
    font-size: 24px;
    font-weight: bold;
    display: block;
}

/* ==================================== */
/* 3. TABELA (POSIÇÕES 4+)              */
/* ==================================== */

.rank-section-title {
    margin: 30px 0 15px;
    border-left: 5px solid #34495e;
    padding-left: 12px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: bold;
}

.rank-table-wrapper { border: 1px solid #eee; border-radius: 6px; overflow: hidden; background: #fff; }
.rank-data-table { width: 100%; border-collapse: collapse; }
.rank-data-table th { background: #34495e; color: #fff; padding: 12px; font-size: 11px; text-align: left; }
.rank-data-table tr { transition: background 0.2s ease; }
.rank-data-table tr:hover td { background-color: #f0f7ff; }
.rank-data-table td { padding: 12px; border-bottom: 1px solid #eee; font-size: 12px; }

.pos-text { font-weight: bold; color: #3498db; }
.score-text { color: #27ae60; font-weight: bold; }

/* Medalhas discretas na tabela */
.medal-pos-1 { color: #f39c12; font-weight: bold; } /* Ouro */
.medal-pos-2 { color: #95a5a6; font-weight: bold; } /* Prata */
.medal-pos-3 { color: #d35400; font-weight: bold; } /* Bronze */

/* Badges de Nível dentro da tabela */
.rank-stat-badge {
    display: inline-block;
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #555;
    margin: 0 2px;
    border: 1px solid #eee;
}

/* Ajuste de espaçamento da tabela */
.rank-data-table td {
    padding: 15px 12px; /* Um pouco mais de espaço para compensar a falta da imagem */
}

/* ==================================== */
/* 4. EXTRAS - FILTROS (NOVO)           */
/* ==================================== */
.woe-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.woe-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
}

.woe-select:focus {
    border-color: #3498db;
}

.woe-filters label {
    font-weight: bold;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
}

/* Cabeçalho */
.ranking-header-premium { text-align: center; margin-bottom: 30px; }
.ranking-header-premium h2 { color: #d4af37; text-shadow: 1px 1px 2px #000; font-size: 28px; }

/* Pódio Estilizado */
.podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 15px; margin: 50px 0; }
.podium-card { background: linear-gradient(145deg, #ffffff, #f0f0f0); border-radius: 15px; padding: 20px; text-align: center; position: relative; width: 200px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 5px solid #ccc; transition: 0.3s; }
.podium-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* Cores do Pódio */
.rank-1 { height: 280px; border-color: #ffd700; order: 2; z-index: 2; transform: scale(1.1); }
.rank-2 { height: 240px; border-color: #c0c0c0; order: 1; }
.rank-3 { height: 220px; border-color: #cd7f32; order: 3; }

.rank-1 .crown { display: block; font-size: 30px; margin-top: -40px; }
.crown { display: none; }

.guild-emblem-top img { width: 40px; height: 40px; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.table-emblem { width: 24px; vertical-align: middle; margin-right: 8px; }

.player-name { font-weight: bold; font-size: 16px; color: #333; margin-bottom: 10px; }
.main-stat { font-size: 24px; font-weight: 900; color: #2c3e50; }
.main-stat span { font-size: 10px; display: block; color: #7f8c8d; }

.position-tag { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); background: #2c3e50; color: #fff; padding: 2px 15px; border-radius: 20px; font-size: 12px; }

/* Tabela Moderna */
.rank-data-table-modern { width: 100%; border-radius: 10px; overflow: hidden; border-collapse: collapse; }
.rank-data-table-modern th { background: #2c3e50; color: #bdc3c7; padding: 15px; text-transform: uppercase; font-size: 11px; }
.rank-data-table-modern tr:nth-child(even) { background: #f9f9f9; }
.rank-data-table-modern td { padding: 12px 15px; border-bottom: 1px solid #eee; text-align: center; }
.name-col { text-align: left !important; }
.kill-val { color: #e74c3c; font-weight: bold; }

/* Pódio */
.podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-top: 60px; margin-bottom: 40px; }
.podium-card { background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 20px; text-align: center; width: 180px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.rank-1 { height: 260px; z-index: 2; border-bottom: 5px solid #ffd700; transform: scale(1.1); }
.rank-2 { height: 220px; border-bottom: 5px solid #c0c0c0; }
.rank-3 { height: 200px; border-bottom: 5px solid #cd7f32; }

.medal-crown { font-size: 30px; position: absolute; top: -35px; left: 50%; transform: translateX(-50%); }

/* Guildas no Pódio */
.guild-badge { margin-bottom: 10px; }
.guild-badge img { width: 32px; height: 32px; display: block; margin: 0 auto; }
.guild-name-mini { font-size: 10px; color: #666; text-transform: uppercase; display: block; margin-top: 4px; }

.display-name { font-weight: bold; font-size: 15px; color: #333; margin-top: 10px; }
.main-stat { font-size: 28px; font-weight: 800; color: #2c3e50; margin: 5px 0; }
.main-stat small { font-size: 10px; color: #999; display: block; }

/* Tabela */
.mini-emblem { width: 20px; height: 20px; vertical-align: middle; margin-right: 5px; }
.guild-col { text-align: left !important; font-size: 11px; color: #555; }
.kill-text { color: #e74c3c; font-weight: bold; }
.emp-text { color: #f39c12; font-weight: bold; }

.job-icon-top img { width: 50px; margin-bottom: 10px; filter: drop-shadow(0 0 5px rgba(0,0,0,0.2)); }
.table-job-icon { width: 22px; height: 22px; }
.guild-info-podium { font-size: 11px; color: #7f8c8d; margin-bottom: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.no-guild { color: #ccc; font-style: italic; }
.guild-col span { font-weight: 500; }

.ranking-header-premium { text-align: center; margin-bottom: 20px; }
.podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 40px 0; min-height: 280px; }
.podium-card { background: #fff; border-radius: 10px; padding: 15px; text-align: center; width: 180px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-bottom: 4px solid #ddd; }
.rank-1 { height: 260px; transform: scale(1.05); border-color: #ffd700; order: 2; }
.rank-2 { height: 220px; order: 1; border-color: #c0c0c0; }
.rank-3 { height: 200px; order: 3; border-color: #cd7f32; }
.job-icon img { width: 45px; height: 45px; margin-bottom: 10px; }
.display-name { font-weight: bold; margin: 5px 0; color: #333; }
.main-stat { font-size: 24px; font-weight: bold; color: #e74c3c; }
.main-stat small { font-size: 10px; color: #777; }
.guild-info { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: #666; margin-bottom: 5px; }
.mini-emblem { width: 20px; height: 20px; }

/* Destaque da Guilda no Pódio */
.guild-highlight { margin-bottom: 10px; }
.guild-emblem-main { width: 50px; height: 50px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.guild-name-main { font-size: 11px; font-weight: bold; color: #555; text-transform: uppercase; margin-top: 5px; }

/* Ícone de Classe minimalista no Pódio */
.job-mini-icon { position: absolute; top: 15px; right: 15px; }
.job-mini-icon img { width: 22px; height: 22px; opacity: 0.8; }

/* Ajustes de Estabilidade */
.podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 15px; margin: 40px 0; min-height: 300px; }
.podium-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; width: 200px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); position: relative; border-bottom: 5px solid #eee; }
.rank-1 { height: 280px; transform: scale(1.08); border-color: #ffd700; order: 2; z-index: 5; }
.rank-2 { height: 240px; order: 1; border-color: #c0c0c0; }
.rank-3 { height: 210px; order: 3; border-color: #cd7f32; }

.display-name { font-size: 16px; font-weight: bold; margin-top: 10px; color: #2c3e50; border-top: 1px solid #f0f0f0; padding-top: 10px; }
.main-stat { font-size: 26px; font-weight: 900; color: #e74c3c; margin-top: 5px; }

/* Pódio Estrutura */
.podium-wrapper { display: flex; align-items: flex-end; justify-content: center; gap: 15px; margin: 50px 0; min-height: 320px; }
.podium-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; width: 210px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-bottom: 5px solid #eee; }

/* Destaque da Guilda no Pódio */
.guild-box-podium { margin-bottom: 12px; height: 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.podium-emblem { width: 42px; height: 42px; margin-bottom: 5px; }
.podium-guild-name { font-size: 11px; font-weight: bold; color: #7f8c8d; text-transform: uppercase; }

/* Nome do Jogador e Classe */
.player-name-podium { font-size: 17px; font-weight: bold; color: #2c3e50; border-top: 1px solid #f5f5f5; padding-top: 10px; margin-top: 5px; }
.podium-job-icon { position: absolute; bottom: 15px; right: 15px; }
.podium-job-icon img { width: 20px; height: 20px; opacity: 0.7; }

/* Stats */
.podium-stats .kill-val { font-size: 26px; font-weight: 900; color: #e74c3c; }
.podium-stats small { font-size: 10px; color: #999; display: block; }

/* Alturas do Pódio */
.rank-1 { height: 300px; transform: scale(1.08); border-color: #ffd700; order: 2; z-index: 5; }
.rank-2 { height: 260px; order: 1; border-color: #c0c0c0; }
.rank-3 { height: 230px; order: 3; border-color: #cd7f32; }
.medal-crown { font-size: 30px; position: absolute; top: -35px; left: 50%; transform: translateX(-50%); }

.podium-stats-main { margin-top: 10px; border-top: 1px solid #eee; padding-top: 10px; }
.stat-item { font-size: 22px; font-weight: bold; color: #e74c3c; }
.stat-item-sub { display: flex; justify-content: center; gap: 10px; font-size: 12px; color: #7f8c8d; margin-top: 5px; }
.stat-item-sub i { color: #3498db; }

.rank-data-table th i { font-size: 14px; color: #555; }
.stat-emp { font-weight: bold; color: #f1c40f; }
.stat-guard, .stat-barr { color: #7f8c8d; }

.stat-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 5px; }
.kill-box { font-size: 20px; font-weight: bold; color: #e74c3c; }
.death-box { font-size: 20px; font-weight: bold; color: #95a5a6; }

.stat-kill { font-weight: bold; color: #e74c3c; }
.stat-death { font-weight: bold; color: #95a5a6; }
.stat-emp { font-weight: bold; color: #f1c40f; }