/* ================================================================
   LOVABLE DESIGN SYSTEM - UNIFIED CSS FILE
   ================================================================
   
   This is the SINGLE, CONSOLIDATED design system file for the entire app.
   
   Design Philosophy (inspired by Lovable.dev):
   - Soft pastel colors
   - Rounded, friendly shapes
   - Playful shadows and animations
   - Fredoka font family for warmth
   
   IMPORTANT: This file contains ALL custom styles in the following order:
   1. Design Tokens (CSS Custom Properties)
   2. Base Styles & Typography
   3. Utility Classes
   4. Component Styles (Lovable custom components)
   5. Tabler Framework Integration & Overrides
   6. Page-Specific Styles (home, events, details, cities)
   
   Load Order: Tabler CSS → Lovable Design CSS (this file)
   This ensures our custom styles properly override Tabler defaults.
   
   NO inline <style> blocks should exist in templates!
   All styles belong here for consistency and maintainability.
   
   ================================================================ */

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
  /* ===== COLORS (HSL Format) ===== */
  
  /* Background & Foreground */
  --background: 45 40% 97%;           /* Soft pastel cream */
  --foreground: 280 30% 25%;          /* Dark purple-gray for text */
  
  /* Card Colors */
  --card: 0 0% 100%;                  /* Pure white cards */
  --card-foreground: 280 30% 25%;
  
  /* Primary - Soft Lavender */
  --primary: 260 60% 75%;
  --primary-foreground: 280 40% 20%;
  --primary-hover: 260 60% 70%;
  
  /* Secondary - Soft Pink */
  --secondary: 340 70% 85%;
  --secondary-foreground: 340 40% 30%;
  --secondary-hover: 340 70% 80%;
  
  /* Muted - Soft Mint */
  --muted: 150 40% 92%;
  --muted-foreground: 280 20% 45%;
  
  /* Accent - Soft Peach */
  --accent: 25 80% 85%;
  --accent-foreground: 25 40% 30%;
  --accent-hover: 25 80% 80%;
  
  /* Destructive - Soft Coral */
  --destructive: 0 70% 75%;
  --destructive-foreground: 0 40% 20%;
  
  /* Borders & Input */
  --border: 260 30% 88%;              /* Very light lavender */
  --input: 260 30% 88%;
  --ring: 260 60% 70%;
  
  /* Custom Pastel Colors */
  --sky: 200 70% 85%;                 /* Soft sky blue */
  --yellow: 50 85% 80%;               /* Soft yellow */
  --green: 150 50% 75%;               /* Soft green */
  
  /* ===== TYPOGRAPHY ===== */
  --font-fredoka: 'Fredoka', sans-serif;
  
  /* ===== BORDER RADIUS ===== */
  --radius: 1rem;                     /* Rounded, friendly radius */
  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;
  
  /* ===== SHADOWS ===== */
  --shadow-playful: 8px 8px 0px hsl(var(--primary) / 0.3);
  --shadow-soft: 0 10px 30px -5px hsl(var(--primary) / 0.2);
  --shadow-float: 0 15px 35px -10px hsl(var(--primary) / 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* ===== GRADIENTS ===== */
  --gradient-hero: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1), hsl(var(--accent) / 0.1));
  --gradient-card: linear-gradient(120deg, hsl(var(--card)) 0%, hsl(var(--primary) / 0.05) 100%);
  --gradient-button: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  
  /* ===== SPACING ===== */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

/* ===== DARK MODE ===== */
.dark {
  --background: 280 30% 15%;
  --foreground: 45 40% 95%;
  
  --card: 280 25% 18%;
  --card-foreground: 45 40% 95%;
  
  --primary: 260 60% 65%;
  --primary-foreground: 280 40% 95%;
  
  --secondary: 340 60% 70%;
  --secondary-foreground: 340 40% 95%;
  
  --muted: 280 20% 25%;
  --muted-foreground: 280 15% 65%;
  
  --accent: 25 70% 70%;
  --accent-foreground: 25 40% 95%;
  
  --destructive: 0 60% 65%;
  --destructive-foreground: 0 40% 95%;
  
  --border: 280 25% 25%;
  --input: 280 25% 25%;
  --ring: 260 60% 60%;
  
  --sky: 200 60% 70%;
  --yellow: 50 75% 70%;
  --green: 150 45% 65%;
  
  --shadow-playful: 8px 8px 0px hsl(var(--primary) / 0.4);
  --shadow-soft: 0 10px 30px -5px hsl(var(--primary) / 0.3);
  --shadow-float: 0 15px 35px -10px hsl(var(--primary) / 0.3);
}

