/* ===========================================
   LOVABLE MAIN CSS - SELF-CONTAINED STYLES
   Version: 2.0
   Supports both prefixed and non-prefixed classes
   =========================================== */

/* ===========================================
   1. CSS VARIABLES & BASE STYLES
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===========================================
   LEGACY CSS ISOLATION
   All Lovable pages must be wrapped in
   <div id="lovable-root"> to prevent any
   legacy CSS (style.css, responsive.css,
   Bootstrap CSS) from interfering.
   =========================================== */
#lovable-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--lp-text) !important;
  background-color: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#lovable-root *,
#lovable-root *::before,
#lovable-root *::after {
  box-sizing: border-box;
}

#lovable-root h1, #lovable-root h2,
#lovable-root h3, #lovable-root h4,
#lovable-root h5, #lovable-root h6 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lp-navy);
  margin: 0 0 var(--lp-space-sm);
}

#lovable-root h1 {
  font-size: clamp(2rem, 5vw, 3.75rem) !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}

#lovable-root h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  letter-spacing: -0.01em;
}

#lovable-root h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
}

#lovable-root h4 {
  font-size: 1.125rem !important;
  font-weight: 600;
}

#lovable-root a {
  color: var(--lp-teal);
  text-decoration: none;
  transition: color var(--lp-transition);
}

#lovable-root a:hover {
  color: var(--lp-teal-light);
}

#lovable-root p {
  margin: 0 0 var(--lp-space-sm);
  color: var(--lp-text);
  font-family: 'Inter', sans-serif !important;
}

:root {
  /* Color Palette */
  --lp-navy: #2d1b69;
  --lp-navy-dark: #1f1248;
  --lp-teal: #15a5b5;
  --lp-teal-light: #1dbdce;
  --lp-red: #ec1313;
  --lp-orange: #f4a261;
  --lp-yellow: #e9c46a;
  
  /* Backgrounds */
  --lp-bg: #ffffff;
  --lp-bg-muted: #f8fafc;
  --lp-bg-alt: #f1f5f9;
  --lp-bg-dark: #0f172a;
  
  /* Text */
  --lp-text: #1e293b;
  --lp-text-muted: #64748b;
  --lp-text-light: #94a3b8;
  --lp-text-white: #ffffff;
  
  /* Borders */
  --lp-border: #e2e8f0;
  --lp-border-light: #f1f5f9;
  
  /* Shadows */
  --lp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --lp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --lp-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --lp-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --lp-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Spacing */
  --lp-space-xs: 0.5rem;
  --lp-space-sm: 1rem;
  --lp-space-md: 1.5rem;
  --lp-space-lg: 2rem;
  --lp-space-xl: 3rem;
  --lp-space-2xl: 4rem;
  --lp-space-3xl: 6rem;
  
  /* Border Radius */
  --lp-radius-sm: 0.375rem;
  --lp-radius: 0.5rem;
  --lp-radius-md: 0.75rem;
  --lp-radius-lg: 1rem;
  --lp-radius-xl: 1.5rem;
  --lp-radius-full: 9999px;
  
  /* Transitions */
  --lp-transition: 0.2s ease-in-out;
  --lp-transition-slow: 0.3s ease-in-out;
}

