/* ============================================================
   Era + Ranking Section — home-era-ranking.css
   Inspirado no layout clássico do Ryudragon (OpenSpec 61)
   TCD-FEAT-HOME-RYUDRAGON-01
   ============================================================ */

/* ---------- Seção wrapper ---------- */
.era-ranking-section {
    background: linear-gradient(180deg,
        #0d0704 0%,
        #1a0c05 30%,
        #1f0e05 70%,
        #0d0704 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.era-ranking-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(180, 80, 20, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(160, 50, 10, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Header da seção ---------- */
.era-ranking-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.era-ranking-header h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #d4a851;
    margin: 0.5rem 0 0;
    letter-spacing: 0.04em;
}

/* ---------- Grid principal (3 colunas) ---------- */
.era-ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .era-ranking-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Cards base ---------- */
.era-anuncio-card,
.era-ranking-card,
.era-stats-card {
    background: linear-gradient(160deg, #1e0e06 0%, #150a04 100%);
    border: 1px solid rgba(196, 148, 60, 0.3);
    border-radius: 4px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(196, 148, 60, 0.1);
    position: relative;
    overflow: hidden;
}

.era-anuncio-card::before,
.era-ranking-card::before,
.era-stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c4943c, transparent);
}

/* ---------- Card de Anúncio da Era ---------- */
.era-anuncio-card {
    padding: 2rem 1.5rem;
    text-align: center;
}

.era-anuncio-badge {
    margin-bottom: 1rem;
}

.era-tipo-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.era-tipo-beta {
    background: rgba(180, 60, 20, 0.25);
    border: 1px solid rgba(220, 80, 30, 0.5);
    color: #e87040;
}

.era-tipo-oficial {
    background: rgba(196, 148, 60, 0.15);
    border: 1px solid rgba(196, 148, 60, 0.4);
    color: #d4a851;
}

.era-anuncio-dragon-icon {
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(196, 148, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.era-anuncio-dragon-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(196, 148, 60, 0.4));
}

.era-anuncio-titulo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a851;
    margin: 0 0 0.25rem;
    letter-spacing: 0.04em;
}

.era-anuncio-subtitulo {
    font-size: 0.85rem;
    color: rgba(196, 148, 60, 0.7);
    margin: 0 0 1rem;
    font-style: italic;
}

.era-anuncio-datas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.era-data-item {
    text-align: center;
}

.era-data-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.era-data-value {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #c49030;
    font-weight: 600;
}

.era-anuncio-descricao {
    font-size: 0.8rem;
    color: rgba(220, 180, 120, 0.6);
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.era-anuncio-cta {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #8b3a12 0%, #c4601a 50%, #8b3a12 100%);
    border: 1px solid rgba(196, 148, 60, 0.5);
    border-radius: 2px;
    color: #f5d080 !important;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.era-anuncio-cta:hover {
    background: linear-gradient(135deg, #a04516 0%, #d4721e 50%, #a04516 100%);
    box-shadow: 0 4px 16px rgba(180, 80, 20, 0.4);
    transform: translateY(-1px);
}

/* ---------- Card de Ranking ---------- */
.era-ranking-card {
    padding: 0;
}

.era-ranking-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(196, 148, 60, 0.15);
}

.era-ranking-icon {
    font-size: 1.1rem;
}

.era-ranking-card-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #d4a851;
    margin: 0;
    flex: 1;
    letter-spacing: 0.04em;
}

.era-ranking-era-label {
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.era-ranking-lista {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.era-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.5rem;
    border-bottom: 1px solid rgba(196, 148, 60, 0.06);
    transition: background 0.15s;
}

.era-ranking-item:hover {
    background: rgba(196, 148, 60, 0.05);
}

.era-ranking-item--top-1 { background: rgba(196, 148, 60, 0.08); }
.era-ranking-item--top-2 { background: rgba(160, 160, 160, 0.05); }
.era-ranking-item--top-3 { background: rgba(140, 80, 20, 0.05); }

.era-ranking-pos {
    font-size: 1rem;
    min-width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.era-ranking-pos strong {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    color: rgba(196, 148, 60, 0.5);
}

.era-ranking-nome {
    flex: 1;
    font-size: 0.85rem;
    color: #dcc090;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.era-ranking-detalhes {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    flex-shrink: 0;
}

.era-ranking-nivel {
    font-size: 0.7rem;
    color: rgba(196, 148, 60, 0.7);
    font-weight: 600;
}

.era-ranking-origem {
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.4);
}

.era-ranking-vazio {
    padding: 2rem;
    text-align: center;
    color: rgba(196, 148, 60, 0.4);
    font-size: 0.85rem;
}

.era-ranking-ver-mais {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-top: 1px solid rgba(196, 148, 60, 0.15);
    font-size: 0.75rem;
    color: rgba(196, 148, 60, 0.6) !important;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Cinzel', serif;
    transition: color 0.2s;
}

.era-ranking-ver-mais:hover {
    color: #d4a851 !important;
}

/* ---------- Card de Stats ---------- */
.era-stats-card {
    padding: 1.5rem;
}

.era-stats-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.era-stats-icon {
    font-size: 1.1rem;
}

.era-stats-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #d4a851;
    margin: 0;
    letter-spacing: 0.04em;
}

.era-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.era-stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(196, 148, 60, 0.15);
    border-radius: 3px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.era-stat-value {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #d4a851;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.era-stat-online {
    color: #4dba87;
}

.era-stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.era-stats-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 148, 60, 0.2), transparent);
    margin: 1rem 0;
}

.era-stats-cta-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.era-stats-btn {
    display: block;
    padding: 0.6rem 1rem;
    text-align: center;
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s;
    background: linear-gradient(135deg, #8b3a12 0%, #c4601a 50%, #8b3a12 100%);
    border: 1px solid rgba(196, 148, 60, 0.5);
    color: #f5d080 !important;
}

.era-stats-btn:hover {
    background: linear-gradient(135deg, #a04516 0%, #d4721e 50%, #a04516 100%);
    transform: translateY(-1px);
}

.era-stats-btn--secondary {
    background: transparent;
    border-color: rgba(196, 148, 60, 0.3);
    color: rgba(196, 148, 60, 0.7) !important;
}

.era-stats-btn--secondary:hover {
    background: rgba(196, 148, 60, 0.08);
    color: #d4a851 !important;
    transform: translateY(-1px);
}

/* ---------- Mini ranking de origens ---------- */
.era-stats-origens {
    margin-top: 0.5rem;
}

.era-stats-origens-titulo {
    display: block;
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}

.era-stats-origens-lista {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.era-origin-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.era-origin-bar-nome {
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.6);
    min-width: 4rem;
}

.era-origin-bar-wrap {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    overflow: hidden;
}

.era-origin-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b3a12, #c4943c);
    border-radius: 2px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.era-origin-bar-count {
    font-size: 0.65rem;
    color: rgba(196, 148, 60, 0.5);
    min-width: 1.2rem;
    text-align: right;
}
