:root {
    --bg-main: #0f0c1b;
    --card-bg: rgba(36, 26, 61, 0.7);
    --accent-purple: #9d4edd;
    --accent-light: #c77dff;
    --text-main: #ffffff;
    --text-sub: #b8b8d1;
    --border-color: rgba(199, 125, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    background-image: radial-gradient(circle at top right, #240046, transparent 50%),
                      radial-gradient(circle at bottom left, #10002b, transparent 50%);
}

.header {
    background: rgba(15, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-container h1 {
    font-size: 1.2rem;
    font-weight: 800;
}

.logo-container h1 span {
    color: var(--accent-light);
}

.nav-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-sub);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(157, 78, 221, 0.1);
}

.tab-btn.active {
    background: var(--accent-purple);
    color: #fff;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.content-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.club-grid, .charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 1rem;
}

.table-card, .chart-card, .player-header-card, .club-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.2rem;
    backdrop-filter: blur(8px);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.data-table th, .data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--accent-light);
}

.search-box {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 0.95rem;
}

.search-box button {
    background: var(--accent-purple);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
}

.hidden {
    display: none;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat-box .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-sub);
}

.stat-box .val {
    font-weight: 800;
    color: var(--accent-light);
}

.brawler-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.brawler-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
}

.trophy-badge {
    display: inline-block;
    background: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 800;
    margin-top: 10px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .content-container {
        padding: 1rem;
    }

    .search-box button {
        width: 100%;
    }
}
.bbr-footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bbr-footer h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.social-links-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #1f1f2e;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-btn:hover {
    background-color: #7b2cbf;
    border-color: #9d4edd;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 44, 191, 0.4);
}
.stat-box {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.stat-box img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-right: 4px;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-box {
  flex: 1 1 200px;
  min-width: 180px;
}
.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-link:hover {
  opacity: 0.8;
}

/* Estilização da Tabela de Halloween */
.halloween-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #121216; /* Fundo bem escuro estilo noite de terror */
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 117, 24, 0.2); /* Brilho laranja suave */
}

.halloween-table th, 
.halloween-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid #232333;
}

.halloween-table th {
    background-color: #ff7518; /* Laranja abóbora vibrante */
    color: #121216; /* Texto escuro para destacar no laranja */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.halloween-table tr {
    transition: background-color 0.2s ease;
}

.halloween-table tr:hover {
    background-color: #1f1b2c; /* Leve tom roxo/escuro místico ao passar o mouse */
}

.halloween-table td strong {
    color: #ff7518; /* Destaca a pontuação total em laranja */
}
.titulo-site {
    display: flex;
    align-items: center;
    gap: 12px;
}

.titulo-site img {
    width: 50px;
    height: 50px;
    max-width:50px;
    max-height:50px;
    object-fit: contain;
    flex-shrink:0;
}

.titulo-site h1 {
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
    flex-shrink: 0;
}


/* ==========================================
   BBR - RANKING DE TROFÉUS
   Pesquisa e destaque do TOP 3
========================================== */

/* Campo de pesquisa */
.ranking-search {
    margin: 0 0 20px;
}

.ranking-search input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(36, 26, 61, 0.9);
    border: 1px solid rgba(199, 125, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
}

.ranking-search input:focus {
    border-color: #c77dff;
    box-shadow: 0 0 12px rgba(199, 125, 255, 0.2);
}

.ranking-search input::placeholder {
    color: #b8a5ce;
}

/* Pódio TOP 3 */
.ranking-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.ranking-podium:empty,
.ranking-podium[hidden] {
    display: none;
}

/* Cartões dos vencedores */
.podium-card {
    min-width: 0;
    padding: 22px 12px;
    border-radius: 16px;
    border: 1px solid var(--podium-color);
    background: linear-gradient(
        160deg,
        var(--podium-bg),
        rgba(36, 26, 61, 0.85)
    );
    text-align: center;
    transition: transform 0.2s ease;
}

.podium-card:hover {
    transform: translateY(-4px);
}

.podium-place {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--podium-color);
}

.podium-name {
    margin: 10px 0;
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.podium-club {
    font-size: 0.8rem;
    color: #d3c4df;
    overflow-wrap: anywhere;
}

.podium-trophies {
    margin-top: 12px;
    font-weight: 800;
    color: var(--podium-color);
}

/* Primeiro lugar - OURO */
.podium-gold {
    --podium-color: #ffd45b;
    --podium-bg: #50381c;
}

/* Segundo lugar - PRATA */
.podium-silver {
    --podium-color: #d7dce7;
    --podium-bg: #34384b;
}

/* Terceiro lugar - BRONZE */
.podium-bronze {
    --podium-color: #e7a16e;
    --podium-bg: #4b2b26;
}

/* Ordem visual: Prata | Ouro | Bronze */
.ranking-podium .podium-card:nth-child(1) {
    grid-column: 2;
    grid-row: 1;
}

.ranking-podium .podium-card:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
}

.ranking-podium .podium-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* Tabela do ranking */
#ranking .table-card {
    overflow-x: auto;
}

#ranking .data-table {
    min-width: 550px;
}

/* Adaptação para celulares */
@media (max-width: 600px) {
    .ranking-podium {
        gap: 6px;
    }

    .podium-card {
        padding: 12px 5px;
    }

    .podium-place {
        font-size: 1rem;
    }

    .podium-name {
        font-size: 0.76rem;
    }

    .podium-club {
        font-size: 0.65rem;
    }

    .podium-trophies {
        font-size: 0.75rem;
    }
}

/* ==========================================
   ÍCONES DE PERFIL - RANKING DE TROFÉUS
========================================== */

/* Ícones na tabela */
.ranking-avatar {
    width: 34px;
    height: 34px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 50%;
}

/* Ícones no pódio TOP 3 */
.podium-avatar {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 12px auto 6px;
}

/* Versão para celulares */
@media (max-width: 600px) {
    .ranking-avatar {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .podium-avatar {
        width: 44px;
        height: 44px;
    }
}

/* BBR — Emblemas das divisões Ranqueadas */

/* Emblema no TOP 3 */

.ranked-emblem-podium {
    display: inline-block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 6px 0 0;
}

/* Emblema ao lado dos pontos na tabela */
.ranked-emblem-table {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

/* Ajustes para celulares */
@media (max-width: 600px) {
.ranked-emblem-podium {
    width: 26px;
    height: 26px;
    margin-right: 5px;
}

    .ranked-emblem-table {
        width: 26px;
        height: 26px;
        margin-right: 5px;
    }
}

