/* solo-dashboard.css - SOLO Tab Dashboard Styles */

/* Dashboard Container */
.solo-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Dashboard Rows */
.solo-dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* Quick Play Section - Prominent positioning */
.solo-dashboard-quickplay {
    padding: 1.5rem;
}

.solo-dashboard-quickplay h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a0c4ff;
    margin-bottom: 1rem;
    text-align: center;
}

.solo-dashboard-quickplay .difficulty-toggles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

/* Stats Section */
.solo-dashboard-stats {
    padding: 1.25rem;
}

.solo-dashboard-stats h3,
.solo-dashboard-online h3,
.solo-dashboard-leaderboard h3,
.solo-dashboard-activity h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a0c4ff;
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(100, 150, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(100, 150, 255, 0.15);
}

.stat-value {
    display: block;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(100, 180, 255, 0.4);
}

.stat-label {
    display: block;
    font-size: 0.65rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8cb4e0;
    margin-top: 0.25rem;
}

/* Personal Bests */
.personal-bests {
    border-top: 1px solid rgba(100, 150, 255, 0.15);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.personal-bests h4 {
    font-size: 0.75rem;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a0c4ff;
    margin-bottom: 0.75rem;
}

.bests-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.best-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: rgba(100, 150, 255, 0.05);
    border-radius: 6px;
}

.best-difficulty {
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    color: #c8dcff;
}

.best-time {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #60b0ff;
}

/* Online Players Display */
.solo-dashboard-online {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
}

.online-display {
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

.online-count {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #4dff79;
    text-shadow: 0 0 20px rgba(77, 255, 121, 0.5);
    line-height: 1;
}

.online-label {
    display: block;
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
    color: #8cb4e0;
    margin-top: 0.5rem;
}

/* Animated pulse ring */
.online-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(77, 255, 121, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* Leaderboard Preview */
.solo-dashboard-leaderboard {
    padding: 1.25rem;
}

.solo-dashboard-leaderboard .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.solo-dashboard-leaderboard .section-header h3 {
    margin-bottom: 0;
}

.leaderboard-filters-mini {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.filter-btn-mini {
    flex: 1;
    padding: 0.35rem 0.4rem;
    font-size: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    background: rgba(100, 150, 255, 0.1);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 6px;
    color: #a0c4ff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn-mini:hover {
    background: rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.4);
}

.filter-btn-mini.active {
    background: linear-gradient(180deg, rgba(80, 120, 200, 0.8) 0%, rgba(60, 100, 180, 0.8) 100%);
    border-color: rgba(100, 180, 255, 0.5);
    color: #ffffff;
}

.leaderboard-preview {
    min-height: 100px;
}

.preview-row {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.3rem;
    background: rgba(100, 150, 255, 0.05);
    transition: background 0.2s ease;
}

.preview-row:hover {
    background: rgba(100, 150, 255, 0.1);
}

.preview-row.rank-1 { background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, transparent 100%); }
.preview-row.rank-2 { background: linear-gradient(90deg, rgba(192, 192, 192, 0.15) 0%, transparent 100%); }
.preview-row.rank-3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, transparent 100%); }

.preview-rank {
    width: 26px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #c8dcff;
}

.preview-name {
    flex: 1;
    font-size: 0.8rem;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-time {
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    color: #60b0ff;
}

.view-all-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 6px;
    color: #a0c4ff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background: rgba(100, 150, 255, 0.15);
    border-color: rgba(100, 180, 255, 0.5);
    color: #ffffff;
}

.your-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    margin-top: 0.6rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
}

.your-rank .rank-label {
    font-size: 0.75rem;
    color: #8cb4e0;
}

.your-rank .rank-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #3b82f6;
}