/* ===== BASE STYLES ===== */
* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-fredoka);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-fredoka);
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* ===== UTILITY CLASSES ===== */

/* Background Utilities */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-sky { background-color: hsl(var(--sky)); }
.bg-yellow { background-color: hsl(var(--yellow)); }
.bg-green { background-color: hsl(var(--green)); }

/* Text Color Utilities */
.text-foreground { color: hsl(var(--foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-accent { color: hsl(var(--accent)); }

/* Border Utilities */
.border-primary { border-color: hsl(var(--primary)) !important; }
.border-secondary { border-color: hsl(var(--secondary)) !important; }
.border-accent { border-color: hsl(var(--accent)) !important; }
.border-sky { border-color: hsl(var(--sky)) !important; }
.border-green { border-color: hsl(var(--green)) !important; }
.border-yellow { border-color: hsl(var(--yellow)) !important; }

/* Gradient Utilities */
.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-card {
  background: var(--gradient-card);
}

.gradient-button {
  background: var(--gradient-button);
}

/* Shadow Utilities */
.shadow-playful {
  box-shadow: var(--shadow-playful);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-float {
  box-shadow: var(--shadow-float);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Border Radius Utilities */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-full { border-radius: 9999px; }

/* ===== COMPONENT STYLES ===== */

/* Cards */
.lovable-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
}

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

.lovable-card.gradient {
  background: var(--gradient-card);
}

/* Event Cards with Playful Rotation */
.event-card {
  background: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-card .card-body {
  padding: 0.5rem !important;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Match heights of search card and results container */
.card.position-sticky {
  height: fit-content;
}

#event-results-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#event-results-container .card-body {
  padding: 0.7rem !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#event-results-cards {
  flex: 0 1 auto;
}

#pagination-container {
  margin-top: auto !important;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

#pagination-info {
  font-size: 0.875rem;
}

/* Fixed height for result card columns to prevent height changes on pagination */
#event-results-cards .col-md-6 {
  margin-bottom: 0.25rem;
}

#event-results-cards .col-md-6 .event-card {
  height: 280px;
}

#event-results-cards .col-md-6 .event-card .card-body {
  overflow: hidden;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-playful);
}

.event-card.rotate-1 { transform: rotate(1deg); }
.event-card.rotate-2 { transform: rotate(2deg); }
.event-card.rotate--1 { transform: rotate(-1deg); }
.event-card.rotate--2 { transform: rotate(-2deg); }

.event-card:hover.rotate-1,
.event-card:hover.rotate-2,
.event-card:hover.rotate--1,
.event-card:hover.rotate--2 {
  transform: translateY(-8px) rotate(0deg);
}

/* Add color-specific hover effects */
.event-card.border-primary:hover { 
  border-color: hsl(var(--primary));
  box-shadow: 8px 8px 0px hsl(var(--primary) / 0.3);
}

.event-card.border-secondary:hover { 
  border-color: hsl(var(--secondary));
  box-shadow: 8px 8px 0px hsl(var(--secondary) / 0.3);
}

.event-card.border-accent:hover { 
  border-color: hsl(var(--accent));
  box-shadow: 8px 8px 0px hsl(var(--accent) / 0.3);
}

.event-card.border-sky:hover { 
  border-color: hsl(var(--sky));
  box-shadow: 8px 8px 0px hsl(var(--sky) / 0.3);
}

.event-card.border-green:hover { 
  border-color: hsl(var(--green));
  box-shadow: 8px 8px 0px hsl(var(--green) / 0.3);
}

/* Buttons */
.lovable-btn {
  font-family: var(--font-fredoka);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lovable-btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.lovable-btn-primary:hover {
  background: hsl(var(--primary-hover));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lovable-btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--secondary));
}

