/* =========================================================
   Widownia Play - Base Styles
   ========================================================= */

/* =========================================================
   Variables
   ========================================================= */
:root {
  /* Color Palette - Ivory, Burgundy, Royal Blue, Antique Gold, Neutrals */
  --color-background: #1b1520; /* deep aubergine / casino night */
  --color-surface: #21172a; /* subtle contrast surface */
  --color-surface-alt: #271b33;

  --color-ivory: #f5f0e7;
  --color-ivory-soft: #f1e8d9;

  --color-burgundy: #6a1026;
  --color-burgundy-deep: #430718;

  --color-royal-blue: #102554;
  --color-royal-blue-deep: #08132f;

  --color-gold: #c9a25a; /* antique gold */
  --color-gold-soft: #e0c58a;
  --color-gold-deep: #8c6b33;

  --color-text: #f7f1e6; /* near-ivory text */
  --color-text-muted: #d1c5b0;
  --color-text-soft: #b7aa93;

  --color-success: #6aa884;
  --color-warning: #d6a35a;
  --color-danger: #b4433f;

  --gray-50: #f8f6f2;
  --gray-100: #e7e1d6;
  --gray-200: #d3c9b7;
  --gray-300: #b8a88f;
  --gray-400: #9a8c75;
  --gray-500: #7d705f;
  --gray-600: #61564a;
  --gray-700: #484039;
  --gray-800: #312b27;
  --gray-900: #1f1a18;

  /* Typography - aristocratic serif focus */
  --font-family-serif: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --font-family-sans: "Source Sans Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-display: "Cinzel", "Cormorant Garamond", serif;

  --font-size-root: 16px;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 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.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* 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 - subtle but refined */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows - soft, cinematic */
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-soft-high: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  /* Layout */
  --container-max-width: 1300px;
  --container-padding-x: 1.25rem;

  /* Header / Hero specific accents */
  --header-height: 4.5rem;
  --hero-overlay: linear-gradient(135deg, rgba(11, 6, 22, 0.85), rgba(53, 25, 40, 0.9));
  --hero-heading-color: #f8f2e8;
  --hero-subtitle-color: #e1d4be;
}

@media (min-width: 768px) {
  :root {
    --font-size-root: 17px;
  }
}

@media (min-width: 1024px) {
  :root {
    --font-size-root: 18px;
  }
}

html {
  font-size: var(--font-size-root);
}

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

* {
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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[role="list"],
ol[role="list"] {
  list-style: none;
}

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

body {
  scroll-behavior: smooth;
}

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

/* =========================================================
   Base Styles
   ========================================================= */
body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top left, #281731 0, #130b18 40%, #09060c 100%);
  color: var(--color-text);
}

main {
  min-height: calc(100vh - var(--header-height));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-display);
  font-weight: 500;
  line-height: var(--line-height-snug);
  color: var(--color-ivory);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

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

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

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

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

h6 {
  font-size: var(--font-size-md);
}

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

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

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

strong {
  font-weight: 600;
}

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

a {
  cursor: pointer;
  transition: color var(--transition-normal),
    opacity var(--transition-fast),
    text-shadow var(--transition-normal);
}

a:hover {
  color: var(--color-gold-soft);
}

/* =========================================================
   Focus & Accessibility
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--color-gold-soft);
  outline-offset: 3px;
}

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-gold-soft);
  outline-offset: 3px;
}

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

/* =========================================================
   Utilities
   ========================================================= */

/* Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
  max-width: var(--container-max-width);
}

/* Layout spacing */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

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

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

.justify-center {
  justify-content: center;
}

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

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

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

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

/* Text alignment */
.text-center {
  text-align: center;
}

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

.text-gold {
  color: var(--color-gold-soft);
}

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

/* Width */
.w-full {
  width: 100%;
}

/* Margin & padding shortcuts (common only) */
.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-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

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

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Background helpers */
.bg-surface {
  background-color: var(--color-surface);
}

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

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

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

/* Ornament-like borders */
.border-gold-soft {
  border: 1px solid rgba(201, 162, 90, 0.5);
}

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

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

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

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

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

/* =========================================================
   Components
   ========================================================= */

