/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Wu'Stats – Plugin CSS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Header ───────────────────────────────────────────────── */
.wustats-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.wustats-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wustats-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

/* ── Table ────────────────────────────────────────────────── */
.wustats-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
}

.wustats-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.wustats-row:hover {
    background-color: rgba(102, 126, 234, 0.05) !important;
}

/* ── Top 3 highlight ──────────────────────────────────────── */
.wustats-top-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08), transparent) !important;
}

.wustats-top-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), transparent) !important;
}

.wustats-top-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent) !important;
}

.wustats-medal {
    font-size: 1.3rem;
}

/* ── Player Link ──────────────────────────────────────────── */
.wustats-player-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}

.wustats-player-link:hover {
    color: #667eea;
}

.wustats-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
}

/* ── ELO Badge ────────────────────────────────────────────── */
.wustats-elo {
    font-weight: 700;
    color: #667eea;
    font-size: 1rem;
}

.wustats-elo-big {
    font-weight: 800;
    font-size: 1.3rem;
    color: #667eea;
}

/* ── Match Header ─────────────────────────────────────────── */
.wustats-match-stats {
    display: inline-flex;
    gap: 1.5rem;
}

.wustats-stat-box {
    text-align: center;
}

.wustats-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
}

.wustats-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
}

/* ── MVP ──────────────────────────────────────────────────── */
.wustats-mvp-badge {
    font-weight: 600;
    color: #d4a017;
}

.wustats-mvp-badge a {
    color: #d4a017;
    text-decoration: underline;
}

.wustats-mvp-row {
    background-color: rgba(255, 215, 0, 0.06) !important;
}

.wustats-mvp-star {
    font-size: 0.85rem;
}

/* ── Player Profile Stat Cards ────────────────────────────── */
.wustats-stat-card {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    transition: transform 0.15s, box-shadow 0.15s;
}

.wustats-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wustats-stat-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
}

.wustats-stat-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ── Dark mode support (Bootstrap 5.3+ / Azuriom themes) ── */
[data-bs-theme="dark"] .wustats-header h1,
.dark .wustats-header h1 {
    background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .wustats-stat-card,
.dark .wustats-stat-card {
    background: #1e1e2e;
    border-color: #313244;
}

[data-bs-theme="dark"] .wustats-stat-card-value,
.dark .wustats-stat-card-value,
[data-bs-theme="dark"] .wustats-stat-value,
.dark .wustats-stat-value {
    color: #cdd6f4;
}

[data-bs-theme="dark"] .wustats-row:hover,
.dark .wustats-row:hover {
    background-color: rgba(165, 180, 252, 0.08) !important;
}

[data-bs-theme="dark"] .wustats-elo,
[data-bs-theme="dark"] .wustats-elo-big,
.dark .wustats-elo,
.dark .wustats-elo-big {
    color: #a5b4fc;
}

/* ── Responsive adjustments ───────────────────────────────── */
@media (max-width: 768px) {
    .wustats-match-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .wustats-header h1 {
        font-size: 1.5rem;
    }
}
