/* Running Page Specific Styles */

.running-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Strava Profile Button */
.strava-profile-link {
    text-align: center;
    margin: 2rem 0;
}

.strava-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 100%);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(252, 76, 2, 0.3);
}

.strava-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 76, 2, 0.4);
}

.strava-button svg {
    flex-shrink: 0;
}

/* Loading and Error States */
.loading, .error {
    text-align: center;
    padding: 3rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

.error {
    color: #d32f2f;
    background-color: #ffebee;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
}

/* Summary Stats Grid */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FC4C02;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Section Title */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin: 3rem 0 2rem 0;
    color: #333;
}

/* Runs Grid */
.runs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.run-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #FC4C02;
}

.run-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Activity Type Badge */
.activity-type-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.run-header {
    margin-bottom: 1rem;
}

.run-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.run-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #999;
}

.run-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.run-stat {
    display: flex;
    flex-direction: column;
}

.run-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.run-stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Achievements Badge */
.run-achievements {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.achievement-icon {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .runs-grid {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .summary-stats {
        grid-template-columns: 1fr;
    }

    .running-container {
        padding: 1rem 3%;
    }
}
