:root {
    --background: hsl(240, 15%, 8%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(240, 15%, 10%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(270, 80%, 65%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(240, 10%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(240, 10%, 20%);
    --muted-foreground: hsl(240, 5%, 65%);
    --accent: hsl(280, 70%, 60%);
    --accent-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 10%, 20%);
    --input: hsl(240, 10%, 15%);
    --ring: hsl(270, 80%, 65%);
    
    --violet-glow: hsl(270, 80%, 55%);
    --gradient-hero: linear-gradient(135deg, hsl(270, 80%, 65%), hsl(280, 70%, 60%));
    --gradient-card: linear-gradient(145deg, hsl(240, 15%, 12%), hsl(240, 15%, 8%));
    --shadow-glow: 0 0 40px hsl(270, 80%, 65%, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    --radius: 1rem;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVBAR - Exact Match
   ============================================ */
/* Navbar styles handled by global.css */

.navbar.scrolled {
    background: hsl(240, 15%, 8%, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.glass {
    background: hsl(240, 15%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid hsl(270, 80%, 65%, 0.1);
}

/* Nav Container handled by global.css */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-hero);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
}

/* Nav Elements handled by global.css */

/* Mobile Menu handled by global.css */

/* ============================================
   BUTTONS - Exact Match
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 15px hsl(270, 80%, 65%, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px hsl(270, 80%, 65%, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--primary);
}

/* ============================================
   HERO SEARCH SECTION
   ============================================ */
.hero-search {
    padding-top: 5rem;
    padding-bottom: 2rem;
    background: linear-gradient(to bottom, hsl(270, 80%, 65%, 0.05), var(--background));
}

@media (min-width: 768px) {
    .hero-search {
        padding-top: 8rem;
        padding-bottom: 3rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.6rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

.text-gradient-violet {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Search Bar */
.search-bar-container {
    max-width: 56rem;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .search-bar {
        flex-direction: row;
    }
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    height: 3rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .search-input {
        padding: 1rem 3rem 1rem 3rem;
        height: 3.5rem;
        font-size: 1.125rem;
    }
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(270, 80%, 65%, 0.2);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.clear-btn:hover {
    color: var(--foreground);
}

.filter-btn,
.search-btn {
    height: 3rem;
    padding: 0 1rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .filter-btn,
    .search-btn {
        height: 3.5rem;
        padding: 0 1.5rem;
        font-size: 0.95rem;
    }
}

.search-btn {
    padding: 0 1.25rem;
}

@media (min-width: 640px) {
    .search-btn {
        padding: 0 2rem;
    }
}

/* Advanced Filters */
.advanced-filters {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background: hsl(240, 15%, 10%, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid hsl(270, 80%, 65%, 0.2);
    border-radius: 1rem;
}

.advanced-filters.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.filter-input-wrapper {
    position: relative;
}

.filter-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: hsl(240, 10%, 15%, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-input::placeholder {
    color: var(--muted-foreground);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    height: 3rem;
    background: hsl(240, 10%, 15%, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-select option {
    background: var(--background);
    color: var(--foreground);
}

/* ============================================
   CATEGORY FILTER
   ============================================ */
.category-section {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.category-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Ensure it stays on one line */
    white-space: nowrap;
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.btn-tag {
    background: var(--secondary);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-tag:hover {
    background: hsla(270, 80%, 65%, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-tag-active {
    background: hsla(270, 80%, 65%, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    height: 2.25rem;
    padding: 0 1rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Keep old category-btn styles for backwards compatibility */
.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted-foreground);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-btn:hover {
    color: var(--foreground);
    border-color: var(--primary);
}

.category-btn.active {
    background: hsl(270, 80%, 65%, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results-section {
    padding: 3rem 0;
}

.results-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .results-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.results-count {
    color: var(--muted-foreground);
}

.results-count span {
    color: var(--foreground);
    font-weight: 600;
}

#searchTermDisplay .search-term {
    color: var(--primary);
}

.sort-select {
    padding: 0.5rem 1rem;
    background: hsl(240, 10%, 15%, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

.sort-select option {
    background: var(--background);
    color: var(--foreground);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Event Card */
.event-card {
    background: var(--gradient-card);
    display:flex;
    height:100%;
    flex-direction:column;
    border: 1px solid hsl(270, 80%, 65%, 0.2);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: hsl(270, 80%, 65%, 0.4);
    box-shadow: var(--shadow-glow);
}

.event-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

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

.event-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-hero);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.live-badge-card {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: hsl(0, 84%, 60%);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Shift Live badge if Featured badge is present */
.event-badge + .live-badge-card {
    top: 2.75rem;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.event-save-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: hsl(240, 15%, 10%, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--muted-foreground);
}

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

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

.event-save-btn.saved svg {
    fill: currentColor;
}

.event-content {
    padding: 1.25rem;
}

.event-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: hsl(270, 80%, 65%, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.event-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.event-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.event-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.event-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.event-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
    color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: hsl(270, 80%, 65%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.empty-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER - Exact Match
   ============================================ */
.footer {
    background: hsl(240, 15%, 6%);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
}
