/* ========================================================================
   Romania Play Zone – Base Styles
   Modern, minimalist, premium, cinematic
   ======================================================================== */

/* ========================================================================
   1. CSS Variables (Design Tokens)
   ======================================================================== */
:root {
  /* Colors - Romanian flag inspired palette */
  --color-background: #ffffff;
  --color-surface: #0b1020;
  --color-surface-elevated: #111729;
  --color-text: #f5f5f7;
  --color-text-muted: #b5b8c7;
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  /* Flag-inspired accents (refined, slightly muted) */
  --color-primary: #0050b8;   /* Blue – primary actions */
  --color-primary-soft: rgba(0, 80, 184, 0.14);
  --color-accent-yellow: #ffb100;
  --color-accent-yellow-soft: rgba(255, 177, 0, 0.18);
  --color-accent-red: #e0253b;
  --color-accent-red-soft: rgba(224, 37, 59, 0.16);

  /* Semantic */
  --color-success: #1bbf72;
  --color-warning: #ffb100;
  --color-danger: #e0253b;

  /* Neutral scale (cool, premium) */
  --gray-50: #f7f7fb;
  --gray-100: #e4e5f0;
  --gray-200: #c8cadc;
  --gray-300: #a4a7c4;
  --gray-400: #8083a1;
  --gray-500: #5c5f7e;
  --gray-600: #3f425d;
  --gray-700: #2c3044;
  --gray-800: #171a28;
  --gray-900: #0b0d16;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;

  /* Font sizes (mobile-first) */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-5xl: 3rem;     /* 48px */

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --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-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows (cinematic, soft) */
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.25);
  --shadow-subtle: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft-up: 0 -12px 40px rgba(0, 0, 0, 0.35);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 340ms ease-out;
}

/* Larger screens typography adjustments */
@media (min-width: 768px) {
  :root {
    --text-3xl: 2.25rem; /* 36px */
    --text-4xl: 3rem;    /* 48px */
    --text-5xl: 3.75rem; /* 60px */
  }
}

/* ========================================================================
   2. Reset / Normalize
   ======================================================================== */

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
}

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;
}

ul, ol {
  padding: 0;
}

ul[class], ol[class] {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================================================
   3. Base Typography & Layout
   ======================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--color-surface);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

strong {
  font-weight: 600;
}

small {
  font-size: var(--text-xs);
}

/* Links - elegant underline on hover only */
a {
  color: var(--color-primary);
  position: relative;
  transition: color var(--transition-normal);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-yellow));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

a:hover::after,
 a:focus-visible::after {
  transform: scaleX(1);
}

/* ========================================================================
   4. Accessibility & Motion
   ======================================================================== */

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

:focus:not(:focus-visible) {
  outline: none;
}

@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;
  }
}

/* Screen-reader only utility */
.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;
}

/* ========================================================================
   5. Layout Utilities
   ======================================================================== */

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  max-width: 1120px;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
  }
}

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

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

/* 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-column {
  display: flex;
  flex-direction: column;
}

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

.gap-sm {
  gap: var(--space-3);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

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

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  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;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

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

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

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

/* ========================================================================
   6. Hero & Cinematic Backgrounds
   ======================================================================== */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: var(--color-text);
  overflow: hidden;
}

.hero--full {
  min-height: 90vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

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

/* Cinematic overlay for readability and warm evening tone */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.55)),
    radial-gradient(circle at 10% 10%, rgba(0, 80, 184, 0.25), transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(255, 177, 0, 0.22), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(224, 37, 59, 0.22), transparent 55%);
  mix-blend-mode: normal;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__eyebrow {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-yellow);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }

  .hero__subtitle {
    max-width: 520px;
  }
}

/* ========================================================================
   7. Buttons
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-red));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

.btn--secondary {
  background-color: rgba(17, 23, 41, 0.7);
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.btn--secondary:hover {
  background-color: rgba(17, 23, 41, 0.92);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

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

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

/* CTA-specific helpers for hero */
.btn--hero-primary {
  min-width: 190px;
}

.btn--hero-secondary {
  min-width: 210px;
}

/* ========================================================================
   8. Forms & Inputs
   ======================================================================== */

label {
  display: inline-block;
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(8, 10, 20, 0.95);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-normal);
}

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

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--color-accent-yellow);
  box-shadow: 0 0 0 1px rgba(255, 177, 0, 0.65);
}

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

/* ========================================================================
   9. Cards & Surfaces
   ======================================================================== */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: radial-gradient(circle at top left, rgba(0, 80, 184, 0.16), transparent 60%),
    radial-gradient(circle at bottom right, rgba(224, 37, 59, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(17, 23, 41, 0.96), rgba(9, 11, 20, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(26px);
}

.card--subtle {
  background: rgba(17, 23, 41, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

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

.card__meta {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

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

/* ========================================================================
   10. Badges / Pills (for events, experiences)
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge--primary {
  background-color: var(--color-primary-soft);
  color: #e5efff;
  border-color: rgba(0, 80, 184, 0.65);
}

.badge--yellow {
  background-color: var(--color-accent-yellow-soft);
  color: #fff8e1;
  border-color: rgba(255, 177, 0, 0.7);
}

.badge--red {
  background-color: var(--color-accent-red-soft);
  color: #ffe6ea;
  border-color: rgba(224, 37, 59, 0.65);
}

/* ========================================================================
   11. Helper Classes (tone & visual rhythm)
   ======================================================================== */

.text-muted {
  color: var(--color-text-muted);
}

.text-accent-yellow {
  color: var(--color-accent-yellow);
}

.text-accent-red {
  color: var(--color-accent-red);
}

.text-primary {
  color: var(--color-primary);
}

.bg-surface {
  background-color: var(--color-surface);
}

.bg-surface-elevated {
  background-color: var(--color-surface-elevated);
}

.border-subtle {
  border: 1px solid var(--color-border-subtle);
}

.rounded-md {
  border-radius: var(--radius-md);
}

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

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

/* Spacing helpers for consistent vertical rhythm */
.stack-sm > * + * {
  margin-top: var(--space-2);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

/* ========================================================================
   12. Map & Media Embeds
   ======================================================================== */

.embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius-md);
}

.embed-responsive iframe,
.embed-responsive video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================================================
   13. Tables (e.g., program, orar)
   ======================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

th, td {
  padding: 0.6rem 0.75rem;
  text-align: left;
}

th {
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

td {
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========================================================================
   End of base.css
   ======================================================================== */
