/**
 * Custom Unified Styles for SphereWeb / OneUI Statistics Pages (L2UA)
 */

/* ==========================================================================
   STATISTICS INFO BANNER & CARDS
   ========================================================================== */
.stat-info-banner {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.stat-info-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem 1.25rem;
}

.stat-info-desc {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.stat-cmd-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.45rem;
    padding: 0.65rem 0.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.stat-card-title {
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: 0.2px;
}

.stat-card-val {
    font-weight: 700;
    font-size: 0.92rem;
}

.stat-val-green {
    color: #34d399;
}

.stat-val-cyan {
    color: #38bdf8;
}

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

.stat-val-indigo {
    color: #818cf8;
}

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

.stat-val-sub {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: normal;
}

/* ==========================================================================
   STATISTICS TABLE & ELEMENTS
   ========================================================================== */
.stat-table-wrap {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.stat-table thead th {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 0.75rem;
}

.stat-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color 0.15s ease;
}

.stat-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.stat-table tbody td,
.stat-table tbody th {
    vertical-align: middle;
    padding: 0.65rem 0.75rem;
}

/* Ranks */
.stat-rank-1 {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.stat-rank-2 {
    display: inline-block;
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(100, 116, 139, 0.3);
}

.stat-rank-3 {
    display: inline-block;
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #ffffff;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(180, 83, 9, 0.3);
}

.stat-rank-num {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Points */
.stat-points-top {
    display: inline-flex;
    align-items: center;
    background: rgba(245, 158, 11, 0.15);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.35rem;
}

.stat-points-normal {
    display: inline-flex;
    align-items: center;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Links */
.stat-clan-link {
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.stat-clan-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.stat-player-link {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.stat-player-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.stat-castle-badge {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 0.3rem;
}

.stat-muted-val {
    color: #cbd5e1;
    font-weight: 500;
}
