/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --secondary: #004E89;
    --dark: #1A1A2E;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--white);
}

.hero h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 24px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 48px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text .lead {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

/* Runs Section */
.runs {
    background: var(--white);
}

.runs-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.schedule-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 40px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
    transition: transform 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-8px);
}

.schedule-card .day {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

.schedule-card .time {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0.9;
}

.schedule-card .details {
    padding-top: 24px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.schedule-card .location {
    font-size: 16px;
    margin-bottom: 8px;
}

.schedule-card .distance {
    font-size: 14px;
    opacity: 0.8;
}

.card-link {
    color: var(--white);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity 0.3s ease;
}

.card-link:hover {
    opacity: 0.8;
}

/* Recent Activities */
.recent-activities h3 {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 32px;
    text-align: center;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.activity-card {
    background: var(--light);
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.activity-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.activity-card .athlete {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.activity-card .title {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 15px;
}

.activity-card .stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.activity-card .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.loading {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    font-size: 16px;
}

/* Schedule Note */
.schedule-note {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 64px;
}

.schedule-note p {
    color: var(--text-light);
    font-size: 14px;
}

.schedule-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.schedule-note a:hover {
    text-decoration: underline;
}

/* Strava Link Box */
.strava-link-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 32px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.strava-link-box p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Leaderboard Section */
.leaderboard {
    background: var(--light);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 32px;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.leaderboard-content {
    position: relative;
    min-height: 400px;
}

.leaderboard-list {
    display: none;
}

.leaderboard-list.active {
    display: block;
}

.leaderboard-item {
    background: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.leaderboard-item:hover {
    transform: translateX(8px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.leaderboard-rank {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    min-width: 60px;
    text-align: center;
}

.leaderboard-rank.gold {
    color: #FFD700;
}

.leaderboard-rank.silver {
    color: #C0C0C0;
}

.leaderboard-rank.bronze {
    color: #CD7F32;
}

.leaderboard-athlete {
    flex: 1;
}

.leaderboard-athlete .name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.leaderboard-athlete .detail {
    font-size: 14px;
    color: var(--text-light);
}

.leaderboard-stat {
    text-align: right;
}

.leaderboard-stat .value {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.leaderboard-stat .label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* As Seen In Section */
.as-seen-in {
    background: var(--white);
}

.press-feature {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.press-link {
    display: flex;
    align-items: center;
    gap: 32px;
    text-decoration: none;
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--light);
}

.press-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.press-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.press-text {
    flex: 1;
}

.press-outlet {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.press-title {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.press-date {
    font-size: 14px;
    color: var(--text-light);
}

/* Instagram Section */
.instagram {
    background: var(--light);
}

.instagram-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.instagram-cta p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 32px;
}

/* Join Section */
.join {
    background: var(--white);
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-content .lead {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 64px;
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.step p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.step-button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-button:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-logo {
        width: 150px;
        height: 150px;
    }

    .hero-tagline {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-text .lead {
        font-size: 20px;
    }

    .about-text p {
        font-size: 16px;
    }

    .stats {
        flex-direction: row;
    }

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

    .leaderboard-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
    }

    .leaderboard-item {
        flex-direction: column;
        text-align: center;
    }

    .leaderboard-stat {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
}
