
/* LearnFrisian Points System v2.2 - Premium Styles */
.lf-stats-card {
    background: linear-gradient(135deg, var(--rank-color, #1a2a4a) 0%, #0d1520 100%);
    border: 2px solid var(--rank-accent, #4a7fa5);
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    margin: 20px auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.lf-stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, var(--rank-accent, #4a7fa5) 0%, transparent 50%);
    opacity: 0.08;
    pointer-events: none;
}
.lf-stats-inner { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; }
.lf-stats-emblem { flex-shrink: 0; }
.lf-stats-emblem .lf-rank-emblem svg { width: 80px; height: 80px; filter: drop-shadow(0 0 12px var(--rank-accent, #4a7fa5)); }
.lf-stats-info { flex: 1; }
.lf-stats-rank-name { font-size: 1.5rem; font-weight: 800; color: var(--rank-accent, #4a7fa5); letter-spacing: 0.05em; text-transform: uppercase; text-shadow: 0 0 20px var(--rank-accent, #4a7fa5); }
.lf-stats-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.lf-stats-numbers { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.lf-stat-item { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.lf-stat-icon { font-size: 1.2rem; }
.lf-stat-val { font-size: 1.4rem; font-weight: 800; color: white; }
.lf-stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); min-width: 40px; }
.lf-leaderboard-wrap { max-width: 800px; margin: 20px auto; font-family: 'Segoe UI', sans-serif; }
.lf-lb-toggle { display: flex; gap: 12px; margin-bottom: 20px; justify-content: center; }
.lf-lb-btn { padding: 12px 28px; border: 2px solid #d0a030; background: transparent; color: #d0a030; border-radius: 50px; cursor: pointer; font-size: 1rem; font-weight: 700; letter-spacing: 0.05em; transition: all 0.3s ease; }
.lf-lb-btn:hover, .lf-lb-btn.active { background: linear-gradient(135deg, #d0a030, #906000); color: white; border-color: transparent; box-shadow: 0 4px 20px rgba(208,160,48,0.4); }
.lf-leaderboard-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.lf-leaderboard-table thead th { padding: 10px 16px; color: rgba(255,255,255,0.5); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: left; background: #111827; }
.lf-leaderboard-table thead th:first-child { border-radius: 8px 0 0 8px; }
.lf-leaderboard-table thead th:last-child { border-radius: 0 8px 8px 0; text-align: right; }
.lf-lb-row td { padding: 14px 16px; background: #111827; vertical-align: middle; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.2s; }
.lf-lb-row:hover td { background: #1a2436; }
.lf-lb-row td:first-child { border-radius: 10px 0 0 10px; border-left: 3px solid var(--row-accent, #4a7fa5); }
.lf-lb-row td:last-child { border-radius: 0 10px 10px 0; text-align: right; }
.lf-lb-rank-num { font-size: 1rem; font-weight: 800; color: white; min-width: 30px; display: inline-block; }
.lf-lb-rank-num.gold { color: #FFD700; text-shadow: 0 0 8px #FFD700; }
.lf-lb-rank-num.silver { color: #C0C0C0; text-shadow: 0 0 8px #C0C0C0; }
.lf-lb-rank-num.bronze { color: #CD7F32; text-shadow: 0 0 8px #CD7F32; }
.lf-lb-emblem { display: inline-block; vertical-align: middle; }
.lf-lb-emblem .lf-rank-emblem svg { width: 36px; height: 36px; filter: drop-shadow(0 0 6px var(--row-accent, #4a7fa5)); }
.lf-lb-name { font-size: 1rem; font-weight: 600; color: white; margin-left: 8px; }
.lf-lb-rank-label { font-size: 0.8rem; color: var(--row-accent, #4a7fa5); display: block; }
.lf-lb-val { font-size: 1.2rem; font-weight: 800; color: white; }
.lf-lb-loading { text-align: center; padding: 40px; color: #d0a030; font-size: 1.2rem; }
.lf-ranks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; padding: 20px 0; max-width: 1100px; margin: 0 auto; }
.lf-rank-card { border-radius: 16px; overflow: hidden; background: #0d1520; border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 8px 32px rgba(0,0,0,0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lf-rank-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.lf-rank-card-image { background: linear-gradient(135deg, var(--card-bg, #1a2a4a) 0%, #050810 100%); display: flex; align-items: center; justify-content: center; padding: 32px 20px; position: relative; overflow: hidden; min-height: 160px; border-bottom: 2px solid var(--card-accent, #4a7fa5); }
.lf-rank-card-image::before { content: ''; position: absolute; top: -30%; left: -30%; width: 160%; height: 160%; background: radial-gradient(circle at 40% 40%, var(--card-accent, #4a7fa5), transparent 55%); opacity: 0.12; pointer-events: none; }
.lf-rank-card-image::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 40px; background: linear-gradient(to top, #0d1520, transparent); pointer-events: none; }
.lf-rank-card-shine { position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent); transform: skewX(-20deg); pointer-events: none; }
.lf-rank-card:hover .lf-rank-card-shine { animation: shine 0.6s ease forwards; }
@keyframes shine { to { left: 150%; } }
.lf-rank-card-image .lf-rank-emblem svg { width: 90px; height: 90px; filter: drop-shadow(0 0 18px var(--card-accent, #4a7fa5)); position: relative; z-index: 1; }
.lf-rank-card-body { padding: 20px; }
.lf-rank-card-name { font-size: 1.3rem; font-weight: 800; color: var(--card-accent, #4a7fa5); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.lf-rank-card-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.lf-rank-card-pts { display: inline-block; background: var(--card-accent, #4a7fa5); color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; margin-bottom: 12px; }
.lf-rank-card-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }
.lf-rank-emblem { display: inline-block; }
