/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #1a1a2e;
    --color-accent: #e94560;
    --color-bg: #0f0f1a;
    --color-card: #16213e;
    --color-white: #ffffff;
    --color-text: #eaeaea;
    --color-text-muted: #a0a0a0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
}

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

/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.welcome-to {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.hero h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a9eff;
    letter-spacing: -0.3px;
    text-align: center;
}

/* Event Section */
.event-section {
    padding: 20px 0 60px;
}

.event-content {
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.event-banner {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.event-banner-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.event-details {
    padding: 32px;
    text-align: center;
}

.event-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.event-meta-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.event-description {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.register-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 16px 48px;
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(233, 69, 96, 0.4);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

.loading {
    text-align: center;
    color: var(--color-text-muted);
    padding: 80px 32px;
    font-size: 1rem;
}

.no-event {
    text-align: center;
    padding: 80px 32px;
}

.no-event h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.no-event p {
    color: var(--color-text-muted);
}

/* Download Section */
.download {
    padding: 60px 0;
    text-align: center;
    background: var(--color-primary);
}

.download h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.download > .container > p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.app-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.app-button:hover {
    transform: translateY(-2px);
}

.app-button.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.app-button img {
    height: 50px;
    width: auto;
}

.app-button .badge {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    padding: 24px 0;
    text-align: center;
    background: var(--color-bg);
}

footer p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 40px 0 24px;
    }

    .logo {
        width: 100px;
        height: 100px;
    }

    .hero h1 {
        font-size: 1.25rem;
    }

    .event-section {
        padding: 16px 0 40px;
    }

    .event-banner,
    .event-banner-placeholder {
        height: 200px;
    }

    .event-details {
        padding: 24px;
    }

    .event-title {
        font-size: 1.4rem;
    }

    .download {
        padding: 48px 0;
    }

    .download h2 {
        font-size: 1.5rem;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }
}
