* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #1d1d1f;
    line-height: 1.6;
}

/* Header Apple-style */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.ticker {
    flex: 1;
    text-align: center;
    margin: 0 40px;
    overflow: hidden;
}

.ticker-content {
    font-size: 0.9rem;
    font-weight: 500;
    color: #007AFF;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.auth-buttons {
    display: flex;
    gap: 8px;
}

.auth-buttons a {
    padding: 8px 16px;
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-buttons a:hover {
    background: #007AFF;
    color: white;
    transform: translateY(-1px);
}

/* Main Content */
main {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #007AFF, #34C759);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #6e6e73;
    font-weight: 400;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Interactive Sport Display */
.sport-display {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.central-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.central-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.click-hint {
    text-align: center;
    margin-top: 20px;
    color: #6e6e73;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Sport Cards */
.sport-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.sport-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

.sport-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sport-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.sport-card p {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.image-gallery::-webkit-scrollbar {
    height: 4px;
}

.image-gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.image-gallery::-webkit-scrollbar-thumb {
    background: #007AFF;
    border-radius: 2px;
}

.gallery-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Special styling for different sport types */
.sport-card.semi-marathon {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border-left: 4px solid #FF9500;
}

.sport-card.blessure {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.1), rgba(255, 69, 58, 0.1));
    border-left: 4px solid #FF3B30;
}

.sport-card.musculation {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(48, 209, 88, 0.1));
    border-left: 4px solid #34C759;
}

.sport-card.hyrox {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(64, 156, 255, 0.1));
    border-left: 4px solid #007AFF;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sport-card {
    animation: fadeInUp 0.6s ease forwards;
}

.sport-card:nth-child(1) {
    animation-delay: 0.1s;
}

.sport-card:nth-child(2) {
    animation-delay: 0.2s;
}

.sport-card:nth-child(3) {
    animation-delay: 0.3s;
}

.sport-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .ticker {
        margin: 0;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }

    .sport-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .sport-card {
        padding: 24px;
    }

    main {
        padding-top: 140px;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}