/* Activity Feed */
.solo-dashboard-activity {
    padding: 1.25rem;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 160px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    background: rgba(100, 150, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
}

.activity-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-text {
    color: #d0e0ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.activity-time {
    font-size: 0.65rem;
    color: #8cb4e0;
    flex-shrink: 0;
}

/* Loading states */
.leaderboard-loading,
.activity-loading {
    text-align: center;
    padding: 1.5rem;
    color: #8cb4e0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .solo-dashboard-row {
        grid-template-columns: 1fr;
    }

    .solo-dashboard-quickplay .difficulty-toggles {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .online-count {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .solo-dashboard {
        gap: 1rem;
    }

    .stat-card {
        padding: 0.5rem 0.25rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .leaderboard-filters-mini {
        gap: 0.3rem;
    }

    .filter-btn-mini {
        padding: 0.3rem;
        font-size: 0.65rem;
    }
}

/* ========================================
   Theme: Light
   ======================================== */
.theme-light .solo-dashboard-quickplay h3,
.theme-light .solo-dashboard-stats h3,
.theme-light .solo-dashboard-online h3,
.theme-light .solo-dashboard-leaderboard h3,
.theme-light .solo-dashboard-activity h3,
.theme-light .personal-bests h4 {
    color: #2d4a6f;
}

.theme-light .stat-card {
    background: rgba(80, 120, 180, 0.1);
    border-color: rgba(80, 120, 180, 0.2);
}

.theme-light .stat-value {
    color: #1e3a5f;
    text-shadow: none;
}

.theme-light .stat-label {
    color: #3d5a80;
}

.theme-light .online-count {
    color: #15803d;
    text-shadow: none;
}

.theme-light .online-label {
    color: #3d5a80;
}

.theme-light .online-pulse {
    border-color: rgba(21, 128, 61, 0.3);
}

.theme-light .filter-btn-mini {
    background: rgba(80, 120, 180, 0.1);
    border-color: rgba(80, 120, 180, 0.2);
    color: #2d4a6f;
}

.theme-light .filter-btn-mini.active {
    background: linear-gradient(180deg, rgba(70, 110, 175, 0.9) 0%, rgba(55, 95, 160, 0.9) 100%);
    color: #ffffff;
}

.theme-light .preview-rank {
    color: #3d5a80;
}

.theme-light .preview-name {
    color: #1e3a5f;
}

.theme-light .preview-time,
.theme-light .best-time {
    color: #2563eb;
}

.theme-light .best-difficulty {
    color: #3d5a80;
}

.theme-light .activity-text {
    color: #2d4a6f;
}

.theme-light .activity-time {
    color: #5a7a9a;
}

.theme-light .view-all-btn {
    color: #2d4a6f;
    border-color: rgba(45, 74, 111, 0.3);
}

.theme-light .view-all-btn:hover {
    color: #1e3a5f;
    background: rgba(80, 120, 180, 0.15);
}

.theme-light .your-rank .rank-label {
    color: #3d5a80;
}

.theme-light .leaderboard-loading,
.theme-light .activity-loading {
    color: #3d5a80;
}

/* ========================================
   Theme: Classic (Windows 95/XP)
   ======================================== */
.theme-classic .solo-dashboard {
    gap: 0.75rem;
}

.theme-classic .solo-dashboard-quickplay h3,
.theme-classic .solo-dashboard-stats h3,
.theme-classic .solo-dashboard-online h3,
.theme-classic .solo-dashboard-leaderboard h3,
.theme-classic .solo-dashboard-activity h3,
.theme-classic .personal-bests h4 {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .stat-card {
    background: #fff;
    border: 2px inset #808080;
    border-radius: 0;
}

.theme-classic .stat-value {
    color: #000080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    text-shadow: none;
}

.theme-classic .stat-label {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .online-count {
    color: #008000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
    text-shadow: none;
}

.theme-classic .online-label {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .online-pulse {
    display: none;
}

.theme-classic .filter-btn-mini {
    background: #c0c0c0;
    border: 2px outset #fff;
    border-radius: 0;
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .filter-btn-mini:hover {
    background: #d4d4d4;
}

.theme-classic .filter-btn-mini.active {
    border: 2px inset #808080;
    background: #c0c0c0;
}

.theme-classic .preview-row {
    background: #fff;
    border: 1px solid #808080;
    border-radius: 0;
}

.theme-classic .preview-rank {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .preview-name {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .preview-time,
.theme-classic .best-time {
    color: #000080;
    font-family: 'Courier New', monospace;
}

.theme-classic .best-item {
    background: #fff;
    border: 1px solid #808080;
    border-radius: 0;
}

.theme-classic .best-difficulty {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .activity-item {
    background: #fff;
    border: 1px solid #808080;
    border-radius: 0;
}

.theme-classic .activity-text {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .activity-time {
    color: #444;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .view-all-btn {
    background: #c0c0c0;
    border: 2px outset #fff;
    border-radius: 0;
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .view-all-btn:hover {
    background: #d4d4d4;
}

.theme-classic .view-all-btn:active {
    border: 2px inset #808080;
}

.theme-classic .your-rank .rank-label {
    color: #000;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .your-rank .rank-value {
    color: #000080;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

.theme-classic .leaderboard-loading,
.theme-classic .activity-loading {
    color: #444;
    font-family: 'MS Sans Serif', Tahoma, sans-serif;
}

/* ========================================
   Theme: Kokoro
   ======================================== */
.theme-kokoro .solo-dashboard-quickplay h3,
.theme-kokoro .solo-dashboard-stats h3,
.theme-kokoro .solo-dashboard-online h3,
.theme-kokoro .solo-dashboard-leaderboard h3,
.theme-kokoro .solo-dashboard-activity h3,
.theme-kokoro .personal-bests h4 {
    color: #d85a8a;
}

.theme-kokoro .stat-card {
    background: rgba(255, 182, 193, 0.15);
    border-color: rgba(255, 105, 180, 0.2);
}

.theme-kokoro .stat-value {
    color: #c14d7a;
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.theme-kokoro .stat-label {
    color: #d85a8a;
}

.theme-kokoro .online-count {
    color: #e91e8c;
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.theme-kokoro .online-label {
    color: #d85a8a;
}

.theme-kokoro .online-pulse {
    border-color: rgba(255, 105, 180, 0.3);
}

.theme-kokoro .filter-btn-mini {
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.2);
    color: #c14d7a;
}

.theme-kokoro .filter-btn-mini:hover {
    background: rgba(255, 105, 180, 0.2);
}

.theme-kokoro .filter-btn-mini.active {
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border-color: rgba(255, 105, 180, 0.5);
    color: #fff;
}

.theme-kokoro .preview-row {
    background: rgba(255, 182, 193, 0.1);
}

.theme-kokoro .preview-row:hover {
    background: rgba(255, 182, 193, 0.2);
}

.theme-kokoro .preview-rank {
    color: #c14d7a;
}

.theme-kokoro .preview-name {
    color: #a83d6a;
}

.theme-kokoro .preview-time,
.theme-kokoro .best-time {
    color: #d6336c;
}

.theme-kokoro .best-difficulty {
    color: #c14d7a;
}

.theme-kokoro .activity-item {
    background: rgba(255, 182, 193, 0.1);
}

.theme-kokoro .activity-text {
    color: #a83d6a;
}

.theme-kokoro .activity-time {
    color: #c14d7a;
}

.theme-kokoro .view-all-btn {
    border-color: rgba(255, 105, 180, 0.3);
    color: #c14d7a;
}

.theme-kokoro .view-all-btn:hover {
    background: rgba(255, 105, 180, 0.2);
    border-color: rgba(255, 105, 180, 0.5);
    color: #a83d6a;
}

.theme-kokoro .your-rank {
    background: rgba(255, 105, 180, 0.1);
    border-color: rgba(255, 105, 180, 0.2);
}

.theme-kokoro .your-rank .rank-label {
    color: #c14d7a;
}

.theme-kokoro .your-rank .rank-value {
    color: #d6336c;
}

.theme-kokoro .personal-bests {
    border-color: rgba(255, 105, 180, 0.15);
}

.theme-kokoro .leaderboard-loading,
.theme-kokoro .activity-loading {
    color: #c14d7a;
}
