:root {
    --primary-purple: #3F1D75;
    --primary-hover: #2c1452;
    --brand-blue: #0F5B99;
    --urgency-red: #CE225F;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #121212;
    --surface-dark: #1E1E1E;
    --border-radius-pill: 50px;
    --border-radius-card: 8px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

/* Header */
header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

body.dark-mode header {
    background-color: var(--surface-dark);
    border-bottom: 1px solid #333;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--brand-blue);
    text-decoration: none;
}

body.dark-mode .logo {
    color: #fff;
}

/* Hero Section */
.hero {
    background-color: var(--primary-purple);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(135deg, #3F1D75 0%, #0F5B99 100%);
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.hero-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-search input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    border-radius: var(--border-radius-pill);
    border: none;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Category Icons */
.categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: var(--border-radius-pill);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.cat-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Event Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    transition: transform 0.2s;
}

body.dark-mode .card {
    background: var(--surface-dark);
    border-color: #333;
}

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

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px;
    color: var(--primary-purple);
}

body.dark-mode .card-title {
    color: #fff;
}

.card-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-price {
    display: block;
    background-color: var(--primary-purple);
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: var(--border-radius-card);
    text-decoration: none;
    font-weight: bold;
}

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

/* Toggle Switch */
.theme-switch {
    background: none;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
}