/* Feature 35: Top Stats Dashboard */

#top-stats-container {
    margin-top: 20px;
    width: 100%;
}

.top-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.stat-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.stat-card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-header i {
    color: var(--brand-yellow, #fbbf24);
    font-size: 0.9rem;
}

.stat-card-header span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    letter-spacing: 0.5px;
}

.stat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: #e2e8f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.stat-rank {
    color: #64748b;
    font-size: 0.75rem;
    width: 15px;
}

.stat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.stat-val {
    font-weight: 700;
    margin-left: 10px;
    font-family: sans-serif;
    font-size: 0.8rem;
}

.stat-val.positive {
    color: #4ade80;
}

.stat-val.negative {
    color: #f87171;
}

.stat-val.neutral {
    color: #94a3b8;
}

.stat-val.gold {
    color: #fbbf24;
}

.val-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
}

.sign-badge {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-weight: 800;
    color: #fff;
    border-radius: 3px;
    margin-right: 6px;
}

.sign-badge.s1 {
    background: #3b82f6;
}

.sign-badge.sX {
    background: #8b5cf6;
}

.sign-badge.s2 {
    background: #06b6d4;
}

@media (max-width: 1200px) {
    .top-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}