/* ===========================================
   2. CONTAINER CLASSES
   Used by: nerfparty-lovable.php and all activity pages
   =========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--lp-space-md);
}

.container.narrow {
  max-width: 800px;
}

.container.wide {
  max-width: 1400px;
}

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lp-text);
  background-color: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--lp-navy);
  margin: 0 0 var(--lp-space-sm);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 var(--lp-space-sm);
  color: var(--lp-text);
}

a {
  color: var(--lp-teal);
  text-decoration: none;
  transition: color var(--lp-transition);
}

a:hover {
  color: var(--lp-teal-light);
}

/* ===========================================
   4. BUTTONS
   Used by: .btn, .btn-primary, .btn-ghost
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  border-radius: var(--lp-radius);
  cursor: pointer;
  transition: all var(--lp-transition);
  white-space: nowrap;
}

.btn:focus {
  outline: 2px solid var(--lp-teal);
  outline-offset: 2px;
}

.btn-primary,
.btn.btn-primary {
  background-color: var(--lp-red);
  color: var(--lp-text-white);
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: #d32f3d;
  color: var(--lp-text-white);
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-md);
}

.btn-secondary,
.btn.btn-secondary {
  background-color: var(--lp-navy);
  color: var(--lp-text-white);
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
  background-color: var(--lp-navy-dark);
  color: var(--lp-text-white);
  transform: translateY(-2px);
  box-shadow: var(--lp-shadow-md);
}

.btn-ghost,
.btn.btn-ghost {
  background-color: transparent;
  color: var(--lp-navy);
  border: 2px solid var(--lp-border);
}

.btn-ghost:hover,
.btn.btn-ghost:hover {
  background-color: var(--lp-bg-muted);
  border-color: var(--lp-navy);
  color: var(--lp-navy);
}

.btn-outline,
.btn.btn-outline {
  background-color: transparent;
  color: var(--lp-teal);
  border: 2px solid var(--lp-teal);
}

.btn-outline:hover,
.btn.btn-outline:hover {
  background-color: var(--lp-teal);
  color: var(--lp-text-white);
}

.btn-lg,
.btn.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm,
.btn.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ===========================================
   5. BADGES
   Used by: .badge, .badge.price, .badge.age, etc.
   =========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--lp-radius-full);
  background-color: var(--lp-bg-muted);
  color: var(--lp-text);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge.price {
  background-color: var(--lp-teal);
  color: var(--lp-text-white);
  font-size: 0.9375rem;
  font-weight: 700;
}

.badge.age {
  background-color: var(--lp-orange);
  color: var(--lp-text-white);
}

.badge.duration {
  background-color: var(--lp-navy);
  color: var(--lp-text-white);
}

.badge.location {
  background-color: var(--lp-bg-alt);
  color: var(--lp-text);
}

.badge.staff {
  background-color: #22c55e;
  color: var(--lp-text-white);
}

.badge.participants {
  background-color: var(--lp-bg-muted);
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
}

/* ===========================================
   6. SECTION STYLES
   =========================================== */
section {
  padding: var(--lp-space-lg) 0;
}

.section-muted {
  background-color: var(--lp-bg-muted);
}

.section-alt {
  background-color: var(--lp-bg-alt);
}

.section-dark {
  background-color: var(--lp-bg-dark);
  color: var(--lp-text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--lp-text-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* ===========================================
   7. GRID UTILITIES
   =========================================== */
.grid {
  display: grid;
  gap: var(--lp-space-md);
}

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

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

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

@media (max-width: 992px) {
  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===========================================
   8. FLEX UTILITIES
   =========================================== */
.flex {
  display: flex;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.flex-col {
  flex-direction: column;
}

.gap-sm { gap: var(--lp-space-sm); }
.gap-md { gap: var(--lp-space-md); }
.gap-lg { gap: var(--lp-space-lg); }

/* ===========================================
   9. SPACING UTILITIES
   =========================================== */
.mt-sm { margin-top: var(--lp-space-sm); }
.mt-md { margin-top: var(--lp-space-md); }
.mt-lg { margin-top: var(--lp-space-lg); }
.mt-xl { margin-top: var(--lp-space-xl); }

.mb-sm { margin-bottom: var(--lp-space-sm); }
.mb-md { margin-bottom: var(--lp-space-md); }
.mb-lg { margin-bottom: var(--lp-space-lg); }
.mb-xl { margin-bottom: var(--lp-space-xl); }

.py-sm { padding-top: var(--lp-space-sm); padding-bottom: var(--lp-space-sm); }
.py-md { padding-top: var(--lp-space-md); padding-bottom: var(--lp-space-md); }
.py-lg { padding-top: var(--lp-space-lg); padding-bottom: var(--lp-space-lg); }

/* ===========================================
   10. TEXT UTILITIES
   =========================================== */
.text-muted {
  color: var(--lp-text-muted);
}

.text-center {
  text-align: center;
}

.accent {
  color: var(--lp-teal);
}

/* ===========================================
   11. PROSE / CONTENT BLOCKS
   =========================================== */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: var(--lp-space-md);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

.intro-text {
  font-size: 1.125rem;
  color: var(--lp-text-muted);
  line-height: 1.7;
  margin-bottom: var(--lp-space-lg);
}

/* ===========================================
   12. IMAGES
   =========================================== */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.img-rounded {
  border-radius: var(--lp-radius-lg);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================
   13. DIVIDERS
   =========================================== */
.divider {
  height: 1px;
  background-color: var(--lp-border);
  margin: var(--lp-space-lg) 0;
}

.divider-lg {
  margin: var(--lp-space-xl) 0;
}

/* ===========================================
   14. RESPONSIVE VISIBILITY
   =========================================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ===========================================
   15. ANIMATIONS
   =========================================== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in 0.4s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