.lovable-btn-secondary:hover {
  background: hsl(var(--secondary-hover));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lovable-btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.lovable-btn-outline:hover {
  background: hsl(var(--muted));
  transform: translateY(-2px);
}

.lovable-btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Category Buttons */
.category-btn {
  padding: 1.5rem;
  border: 2px solid;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.category-btn:hover {
  transform: scale(1.05);
}

.category-btn.cat-primary {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.category-btn.cat-secondary {
  background: hsl(var(--secondary) / 0.1);
  border-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.category-btn.cat-accent {
  background: hsl(var(--accent) / 0.1);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.category-btn.cat-green {
  background: hsl(var(--green) / 0.1);
  border-color: hsl(var(--green));
  color: hsl(150 45% 30%);
}

.category-btn.cat-yellow {
  background: hsl(var(--yellow) / 0.1);
  border-color: hsl(var(--yellow));
  color: hsl(50 75% 30%);
}

.category-btn.cat-sky {
  background: hsl(var(--sky) / 0.1);
  border-color: hsl(var(--sky));
  color: hsl(200 60% 30%);
}

/* Badges */
.lovable-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
}

.lovable-badge-primary {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.lovable-badge-secondary {
  background: hsl(var(--secondary) / 0.2);
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--secondary));
}

/* Feature Cards */
.feature-card {
  background: hsl(var(--card));
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px solid hsl(var(--border));
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.feature-icon.icon-primary {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
}

.feature-icon.icon-secondary {
  background: hsl(var(--secondary) / 0.2);
  color: hsl(var(--secondary));
}

.feature-icon.icon-accent {
  background: hsl(var(--accent) / 0.2);
  color: hsl(var(--accent));
}

/* Input Fields */
.lovable-input {
  font-family: var(--font-fredoka);
  padding: 0.75rem 1rem;
  border: 2px solid hsl(var(--input));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: all 0.3s ease;
}

.lovable-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

/* ===== ANIMATIONS ===== */

/* Floating Animation */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Slow Bounce */
@keyframes bounce-slow {
  0%, 100% { 
    transform: translateY(-5%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% { 
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

/* Fade In */
@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

/* ===== HERO SECTION ===== */
.lovable-hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: var(--gradient-hero);
}

.lovable-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.lovable-hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.lovable-hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

/* Wave Divider */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100%);
  height: 60px;
}

/* Default wave color */
.wave-divider .wave-fill {
  fill: hsl(var(--muted) / 0.3);
}

/* Wave color variants */
.wave-divider-primary .wave-fill {
  fill: hsl(var(--primary) / 0.25);
}

.wave-divider-secondary .wave-fill {
  fill: hsl(var(--secondary) / 0.35);
}

.wave-divider-accent .wave-fill {
  fill: hsl(var(--accent) / 0.25);
}

.wave-divider-sky .wave-fill {
  fill: hsl(var(--sky) / 0.3);
}

.wave-divider-green .wave-fill {
  fill: hsl(var(--green) / 0.3);
}

.wave-divider-yellow .wave-fill {
  fill: hsl(var(--yellow) / 0.35);
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .lovable-hero {
    padding: 3rem 0;
  }
  
  .feature-card {
    padding: var(--spacing-lg);
  }
  
  .event-card.rotate-1,
  .event-card.rotate-2,
  .event-card.rotate--1,
  .event-card.rotate--2 {
    transform: rotate(0deg);
  }
}

/* ===== INFO BOXES ===== */
.info-box {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius);
  border-left: 4px solid;
  margin-bottom: var(--spacing-lg);
}

.info-box-primary {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
}

.info-box-warning {
  background: hsl(var(--yellow) / 0.2);
  border-color: hsl(var(--yellow));
  color: hsl(50 75% 25%);
}

.info-box-success {
  background: hsl(var(--green) / 0.1);
  border-color: hsl(var(--green));
}

/* ===== METADATA TAGS ===== */
.metadata-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: hsl(var(--muted) / 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.metadata-tag svg,
.metadata-tag i {
  width: 1rem;
  height: 1rem;
}

.metadata-tag.tag-primary { 
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary-foreground));
}

.metadata-tag.tag-secondary { 
  background: hsl(var(--secondary) / 0.1);
  color: hsl(var(--secondary-foreground));
}

.metadata-tag.tag-accent { 
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent-foreground));
}

/* ================================================================
   TABLER FRAMEWORK INTEGRATION & OVERRIDES
   ================================================================
   
   These styles integrate Lovable Design with Tabler CSS Framework.
   They override Tabler's default styles to match our design system.
   
   ================================================================ */

/* ===== TABLER VARIABLE OVERRIDES ===== */
:root {
  /* Override Tabler variables with Lovable colors */
  --tblr-primary: hsl(260, 60%, 75%);
  --tblr-primary-rgb: 194, 163, 230;
  --tblr-secondary: hsl(340, 70%, 85%);
  --tblr-success: hsl(150, 50%, 75%);
  --tblr-warning: hsl(50, 85%, 80%);
  --tblr-danger: hsl(0, 70%, 75%);
  --tblr-body-bg: hsl(45, 40%, 97%);
  --tblr-body-color: hsl(280, 30%, 25%);
  --tblr-border-color: hsl(260, 30%, 88%);
  --tblr-card-bg: hsl(0, 0%, 100%);
  --tblr-font-sans-serif: 'Fredoka', sans-serif;
}

/* ===== GLOBAL TABLER OVERRIDES ===== */
html {
  font-size: 16px !important;
}

body {
  font-family: var(--font-fredoka) !important;
}

.page-wrapper {
  background-color: hsl(var(--background));
}

/* Remove space between navbar and content */
.page-body {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove only top/bottom padding from page-body container, keep left/right for proper alignment */
.page-body > .container-xl {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header.navbar {
  margin-bottom: 0 !important;
}

/* ===== TYPOGRAPHY OVERRIDES ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.card-title,
.navbar-brand {
  font-family: var(--font-fredoka) !important;
  font-weight: 600 !important;
}

/* ===== NAVBAR OVERRIDES ===== */
.navbar {
  background: hsl(var(--primary)) !important;
  box-shadow: var(--shadow-sm);
  height: 64px;
  border: none !important;
  position: relative;
  z-index: 1030;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar .container-xl {
  max-width: 1320px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
}

.navbar-collapse {
  z-index: 1031;
  background: hsl(var(--primary));
  position: relative;
}

.navbar-brand {
  color: #FFFFFF !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: var(--font-fredoka) !important;
  font-weight: 500 !important;
  font-size: 1.125rem !important;
  transition: all 0.3s ease;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ===== CARD OVERRIDES ===== */
.card {
  border-radius: var(--radius) !important;
  border: 2px solid hsl(var(--border)) !important;
  box-shadow: var(--shadow-sm) !important;
  background-color: hsl(var(--card)) !important;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md) !important;
}

.card-header {
  background-color: hsl(var(--muted) / 0.3) !important;
  border-bottom: 2px solid hsl(var(--border)) !important;
  padding: 1.5rem !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
}

.card-body {
  padding: 1rem !important;
}

.card-title {
  color: hsl(var(--foreground)) !important;
  font-weight: 600 !important;
}

/* ===== BUTTON OVERRIDES ===== */
.btn {
  font-family: var(--font-fredoka) !important;
  border-radius: var(--radius) !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: hsl(var(--primary)) !important;
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

.btn-primary:hover {
  background: hsl(var(--primary-hover)) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.btn-secondary {
  background: hsl(var(--secondary)) !important;
  border-color: hsl(var(--secondary)) !important;
  color: hsl(var(--secondary-foreground)) !important;
}

.btn-secondary:hover {
  background: hsl(var(--secondary-hover)) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary)) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

.btn-lg {
  padding: 1rem 2rem !important;
  font-size: 1.125rem !important;
}

/* ===== FORM OVERRIDES ===== */
.form-control,
.form-select {
  font-family: var(--font-fredoka) !important;
  border-radius: var(--radius) !important;
  border: 2px solid hsl(var(--input)) !important;
  padding: 0.4rem 0.75rem !important;
  background-color: hsl(var(--background)) !important;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: hsl(var(--ring)) !important;
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2) !important;
  outline: none !important;
}

.form-label {
  font-weight: 500 !important;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.input-group-text {
  background-color: hsl(var(--muted)) !important;
  border: 2px solid hsl(var(--border)) !important;
  color: hsl(var(--foreground));
}

/* ===== BADGE OVERRIDES ===== */
.badge {
  border-radius: 9999px !important;
  padding: 0.25rem 0.75rem !important;
  font-weight: 500 !important;
  font-size: 0.875rem;
  border: 1px solid;
}

.bg-blue,
.badge.bg-blue {
  background-color: hsl(var(--primary) / 0.2) !important;
  color: hsl(var(--primary-foreground)) !important;
  border-color: hsl(var(--primary)) !important;
}

.bg-green,
.badge.bg-green {
  background-color: hsl(var(--green) / 0.2) !important;
  color: hsl(150, 45%, 30%) !important;
  border-color: hsl(var(--green)) !important;
}

.bg-yellow,
.badge.bg-yellow {
  background-color: hsl(var(--yellow) / 0.2) !important;
  color: hsl(50, 75%, 30%) !important;
  border-color: hsl(var(--yellow)) !important;
}

/* ===== ALERT OVERRIDES ===== */
.alert {
  border-radius: var(--radius) !important;
  border-left: 4px solid;
  padding: 1rem 1.5rem !important;
  font-weight: 500;
}

.alert-info {
  background-color: hsl(var(--primary) / 0.1) !important;
  border-color: hsl(var(--primary)) !important;
  color: hsl(var(--foreground)) !important;
}

.alert-warning {
  background-color: hsl(var(--yellow) / 0.2) !important;
  border-color: hsl(var(--yellow)) !important;
  color: hsl(50, 75%, 25%) !important;
}

.alert-success {
  background-color: hsl(var(--green) / 0.1) !important;
  border-color: hsl(var(--green)) !important;
  color: hsl(var(--foreground)) !important;
}

/* ===== DROPDOWN OVERRIDES ===== */
.dropdown-menu,
#location-autocomplete {
  border: 2px solid hsl(var(--border)) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
}

.dropdown-item {
  border-radius: var(--radius-sm) !important;
  padding: 0.75rem !important;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:focus {
  background-color: hsl(var(--primary)) !important;
  color: #FFFFFF !important;
}

/* ===== FOOTER OVERRIDES ===== */
.footer {
  background-color: hsl(var(--muted) / 0.3);
  border-top: 2px solid hsl(var(--border));
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer .link-secondary {
  color: hsl(var(--primary)) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer .link-secondary:hover {
  color: hsl(var(--secondary)) !important;
}

/* ===== EVENT CARDS SPECIAL STYLING ===== */
#event-results-cards .card {
  background: var(--gradient-card);
  transition: all 0.3s ease;
}

#event-results-cards .card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-playful) !important;
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
  .navbar-brand { 
    font-size: 1.25rem !important; 
  }
  
  .card-body { 
    padding: 1rem !important; 
  }
  
  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 1rem 0;
  }
}

/* ================================================================
   PAGE-SPECIFIC STYLES
   ================================================================
   
   These styles are specific to certain pages and templates.
   Organized by page/template for easy maintenance.
   
   ================================================================ */

/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero-section {
  /* Background color should be set inline on the element for flexibility */
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  margin-bottom: 0;
  padding: 0.5rem 0 1rem;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.hero-section .container-xl {
  max-width: 1320px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
}

.hero-content {
  padding: 2rem 1.5rem;
  color: hsl(var(--foreground));
  text-align: center;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 0.875rem;
  color: hsl(var(--muted-foreground));
  opacity: 0.95;
}

.hero-subtitle:last-of-type {
  margin-bottom: 1.5rem;
}

.hero-search-box {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  background: hsl(var(--card));
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-search-box .form-label {
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.hero-search-box .form-control,
.hero-search-box .form-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}

.hero-search-box .btn {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
}

.search-input-group {
  margin-bottom: 0.875rem;
}

/* Section Backgrounds */
.section-bg-white {
  background: hsl(var(--background));
  position: relative;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.section-bg-white .container-xl {
  max-width: 1320px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
}

.section-bg-muted {
  background: hsl(var(--muted) / 0.3);
  position: relative;
  padding: 3rem 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.section-bg-muted .container-xl {
  max-width: 1320px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
}

.section-bg-primary {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--secondary) / 0.1) 100%);
  position: relative;
  padding: 3rem 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.section-bg-primary .container-xl {
  max-width: 1320px !important;
  padding: 0 1rem !important;
  margin: 0 auto !important;
}

.section-bg-accent {
  background: linear-gradient(120deg, hsl(var(--accent) / 0.15) 0%, hsl(var(--yellow) / 0.15) 100%);
  position: relative;
  padding: 3rem 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.section-bg-accent .container-xl {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Trust Cards */
.trust-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)), hsl(var(--accent)));
}

.trust-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* Problem & Solution Boxes */
.problem-box {
  background: hsl(var(--yellow) / 0.9);
  border: none;
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 20px 20px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.problem-box h3 {
  color: hsl(50, 75%, 30%);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.problem-box p {
  color: hsl(var(--foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
}

.problem-box p:last-child {
  margin-bottom: 0;
}

.solution-box {
  background: hsl(var(--primary) / 0.9);
  border: none;
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 20px 20px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.solution-box h3 {
  color: hsl(269, 78%, 37%);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.solution-box p {
  color: hsl(var(--foreground));
  line-height: 1.7;
  margin-bottom: 1rem;
}

.solution-box p:last-child {
  margin-bottom: 0;
}

.solution-box strong {
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Audience Section */
.audience-section {
  padding: 3rem 0;
  margin-bottom: 0;
  position: relative;
}

.audience-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: hsl(var(--foreground));
}

.audience-card {
  height: 100%;
  border-top: 4px solid hsl(var(--primary));
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.audience-card:nth-child(1) {
  border-top-color: hsl(var(--primary));
}

.audience-card:nth-child(2) {
  border-top-color: hsl(var(--secondary));
}

.audience-card:nth-child(3) {
  border-top-color: hsl(var(--accent));
}

.audience-card:nth-child(4) {
  border-top-color: hsl(var(--green));
}

.audience-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.audience-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

/* How It Works Section */
.how-it-works-section {
  padding: 3rem 2rem;
  position: relative;
}

.how-it-works-section h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: hsl(var(--foreground));
}

.step-card {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: hsl(var(--card));
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 2px solid hsl(var(--border));
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  width: 75px;
  height: 75px;
  border: 3px dashed hsl(var(--primary) / 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--foreground));
}

.step-card p {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 0;
}

.story-section {
  background: var(--gradient-card);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-top: 3rem;
}

/* Floating decorations (disabled for mobile) */
.floating-decoration {
  display: none !important;
}

/* ===== EVENTS PAGE STYLES ===== */

/* Location Autocomplete */
#location-autocomplete {
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  background: var(--tblr-bg-surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#location-autocomplete .dropdown-item {
  border: none;
  padding: 0.5rem 0.75rem;
  background: transparent;
  transition: all 0.15s ease;
}

#location-autocomplete .dropdown-item:hover,
#location-autocomplete .dropdown-item.active {
  background-color: var(--tblr-bg-surface-secondary);
  color: var(--tblr-body-color);
}

#location-autocomplete .dropdown-item:focus {
  outline: none;
  background-color: var(--tblr-primary);
  color: white;
}

.input-group.position-relative {
  position: relative;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1040 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal {
  z-index: 1050 !important;
}

/* ===== EVENT DETAILS PAGE STYLES ===== */

.badge.fs-6 {
  font-size: 0.9rem !important;
  padding: 0.5rem 0.75rem;
}

.btn .ti {
  font-size: 1rem;
}

.text-muted a {
  color: inherit;
}

.text-muted a:hover {
  color: #007bff !important;
}

/* ===== CITIES LIST PAGE STYLES ===== */

.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important;
  transform: translateY(-2px);
}

/* ===== HOME PAGE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 6rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle:last-of-type {
    margin-bottom: 1.5rem;
  }
  
  .hero-search-box {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-search-box .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }
  
  .problem-box,
  .solution-box {
    padding: 1.25rem 1.5rem;
  }
  
  .problem-box h3 {
    font-size: 1.25rem;
  }
  
  .audience-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
  }
  
  .audience-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .audience-card {
    margin-bottom: 1rem;
  }
  
  .how-it-works-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .how-it-works-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .step-card {
    padding: 1.5rem 0.5rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== FLOATING DECORATIONS ===== */
.floating-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
  z-index: 10;
  background-position: center;
}

.floating-decoration.decoration-1 {
  top: 5%;
  left: 3%;
  width: 150px;
  height: 150px;
  animation: float 8s ease-in-out infinite;
}

.floating-decoration.decoration-2 {
  top: 30%;
  right: 5%;
  width: 180px;
  height: 180px;
  animation: float 10s ease-in-out infinite 2s;
}

.floating-decoration.decoration-3 {
  bottom: 10%;
  left: 8%;
  width: 130px;
  height: 130px;
  animation: float 9s ease-in-out infinite 1s;
}

.floating-decoration.decoration-4 {
  top: 50%;
  right: 10%;
  width: 140px;
  height: 140px;
  animation: float 11s ease-in-out infinite 3s;
}

.floating-decoration.decoration-5 {
  top: 70%;
  left: 15%;
  width: 160px;
  height: 160px;
  animation: float 7s ease-in-out infinite 1.5s;
}

.floating-decoration.decoration-6 {
  top: 20%;
  right: 20%;
  width: 120px;
  height: 120px;
  animation: float 9.5s ease-in-out infinite 2.5s;
}

/* ===== DECORATIVE IMAGES SYSTEM ===== */

/* Container for sections with decorative images */
.decorated-section {
  position: relative;
  overflow: hidden; /* or visible if you want images to overflow */
}

/* Wrapper that holds all decorative images */
.decorative-images-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Images don't interfere with clicks */
  z-index: 0;
}

/* Individual decorative image */
.decorative-image {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  will-change: transform; /* Performance optimization for animations */
}

/* Animation: Floating */
@keyframes decorative-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
  }
}

.decorative-float {
  animation: decorative-float 6s ease-in-out infinite;
}

/* Animation: Pulse */
@keyframes decorative-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.decorative-pulse {
  animation: decorative-pulse 3s ease-in-out infinite;
}

/* Animation: Slow Spin */
@keyframes decorative-spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.decorative-spin-slow {
  animation: decorative-spin-slow 20s linear infinite;
}

/* Animation: Wiggle */
@keyframes decorative-wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.decorative-wiggle {
  animation: decorative-wiggle 4s ease-in-out infinite;
}

/* Animation: Bounce */
@keyframes decorative-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

.decorative-bounce {
  animation: decorative-bounce 2s ease-in-out infinite;
}

/* Ensure sections with decorations have proper positioning */
.hero-section,
.audience-section,
.how-it-works-section {
  position: relative;
  overflow: visible !important;
}

/* Content should be above decorations when needed */
.hero-content,
.container-xl {
  position: relative;
  z-index: 20;
}

/* Responsive: Hide decorative images on mobile if needed */
@media (max-width: 768px) {
  .decorative-image-responsive {
    width: 50% !important; /* Smaller on mobile */
    height: auto !important;
  }
  
  .floating-decoration {
    display: none;
  }
}

/* ===== FULL-WIDTH SECTION LAYOUT WITH SIDE MARGINS ===== */

/* 
  This layout allows sections to span the full viewport width
  while keeping content centered in a container-xl.
  The side margins inherit the section's background color and can contain decorative images.
*/

/* Full-width section wrapper */
.full-width-section {
  position: relative;
  width: 100%;
  overflow: visible;
  /* Background color is set inline per section */
}

/* Inner content container - centered with max-width */
.full-width-section .container-xl {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 10; /* Content above decorative elements */
}

/* Side margin decorative containers */
.side-margins {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5; /* Below content, above section background */
}

.side-margin-left {
  left: 0;
  right: calc(50% + 660px); /* container-xl max-width / 2 */
}

.side-margin-right {
  right: 0;
  left: calc(50% + 660px); /* container-xl max-width / 2 */
}

/* Decorative images in side margins */
.margin-decoration {
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Responsive: Hide side margin decorations on smaller screens */
@media (max-width: 1400px) {
  .side-margins {
    display: none;
  }
}

/* Adjust section padding for better spacing */
section.full-width-section {
  padding: 3rem 0;
}

/* Ensure page-body compatibility */
.page-body {
  padding: 0 !important;
}
