/*
==================================================
  Night Vibe Factory - Base Styles
  - Modern, energetic, immersive, bold
  - Inspired by holiday2026.com style energy
==================================================
*/

/*
==================================================
  Variables
==================================================
*/
:root {
  /* Color Palette */
  --color-bg: #050713; /* main background - deep night */
  --color-bg-elevated: #0b0f23;
  --color-bg-soft: #0f1329;

  --color-text: #f5f7ff;
  --color-text-muted: #a0a4c0;
  --color-border-subtle: #252b4a;

  /* Energetic accent colors (neon-like) */
  --color-primary: #ff2b7a;   /* main brand accent: neon magenta */
  --color-primary-soft: rgba(255, 43, 122, 0.1);
  --color-primary-strong: #ff4f97;

  --color-success: #3ddc97;
  --color-success-soft: rgba(61, 220, 151, 0.12);
  --color-warning: #ffb547;
  --color-warning-soft: rgba(255, 181, 71, 0.15);
  --color-danger: #ff4b5c;
  --color-danger-soft: rgba(255, 75, 92, 0.16);

  /* Neutral grays for UI elements */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Roboto", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px-based, used via rem where needed) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-7: 1.75rem;  /* 28px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radii */
  --radius-xs: 0.25rem;   /* 4px */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-pill: 999px;
  --radius-card: 1.25rem; /* bolder "card" feel */

  /* Shadows (soft neon-inspired) */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.65);
  --shadow-md: 0 18px 45px rgba(0, 0, 0, 0.75);
  --shadow-primary-soft: 0 0 25px rgba(255, 43, 122, 0.45);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;
}

/**************************************************
  Respect prefers-reduced-motion
**************************************************/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
==================================================
  Reset / Normalize
==================================================
*/
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

/*
==================================================
  Base Typography & Layout
==================================================
*/
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #161a3b 0, #050713 55%, #000000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: 0.01em;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: var(--space-2);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

h5 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

h6 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-primary-strong);
  text-shadow: 0 0 14px rgba(255, 43, 122, 0.65);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--font-size-sm);
}

code, kbd, pre, samp {
  font-family: var(--font-mono);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-6) 0;
}

/*
==================================================
  Accessibility Helpers
==================================================
*/
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/*
==================================================
  Layout Utilities
==================================================
*/
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1200px;
}

@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section--tight {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

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

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

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

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

.gap-xs { gap: var(--space-2); }
.gap-sm { gap: var(--space-3); }
.gap-md { gap: var(--space-4); }
.gap-lg { gap: var(--space-6); }
.gap-xl { gap: var(--space-8); }

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

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

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/**************************************************
  Interactive atmosphere helpers
**************************************************/

/* subtle glow for night-vibe sections */
.section--glow {
  position: relative;
}

.section--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255, 43, 122, 0.12), transparent 55%),
              radial-gradient(circle at bottom right, rgba(61, 220, 151, 0.1), transparent 60%);
  opacity: 0.7;
  z-index: -1;
}

/*
==================================================
  Form Elements
==================================================
*/
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='password'],
input[type='number'],
input[type='search'],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(7, 10, 28, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-sm), var(--shadow-primary-soft);
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/*
==================================================
  Buttons
==================================================
*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ff7b9c 35%, var(--color-primary-strong) 100%);
  color: #050713;
  box-shadow: var(--shadow-sm), var(--shadow-primary-soft);
}

.btn--primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-md), var(--shadow-primary-soft);
}

.btn--primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--shadow-xs);
}

.btn--ghost {
  background: rgba(14, 20, 55, 0.7);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn--ghost:hover {
  background: rgba(18, 28, 78, 0.95);
  border-color: rgba(255, 255, 255, 0.24);
}

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

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

.btn--full {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* CTA pulses for key booking buttons */
.btn--pulse {
  position: relative;
}

.btn--pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 43, 122, 0.4);
  opacity: 0;
}

@keyframes pulse-glow {
  0% { opacity: 0; transform: scale(1); }
  40% { opacity: 0.7; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.12); }
}

.btn--pulse:hover::after {
  animation: pulse-glow 1200ms ease-out;
}

/**************************************************
  Cards & Surfaces
**************************************************/
.card {
  background: linear-gradient(145deg, rgba(9, 12, 35, 0.98), rgba(9, 12, 35, 0.9));
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 43, 122, 0.2), transparent 60%);
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 1;
}

.card__header {
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.card__meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.card__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card--highlight {
  border-color: rgba(255, 43, 122, 0.5);
  box-shadow: var(--shadow-md), var(--shadow-primary-soft);
}

/*
==================================================
  Badges & Pills (for categories, statuses)
==================================================
*/
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge--primary {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  border-color: rgba(255, 43, 122, 0.4);
}

.badge--success {
  background: var(--color-success-soft);
  color: var(--color-success);
  border-color: rgba(61, 220, 151, 0.5);
}

.badge--warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border-color: rgba(255, 181, 71, 0.55);
}

.badge--danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  border-color: rgba(255, 75, 92, 0.6);
}

/*
==================================================
  Media & Galleries
==================================================
*/
.media-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.media-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 19, 0.9), rgba(5, 7, 19, 0.1));
  pointer-events: none;
}

/* basic lightbox-ready state (JS will handle open) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

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

.media-grid__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.media-grid__item img {
  transition: transform var(--transition-base), filter var(--transition-base);
}

.media-grid__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/*
==================================================
  Tables (for event schedules)
==================================================
*/
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table thead {
  background: rgba(14, 18, 45, 0.95);
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table th {
  font-weight: 600;
  color: var(--color-text);
}

.table tbody tr:nth-child(odd) {
  background: rgba(11, 15, 35, 0.6);
}

.table tbody tr:nth-child(even) {
  background: rgba(11, 15, 35, 0.2);
}

/*
==================================================
  Toasts / Alerts (for booking feedback)
==================================================
*/
.alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
}

.alert--success {
  background: var(--color-success-soft);
  border-color: rgba(61, 220, 151, 0.6);
  color: var(--color-success);
}

.alert--warning {
  background: var(--color-warning-soft);
  border-color: rgba(255, 181, 71, 0.6);
  color: var(--color-warning);
}

.alert--danger {
  background: var(--color-danger-soft);
  border-color: rgba(255, 75, 92, 0.7);
  color: var(--color-danger);
}

.alert__title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.alert__body {
  color: inherit;
}

/*
==================================================
  Misc utilities
==================================================
*/

.hide { display: none !important; }

.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }

/* End of base.css */
