/* ================================================
   THEME: CLEAN / MODERN (Strava-lite)
   Body class: .theme-clean
   Fonts: Inter, Poppins
   Colors: White, light gray, subtle blue accents
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

body.theme-clean {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.6;
}

.theme-clean h1, .theme-clean h2, .theme-clean h3, .theme-clean h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a2e;
}

/* Header */
.theme-clean .site-header {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.theme-clean .site-header .logo {
    color: #2563eb;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.theme-clean .site-header .tagline {
    color: #6c757d;
    font-size: 0.85rem;
}

.theme-clean .nav a {
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-clean .nav a:hover,
.theme-clean .nav a.active {
    background: #eef2ff;
    color: #2563eb;
}

/* Stats Bar */
.theme-clean .stats-bar {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.theme-clean .stat-card {
    text-align: center;
    padding: 12px;
}

.theme-clean .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.theme-clean .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-top: 4px;
}

/* Runner Cards */
.theme-clean .runner-grid {
    gap: 20px;
}

.theme-clean .runner-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.theme-clean .runner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.theme-clean .runner-card .avatar {
    border: 3px solid #e9ecef;
    width: 80px;
    height: 80px;
    transition: border-color 0.3s ease;
}

.theme-clean .runner-card:hover .avatar {
    border-color: #2563eb;
}

.theme-clean .runner-card .name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    margin-top: 12px;
}

.theme-clean .runner-card .nickname {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Streaks */
.theme-clean .streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #92400e;
    margin-top: 8px;
}

.theme-clean .streak-fire {
    font-size: 1.1rem;
}

.theme-clean .streak-zero {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Medals */
.theme-clean .medal {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
}

.theme-clean .medal-bronze {
    background: #fef3e2;
    color: #92400e;
}

.theme-clean .medal-silver {
    background: #f3f4f6;
    color: #4b5563;
}

.theme-clean .medal-gold {
    background: #fef9c3;
    color: #854d0e;
}

.theme-clean .medal-platinum {
    background: #ede9fe;
    color: #5b21b6;
}

.theme-clean .medal-diamond {
    background: #e0f2fe;
    color: #0369a1;
}

/* Km / Stats line */
.theme-clean .runner-card .stats-line {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #6c757d;
}

.theme-clean .runner-card .stats-line span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Today's Status */
.theme-clean .today-status {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.theme-clean .today-status.active {
    border-color: #86efac;
    background: #f0fdf4;
}

.theme-clean .today-status h3 {
    color: #166534;
}

.theme-clean .today-status .pulse-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: glow-pulse 2s infinite;
}

/* Bench Zone */
.theme-clean .bench-zone {
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.theme-clean .bench-zone h3 {
    color: #6b7280;
}

.theme-clean .bench-zone .runner-card {
    opacity: 0.6;
    background: #f3f4f6;
    border-color: #e5e7eb;
    transform: scale(0.92);
}

.theme-clean .bench-zone .runner-card:hover {
    opacity: 0.85;
    transform: scale(0.95);
}

/* Leaderboard */
.theme-clean .leaderboard {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.theme-clean .leaderboard-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.theme-clean .leaderboard-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.theme-clean .leaderboard-tab.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.theme-clean .leaderboard table {
    width: 100%;
    border-collapse: collapse;
}

.theme-clean .leaderboard th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.theme-clean .leaderboard td {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.theme-clean .leaderboard tr:nth-child(1) td {
    background: #fefce8;
}

.theme-clean .leaderboard tr:nth-child(2) td {
    background: #f8fafc;
}

.theme-clean .leaderboard tr:nth-child(3) td {
    background: #fff7ed;
}

/* Coming Soon */
.theme-clean .coming-soon {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e9ecef;
}

.theme-clean .coming-soon h2 {
    color: #6b7280;
    font-size: 1.2rem;
}

.theme-clean .coming-soon .feature-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.theme-clean .coming-soon .feature-card::after {
    content: 'SOON';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.theme-clean .coming-soon .feature-card .icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.theme-clean .coming-soon .feature-card h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.theme-clean .coming-soon .feature-card p {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Music Player */
.theme-clean .music-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.theme-clean .music-player {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
}

.theme-clean .music-player .track-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.theme-clean .music-player .controls button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: background 0.2s;
}

.theme-clean .music-player .controls button:hover {
    background: #1d4ed8;
}

/* Buttons */
.theme-clean .btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.theme-clean .btn-primary {
    background: #2563eb;
    color: white;
    border: none;
}

.theme-clean .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.theme-clean .btn-success {
    background: #16a34a;
    color: white;
    border: none;
}

.theme-clean .btn-danger {
    background: #dc2626;
    color: white;
    border: none;
}

/* Forms */
.theme-clean .form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.theme-clean .form-group input,
.theme-clean .form-group select,
.theme-clean .form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-clean .form-group input:focus,
.theme-clean .form-group select:focus,
.theme-clean .form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Alerts */
.theme-clean .alert {
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
}

.theme-clean .alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.theme-clean .alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Footer */
.theme-clean .site-footer {
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Theme Switcher */
.theme-clean .theme-switcher {
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Scrollbar */
.theme-clean ::-webkit-scrollbar {
    width: 6px;
}

.theme-clean ::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.theme-clean ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.theme-clean ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Progress rings (Strava-inspired) */
.theme-clean .progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.theme-clean .progress-ring svg {
    transform: rotate(-90deg);
}

.theme-clean .progress-ring circle {
    fill: none;
    stroke-width: 4;
}

.theme-clean .progress-ring .bg {
    stroke: #e9ecef;
}

.theme-clean .progress-ring .fill {
    stroke: #2563eb;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

/* Attendance Grid */
.theme-clean .attendance-grid {
    gap: 12px;
}

.theme-clean .attendance-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.2s;
}

.theme-clean .attendance-item.checked {
    border-color: #86efac;
    background: #f0fdf4;
}

.theme-clean .attendance-item:hover {
    border-color: #bfdbfe;
}

/* Section spacing */
.theme-clean section {
    margin-bottom: 32px;
}

.theme-clean .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}
