/* Bandit Running Inspired Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #faf8f5;
    color: #1a1a1a;
    line-height: 1.6;
    padding-top: 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    bottom: -6px;
    left: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 6rem;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    bottom: -10px;
    left: 0;
    animation: underlineGrow 1.5s ease-out;
}

@keyframes underlineGrow {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 4rem 0 6rem;
    padding: 0 2rem;
}

.stat-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Runs Section */
.runs-section {
    padding: 4rem 2rem 6rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -1px;
}

.runs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.run-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.run-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.run-map-container {
    width: 100%;
    height: 300px;
    background: #e8e6e3;
    position: relative;
    overflow: hidden;
}

.run-map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.run-map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #e8e6e3 0%, #d4d2cf 100%);
}

.run-content {
    padding: 2.5rem;
}

.run-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.run-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.run-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.run-detail-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.run-detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Loading & Error States */
.loading, .error {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.1rem;
    color: #666;
}

.error {
    color: #cc0000;
}

/* Back to Home Button */
.back-home {
    text-align: center;
    padding: 4rem 2rem 6rem;
}

.back-home-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
}

.back-home-btn:hover {
    background: transparent;
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        top: 1.5rem;
        right: 1.5rem;
        gap: 1.5rem;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

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

    .run-details {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}

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

    .nav {
        flex-direction: column;
        gap: 1rem;
    }
}