/* Header layout helpers (logo centered, nav split) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background: linear-gradient(to bottom, rgba(12, 5, 21, 0.96), rgba(12, 5, 21, 0.9));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 162, 90, 0.45);
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header-nav--left {
  justify-content: flex-start;
}

.site-header-nav--right {
  justify-content: flex-end;
}

.site-logo {
  justify-self: center;
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 162, 90, 0.7);
  box-shadow: 0 0 0 1px rgba(11, 6, 22, 0.9), 0 10px 30px rgba(0, 0, 0, 0.45);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(34, 18, 41, 0.95));
}

.nav-link {
  position: relative;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0.25rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-soft), transparent);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--color-gold-soft);
  text-shadow: 0 0 14px rgba(201, 162, 90, 0.55);
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  color: var(--color-gold);
}

/* Mobile nav helper */
.header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 162, 90, 0.6);
  color: var(--color-gold-soft);
  background: radial-gradient(circle at top, rgba(201, 162, 90, 0.12), rgba(11, 6, 22, 0.96));
}

@media (min-width: 960px) {
  .header-toggle {
    display: none;
  }
}

/* Hero base styling (for slider) */
.hero {
  position: relative;
  min-height: clamp(540px, 90vh, 780px);
  color: var(--hero-heading-color);
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-12) 0 var(--space-16);
}

.hero-content {
  max-width: 40rem;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--font-family-serif);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--font-size-xs);
  color: var(--color-gold-soft);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-family: var(--font-family-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: var(--line-height-tight);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  color: var(--hero-subtitle-color);
  max-width: 30rem;
  margin: 0 auto var(--space-6);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  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 {
  color: #160c0e;
  background: radial-gradient(circle at 20% 0, #f7e4b3 0, var(--color-gold-soft) 40%, var(--color-gold-deep) 100%);
  border-color: rgba(69, 38, 15, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at 15% 0, #f9eac4 0, var(--color-gold-soft) 30%, var(--color-gold-deep) 100%);
}

.btn-secondary {
  color: var(--color-gold-soft);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(9, 5, 18, 0.98));
  border-color: rgba(201, 162, 90, 0.75);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.btn-secondary:hover {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(9, 5, 18, 0.98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn-ghost {
  color: var(--color-gold-soft);
  background: transparent;
  border-color: rgba(201, 162, 90, 0.4);
}

.btn-ghost:hover {
  background: rgba(201, 162, 90, 0.08);
}

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

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Inputs, textareas, selects */
.field {
  margin-bottom: var(--space-4);
}

.field-label {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-family-serif);
  font-size: var(--font-size-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 90, 0.35);
  background-color: rgba(6, 3, 10, 0.9);
  color: var(--color-text);
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    background-color var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(209, 197, 176, 0.55);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-gold-soft);
  box-shadow: 0 0 0 1px rgba(201, 162, 90, 0.4), 0 12px 30px rgba(0, 0, 0, 0.65);
  background-color: rgba(10, 5, 18, 0.96);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: rgba(180, 67, 63, 0.85);
}

.field-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.field-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}

/* Card component - for experiences, events, highlights */
.card {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.04), rgba(26, 17, 32, 0.98));
  border: 1px solid rgba(201, 162, 90, 0.32);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.card-header {
  margin-bottom: var(--space-3);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

.card-kicker {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  margin-bottom: var(--space-2);
}

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

/* Section header - ornamental divider */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-kicker {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  margin-bottom: var(--space-2);
}

.section-title {
  margin-bottom: var(--space-3);
}

.section-divider {
  width: 5rem;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--color-gold-soft), transparent);
}

/* Footer base */
.site-footer {
  border-top: 1px solid rgba(201, 162, 90, 0.45);
  background: radial-gradient(circle at top, rgba(34, 18, 41, 0.98), rgba(8, 5, 12, 1));
  color: var(--color-text-soft);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.site-footer a {
  font-size: var(--font-size-sm);
}

.site-footer a:hover {
  color: var(--color-gold-soft);
}

.footer-legal {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Map wrapper responsiveness */
.map-wrapper iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Animations (subtle, elegant)
   ========================================================= */

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-in-up 0.8s var(--transition-normal) forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.16), transparent 55%);
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* =========================================================
   Helpers for Polish content specifics
   ========================================================= */

.list-decorated {
  list-style: none;
  padding-left: 0;
}

.list-decorated li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}

.list-decorated li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 90, 0.7);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), var(--color-gold-deep));
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 162, 90, 0.5);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-soft);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), rgba(11, 6, 22, 0.95));
}
