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

:root {
    --primary-color: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary-color: #666;
    --text-color: #333;
    --bg-color: #fff;
    --border-color: #e5e7eb;
    --hover-color: #fef2f2;
    --accent-color: #dc2626;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    font-size: 10px;
    color: var(--secondary-color);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.user-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--red-50);
    color: var(--primary-color);
}

.auth-link {
    position: relative;
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.hero-badge {
    display: inline-block;
    margin-bottom: 20px;
}

.hero-badge span {
    background: var(--red-50);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-family: 'Inter', sans-serif;
}

.hero-description {
    font-size: 18px;
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background: var(--bg-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Filters Section */
.filters-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.filters-header {
    margin-bottom: 20px;
}

.filters-count {
    font-size: 14px;
    color: var(--secondary-color);
    font-weight: 500;
}

.filters-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tab {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

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

.filter-tab.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.filter-tab:hover:not(.active) {
    background: var(--red-50);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

/* Events Section */
.events-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.section-subtitle {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    background: var(--bg-color);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.event-date-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.event-meta {
    padding: 16px 20px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.event-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--red-50);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-location-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    color: var(--text-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 20px 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

.event-description {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0 20px 20px;
    line-height: 1.6;
}

.event-info {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.event-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.info-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.event-ticket-badge {
    margin: 0 20px 16px;
    padding: 12px 16px;
    background: var(--red-50);
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-icon {
    font-size: 18px;
}

.event-ticket-badge span:not(.ticket-icon) {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-price {
    margin-left: auto;
    font-weight: 600;
    color: var(--text-color);
    text-transform: none;
    letter-spacing: normal;
}

.event-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 0;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.event-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

.page-subtitle {
    font-size: 16px;
    color: var(--secondary-color);
}

/* Loading & No Events */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
    font-size: 16px;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

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

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

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

.footer-section p {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-powered {
    font-size: 12px;
    color: var(--secondary-color);
    font-style: italic;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* Event Detail Page */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.back-arrow {
    font-size: 18px;
}

.event-detail-container {
    padding: 40px 0 80px;
    background: var(--bg-color);
}

.event-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.event-detail-main {
    min-width: 0;
}

.event-detail-header {
    margin-bottom: 40px;
}

.event-detail-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-event-type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-icon-small {
    font-size: 14px;
}

.event-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}

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

.event-detail-meta-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-color);
}

.detail-icon {
    font-size: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Statistics Cards */
.event-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Event Detail Bottom Section */
.event-detail-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.detail-section {
    min-width: 0;
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-section-icon {
    font-size: 20px;
    color: var(--primary-color);
}

.detail-section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.detail-section-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

.sponsors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sponsor-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: var(--text-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.no-sponsors {
    font-size: 14px;
    color: var(--secondary-color);
    font-style: italic;
}

/* Sidebar */
.event-detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar-item {
    margin-bottom: 24px;
}

.sidebar-label {
    font-size: 12px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.sidebar-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.sidebar-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.sidebar-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-label-small {
    font-size: 12px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.sidebar-value-small {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    border: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--red-50);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .event-detail-sidebar {
        position: static;
    }
    
    .event-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-detail-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .nav {
        gap: 15px;
    }

    .filters-tabs {
        gap: 8px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .event-detail-title {
        font-size: 28px;
    }
    
    .event-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .header {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 28px;
    }
    
    .header {
        padding: 12px 0;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
    }
}
