/* ============================================================================
   RUN1EVENTS - MODERN 2025 UI
   Black + Orange Theme - Professional Event Platform
   ============================================================================ */

/* ============================================================================
   IMPORTS - Modern Typography
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern 2025 Color Palette - Logo Colors */
    --primary-orange: #F5A000;
    --primary-black: #111111;
    --bg-light: #F8F8F8;
    --bg-white: #FFFFFF;
    --text-dark: #111111;
    --text-gray: #666666;
    --text-light: #999999;
    --border-light: #E5E5E5;
    --orange-hover: #D98E00;
    --orange-light: #FFF5E6;

    /* Shadows - 2025 Standard */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TYPOGRAPHY SCALE - Modern 2025
   ============================================================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0;
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ============================================================================
   NAVIGATION - Clean Modern Design
   ============================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-orange);
    color: var(--bg-white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.nav-cta:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-cta::after {
    display: none;
}

.nav-logout {
    color: #DC2626 !important;
}

/* ============================================================================
   FLASH MESSAGES
   ============================================================================ */
.flash-container {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 32px;
}

.flash {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.flash-success {
    background: #ECFDF5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.flash-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.flash-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.flash-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    margin-top: 32px;
    margin-bottom: 64px;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section {
    margin: 64px 0;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

/* ============================================================================
   HERO SECTION - Clean Modern Design
   ============================================================================ */
.hero {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    color: var(--bg-white);
    padding: 96px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 160, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(245, 160, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 32px;
    opacity: 0.9;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.hero-cta {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--bg-white);
    padding: 16px 48px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(245, 160, 0, 0.3);
}

.hero-cta:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 160, 0, 0.4);
}

/* ============================================================================
   CARD SYSTEM - Unified Modern Design
   ============================================================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.card-subtitle {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 16px;
}

.card-body {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Featured Card */
.featured-card {
    background: var(--bg-white);
    border: 2px solid var(--primary-orange);
    box-shadow: 0 8px 32px rgba(245, 160, 0, 0.12);
}

/* ============================================================================
   COUNTDOWN TIMER
   ============================================================================ */
.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.countdown-item {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.countdown-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-orange);
}

.countdown-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================================================
   EVENT CARDS GRID
   ============================================================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.event-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.event-image,
.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #F5A000, #D98E00);
}

.card-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #F5A000, #D98E00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.event-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.event-edition {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.event-date {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 8px;
}

.event-price {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 20px;
    margin: 8px 0;
}

.event-description {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 16px;
    flex-grow: 1;
    line-height: 1.6;
}

.event-btn {
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.event-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 160, 0, 0.3);
}

/* ============================================================================
   BUTTONS - Modern System
   ============================================================================ */
.btn-primary,
.form-submit {
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover,
.form-submit:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 160, 0, 0.3);
}

.btn-secondary {
    background: var(--text-dark);
    color: var(--bg-white);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #000000;
    transform: translateY(-2px);
}

/* ============================================================================
   FORMS - Modern Design
   ============================================================================ */
.form-container {
    max-width: 500px;
    margin: 32px auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-subtitle {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(245, 160, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #DC2626;
    font-size: 14px;
    margin-top: 4px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gray);
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--orange-hover);
}

/* ============================================================================
   SPONSOR SECTION
   ============================================================================ */
.sponsor-section {
    margin: 64px 0;
    padding: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.sponsor-header {
    text-align: center;
    margin-bottom: 48px;
}

.sponsor-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.sponsor-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 500;
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.sponsor-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-md);
}

.sponsor-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-card:hover .sponsor-logo {
    transform: scale(1.05);
}

.sponsor-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 16px;
}

.sponsor-banner {
    background: linear-gradient(135deg, var(--primary-orange), var(--orange-hover));
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 32px;
    text-align: center;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(245, 160, 0, 0.3);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 64px 32px 32px;
    margin-top: 96px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: var(--primary-orange);
    font-size: 18px;
}

.footer-section p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--primary-orange);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

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

/* ============================================================================
   MERCHANDISE SECTION
   ============================================================================ */
.merchandise-section {
    margin: 64px 0;
}

.merchandise-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.merchandise-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 48px;
}

.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.merch-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.merch-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.merch-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #F5A000, #D98E00);
}

.merch-content {
    padding: 32px;
}

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

.merch-description {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.merch-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.merch-features li {
    padding: 8px 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.merch-features li:last-child {
    border-bottom: none;
}

.merch-features li:before {
    content: "✓ ";
    color: var(--primary-orange);
    font-weight: bold;
    margin-right: 8px;
}

.merch-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-orange);
    margin: 16px 0;
}

.merch-stock {
    color: #DC2626;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.merch-btn {
    width: 100%;
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 16px;
}

.merch-btn:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 160, 0, 0.3);
}

/* ============================================================================
   RESPONSIVE DESIGN - Mobile Optimization
   ============================================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .nav-container {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero {
        padding: 64px 24px;
    }

    .hero-title {
        font-size: 36px;
    }

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

    .main-content {
        padding: 0 16px;
    }

    .events-grid,
    .merchandise-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .sponsor-section {
        padding: 32px 24px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 36px;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
}