/* Hall da Fama Medieval Rústico - L2 Elyria */

.hall-da-fama {
    padding: 60px 0;
    text-align: center;
    position: relative;
    background: rgba(15, 10, 5, 0.9);
    border: 4px solid #2c1e14;
    border-image: linear-gradient(to bottom, #4a3b2a, #2c1e14) 1;
    border-radius: 2px;
    box-shadow: inset 0 0 100px #000, 0 10px 30px rgba(0,0,0,0.8);
    margin: 40px auto; /* Centraliza o container principal */
    overflow: visible;
    max-width: 1200px; /* Define uma largura máxima para o container */
}

/* Tochas Medievais */
.torch {
    position: absolute;
    top: -45px;
    width: 60px;
    height: 120px;
    z-index: 10;
}

.torch-left { left: -30px; }
.torch-right { right: -30px; }

.torch::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 60px;
    background: linear-gradient(to right, #1a1a1a, #333, #1a1a1a);
    border-radius: 2px;
    box-shadow: 2px 2px 5px #000;
}

.fire {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 55px;
    background: radial-gradient(circle at bottom, #ff4500, #ff8c00, #ffd700, transparent);
    border-radius: 50% 50% 20% 20%;
    filter: blur(1px);
    animation: flicker 0.15s infinite alternate;
    box-shadow: 0 0 30px #ff4500, 0 0 60px rgba(255, 69, 0, 0.4);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-1deg); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.05) rotate(1deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(-2deg); opacity: 1; }
}

.hall-da-fama .title {
    font-family: var(--font-2);
    font-size: 3.5rem;
    color: #d4af37;
    text-shadow: 3px 3px 0px #000, 0 0 25px rgba(212, 175, 55, 0.4);
    margin-bottom: 50px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.hall-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.hall-tab-btn {
    background: #1a120a;
    border: 2px solid #3d2b1f;
    color: #a68d6d;
    padding: 15px 35px;
    cursor: pointer;
    font-family: var(--font-1);
    font-size: 1.3rem;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 5px 5px 15px #000;
    position: relative;
}

.hall-tab-btn:hover, .hall-tab-btn.active {
    border-color: #d4af37;
    color: #fff;
    background: #2c1e14;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 15px rgba(212, 175, 55, 0.2);
}

.hall-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: #d4af37;
    box-shadow: 0 0 10px #d4af37;
}

/* Grid de Cartões (Top 3) */
.hall-content {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto; /* Centraliza o grid dentro do container */
    justify-items: center; /* Centraliza os itens individualmente */
}

.hall-content.active {
    display: grid;
}

.hall-card {
    background: #0d0906;
    border: 2px solid #3d2b1f;
    position: relative;
    box-shadow: 10px 10px 25px #000;
    transition: all 0.3s ease;
    padding: 2px;
    width: 100%; /* Garante que o cartão use o espaço da coluna */
    max-width: 300px; /* Limita a largura do cartão para não ficar gigante */
}

.hall-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
}

.hall-card-header {
    background: #1a120a;
    padding: 12px;
    font-family: var(--font-1);
    color: #d4af37;
    border-bottom: 1px solid #3d2b1f;
    font-size: 1.1rem;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hall-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle, #1a120a 0%, #0d0906 100%);
}

.hall-avatar {
    width: 160px;
    height: 160px;
    border: 1px solid #3d2b1f;
    outline: 4px solid #1a120a;
    background: #000;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 0 20px #000;
}

.hall-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) contrast(1.1);
}

.hall-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; width: 20px; height: 20px;
    border-top: 3px solid #5c4a33; border-left: 3px solid #5c4a33;
}
.hall-card::after {
    content: '';
    position: absolute;
    bottom: -2px; right: -2px; width: 20px; height: 20px;
    border-bottom: 3px solid #5c4a33; border-right: 3px solid #5c4a33;
}

.hall-score {
    font-family: var(--font-1);
    color: #8c7356;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hall-score b {
    display: block;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    margin-top: 5px;
}

/* ============================================================
   TROFÉUS GIF - Ouro, Prata e Bronze (Top Clan)
   O GIF aparece dentro do quadro do avatar (hall-avatar)
   ============================================================ */

/* Sobrescreve o estilo padrão do avatar para os GIFs de troféu:
   - object-fit: contain para não cortar a imagem
   - sem filtro de cor para preservar as cores do GIF
   - fundo preto para contrastar com o chroma-key verde */
.hall-trophy-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    background: #000;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hall-content { 
        grid-template-columns: repeat(2, 1fr); 
        max-width: 700px;
    }
}
@media (max-width: 700px) {
    .hall-content { 
        grid-template-columns: 1fr; 
        max-width: 320px;
    }
    .torch { display: none; }
}
