/* ==========================================================================
   NA URZECZU — STYLESHEET
   Aesthetic: Heritage Nadwiślańskie / Deep River Teal / Gold & Sand Accents
   ========================================================================== */

:root {
  --bg-deep-teal: #001622;
  --bg-night-river: #011926;
  --bg-card-glass: rgba(0, 22, 34, 0.78);
  --bg-card-hover: rgba(5, 34, 51, 0.88);
  
  --color-sand: #c8af93;
  --color-sand-light: #e5ded3;
  --color-sand-pale: #f2eee8;
  --color-gold: #f5c26b;
  --color-gold-hover: #e0b055;
  --color-gold-dark: #b8862d;
  --color-text-white: #f5f8fa;
  --color-text-muted: #9bb0bc;
  
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --border-glass: 1px solid rgba(200, 175, 147, 0.22);
  --border-gold: 1px solid rgba(245, 194, 107, 0.4);
  --border-active: 1px solid rgba(245, 194, 107, 0.9);
  
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 22, 34, 0.8);
  --shadow-glow: 0 0 20px rgba(245, 194, 107, 0.25);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep-teal);
  color: var(--color-sand-light);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep-teal);
  color: var(--color-sand-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   HEADER & TOP BAR
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 40px;
  background: linear-gradient(180deg, rgba(0, 15, 23, 0.85) 0%, rgba(0, 22, 34, 0.4) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 175, 147, 0.12);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  padding: 14px 40px;
  background: rgba(0, 18, 28, 0.92);
  border-bottom: 1px solid rgba(200, 175, 147, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-text-white);
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-title {
  color: var(--color-gold);
  text-shadow: 0 0 14px rgba(245, 194, 107, 0.5);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-item-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-sand-light);
  cursor: pointer;
  padding: 6px 4px;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-item-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transform: translateX(-50%);
  transition: var(--transition-smooth);
}

.nav-item-btn:hover {
  color: var(--color-gold);
}

.nav-item-btn:hover::after {
  width: 100%;
}

/* Audio Toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.audio-toggle-btn {
  background: rgba(200, 175, 147, 0.08);
  border: var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--color-sand);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-toggle-btn:hover {
  background: rgba(245, 194, 107, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.audio-wave-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.audio-wave-icon .bar {
  width: 2.5px;
  background-color: var(--color-sand);
  border-radius: 1px;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.bar-1 { height: 4px; }
.bar-2 { height: 10px; }
.bar-3 { height: 6px; }

.audio-toggle-btn.playing {
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.audio-toggle-btn.playing .bar {
  background-color: var(--color-gold);
  animation: soundPulse 0.9s infinite alternate ease-in-out;
}
.audio-toggle-btn.playing .bar-1 { animation-delay: 0.1s; }
.audio-toggle-btn.playing .bar-2 { animation-delay: 0.3s; }
.audio-toggle-btn.playing .bar-3 { animation-delay: 0.2s; }

@keyframes soundPulse {
  0% { height: 3px; }
  100% { height: 14px; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-sand-light);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   STORY SECTIONS (FULLSCREEN EXPERIENCES)
   ========================================================================== */
.story-container {
  width: 100%;
}

.story-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Media Backdrops */
.media-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 22, 34, 0.25) 0%, rgba(0, 22, 34, 0.7) 100%),
              linear-gradient(180deg, rgba(0, 16, 26, 0.6) 0%, transparent 40%, rgba(0, 22, 34, 0.85) 100%);
  z-index: 2;
}

.backdrop-dimmer {
  position: absolute;
  inset: 0;
  background: rgba(0, 22, 34, 0.45);
  background: linear-gradient(180deg, rgba(0, 18, 28, 0.6) 0%, rgba(0, 22, 34, 0.4) 50%, rgba(0, 22, 34, 0.85) 100%);
  z-index: 2;
}

.backdrop-dimmer.intense {
  background: rgba(0, 22, 34, 0.82);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.sub-lead-caps {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text-white);
  line-height: 1.1;
  margin-bottom: 22px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-style: italic;
  color: var(--color-sand-light);
  line-height: 1.5;
  margin-bottom: 48px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.scroll-prompt-container {
  display: flex;
  justify-content: center;
}

.scroll-prompt-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.prompt-arrow {
  font-size: 1.4rem;
  animation: bounceArrow 2s infinite ease-in-out;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-prompt-btn:hover {
  color: var(--color-text-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   2. CHAPTER 1 INTRO
   ========================================================================== */
.chapter-intro-section {
  text-align: center;
  padding: 100px 24px;
}

.chapter-intro-content {
  position: relative;
  z-index: 10;
  max-width: 860px;
  margin: 0 auto;
}

.chapter-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 6px 18px;
  border: 1px solid rgba(245, 194, 107, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(0, 22, 34, 0.5);
  margin-bottom: 26px;
}

.chapter-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 500;
  color: var(--color-text-white);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
}

.chapter-subtext {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  color: var(--color-sand);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 46px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.chapter-intro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: rgba(245, 194, 107, 0.15);
  color: var(--color-gold);
  border: var(--border-gold);
  backdrop-filter: blur(6px);
}

.btn-primary:hover {
  background: var(--color-gold);
  color: var(--bg-deep-teal);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(0, 22, 34, 0.6);
  color: var(--color-sand-light);
  border: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(200, 175, 147, 0.2);
  color: var(--color-text-white);
  border-color: var(--color-sand);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--bg-deep-teal);
  border: 1px solid var(--color-gold);
  font-weight: 600;
}

.btn-gold:hover {
  background: #f7ce84;
  box-shadow: 0 0 25px rgba(245, 194, 107, 0.45);
  transform: translateY(-2px);
}

.btn-return {
  background: rgba(200, 175, 147, 0.12);
  color: var(--color-sand-light);
  border: var(--border-glass);
  padding: 12px 36px;
}

.btn-return:hover {
  background: var(--color-gold);
  color: var(--bg-deep-teal);
  border-color: var(--color-gold);
}

.btn-large {
  padding: 16px 42px;
  font-size: 1.05rem;
}

/* ==========================================================================
   3. NARRATIVE SECTION (TABBED EXPERIENCE)
   ========================================================================== */
.narrative-section {
  min-height: 100vh;
  padding: 110px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

/* Sub-nav Tabs Bar */
.chapter-subnav {
  position: sticky;
  top: 75px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  margin-bottom: 20px;
  background: rgba(0, 22, 34, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 175, 147, 0.12);
}

.tab-btn {
  background: rgba(0, 22, 34, 0.7);
  border: var(--border-glass);
  color: var(--color-sand-light);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--color-gold);
  border-color: rgba(245, 194, 107, 0.4);
}

.tab-btn.active {
  background: rgba(245, 194, 107, 0.15);
  color: var(--color-gold);
  border: var(--border-active);
  box-shadow: 0 0 16px rgba(245, 194, 107, 0.2);
}

/* Tabs Display */
.tabs-display {
  flex: 1;
  position: relative;
  width: 100%;
}

.tab-panel {
  display: none;
  position: relative;
  min-height: calc(100vh - 180px);
  width: 100%;
  padding: 40px 60px;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.45s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.tab-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 22, 34, 0.72) 0%, rgba(0, 22, 34, 0.92) 100%);
  z-index: 2;
}

/* Floating Quotes */
.floating-quote {
  position: absolute;
  z-index: 10;
  max-width: 480px;
  padding: 20px 24px;
  background: rgba(0, 22, 34, 0.6);
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-top-right {
  top: 40px;
  right: 60px;
}

.quote-mid-right {
  bottom: 120px;
  right: 60px;
}

.quote-top-left {
  top: 40px;
  left: 60px;
}

.poetic-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-sand-pale);
  line-height: 1.55;
  margin-bottom: 8px;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-sand);
  font-style: normal;
  display: block;
}

/* Story Card */
.story-card-container {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin-top: 40px;
}

.story-card-container.right-aligned {
  margin-left: auto;
  margin-top: 120px;
}

.glass-story-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.section-roman {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 600;
  color: var(--color-text-white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.card-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-sand-pale);
  margin-bottom: 16px;
}

.card-body-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.card-action-row {
  margin-top: 26px;
  display: flex;
}

/* GWARA (Dialect Box) */
.gwara-box {
  background: rgba(0, 15, 23, 0.7);
  border: 1px solid rgba(200, 175, 147, 0.18);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 12px;
}

.gwara-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 175, 147, 0.12);
}

.gwara-badge {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.gwara-hint {
  font-size: 0.76rem;
  color: var(--color-sand);
  opacity: 0.75;
}

.gwara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.gwara-item {
  background: rgba(0, 22, 34, 0.6);
  border: 1px solid rgba(200, 175, 147, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.gwara-item:hover {
  background: rgba(245, 194, 107, 0.1);
  border-color: rgba(245, 194, 107, 0.35);
  transform: translateY(-1px);
}

.gwara-item.full-width {
  grid-column: 1 / -1;
}

.gw-word {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-sand-pale);
  margin-bottom: 2px;
}

.gw-def {
  display: block;
  font-size: 0.84rem;
  color: var(--color-sand);
  line-height: 1.4;
}

/* ==========================================================================
   4. EXPLORATION HUB
   ========================================================================== */
.hub-section {
  padding: 120px 24px 80px;
}

.hub-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hub-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.hub-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 500;
  color: var(--color-text-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hub-subtitle {
  font-size: 1.1rem;
  color: var(--color-sand);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.hub-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(14px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hub-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 194, 107, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.hub-card.featured {
  border-color: rgba(245, 194, 107, 0.4);
  background: linear-gradient(180deg, rgba(245, 194, 107, 0.08) 0%, rgba(0, 22, 34, 0.8) 100%);
}

.card-badge-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 18px;
}

.card-h {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--color-text-white);
  line-height: 1.25;
  margin-bottom: 14px;
}

.card-p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-sand);
  margin-bottom: 24px;
}

.card-arrow {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.hub-card:hover .card-arrow {
  transform: translateX(4px);
}

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

/* ==========================================================================
   FULLSCREEN SUB-MODALS (Pochodzenie Urzeczan, Mapy, etc.)
   ========================================================================== */
.fullscreen-submodal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: none;
  overflow: hidden;
}

.fullscreen-submodal.open {
  display: block;
  animation: modalFadeIn 0.35s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.submodal-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  z-index: 1;
}

.submodal-scroller {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 60px 24px;
  display: flex;
  justify-content: center;
}

.submodal-content-box {
  background: rgba(0, 18, 28, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 1100px;
  width: 100%;
  padding: 60px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  margin: auto;
}

.submodal-header {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(200, 175, 147, 0.16);
  padding-bottom: 24px;
}

.submodal-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 600;
  color: var(--color-text-white);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.submodal-lead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--color-sand-light);
}

/* 3 Pillars of Origin */
.settlement-pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.pillar-card {
  display: flex;
  gap: 24px;
  background: rgba(0, 26, 38, 0.6);
  border: 1px solid rgba(200, 175, 147, 0.15);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  background: rgba(0, 32, 48, 0.8);
  border-color: rgba(245, 194, 107, 0.35);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold);
  min-width: 45px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-sand);
}

/* Oskar Kolberg Quote */
.kolberg-quote-box {
  background: rgba(245, 194, 107, 0.06);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 26px 32px;
  margin-bottom: 40px;
}

.kolberg-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-sand-pale);
  line-height: 1.6;
  margin-bottom: 12px;
}

.kolberg-author {
  font-size: 0.92rem;
  color: var(--color-gold);
  font-style: normal;
  display: block;
}

.submodal-footer {
  text-align: center;
  padding-top: 10px;
}

/* Culture Grid & Expert in Submodals */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.culture-box {
  background: rgba(0, 26, 38, 0.6);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px;
}

.culture-box h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.culture-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-sand);
}

.expert-statement {
  margin-bottom: 40px;
}

.expert-quote-card {
  background: rgba(0, 26, 38, 0.7);
  border-left: 3px solid var(--color-gold);
  padding: 26px 30px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--color-sand-pale);
  font-style: italic;
  margin-bottom: 24px;
}

.expert-bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eb-item strong {
  display: block;
  font-family: var(--font-sans);
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 4px;
}

.eb-item span {
  font-size: 0.95rem;
  color: var(--color-sand);
}

/* Map Interactive View */
.map-interactive-view {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.map-svg-container {
  background: rgba(0, 15, 23, 0.8);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
}

.urzecze-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-details-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.map-point-info h5 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.map-point-info p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-sand);
}

/* ==========================================================================
   GENERAL SITE MODALS (Header: Map, Chapters, Gallery, Lexicon)
   ========================================================================== */
.site-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  background: rgba(0, 10, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.site-modal.open {
  display: flex;
  animation: modalFadeIn 0.3s ease-out forwards;
}

.modal-dialog {
  background: var(--bg-night-river);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.modal-dialog.large-dialog {
  max-width: 1100px;
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(200, 175, 147, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-text-white);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--color-sand);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--color-gold);
  transform: rotate(90deg);
}

.modal-body {
  padding: 32px;
  overflow-y: auto;
}

.modal-intro {
  font-size: 1.05rem;
  color: var(--color-sand);
  margin-bottom: 24px;
}

/* Journey Map Grid */
.journey-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.station-card {
  background: rgba(0, 22, 34, 0.6);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}

.station-step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: block;
}

.station-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.station-card p {
  font-size: 0.88rem;
  color: var(--color-sand);
  line-height: 1.5;
}

/* Chapters Listing */
.chapters-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chapter-card {
  background: rgba(0, 22, 34, 0.6);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  text-decoration: none;
  display: block;
  transition: var(--transition-smooth);
}

.chapter-card.active {
  border-color: rgba(245, 194, 107, 0.5);
  background: rgba(245, 194, 107, 0.08);
}

.chapter-card.upcoming {
  opacity: 0.75;
}

.chapter-card:hover {
  transform: translateX(6px);
  border-color: var(--color-gold);
}

.ch-badge {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(200, 175, 147, 0.15);
  color: var(--color-sand);
  margin-bottom: 8px;
}

.ch-badge.current {
  background: var(--color-gold);
  color: var(--bg-deep-teal);
  font-weight: 600;
}

.ch-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.ch-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text-white);
  margin: 4px 0 6px;
}

.ch-desc {
  font-size: 0.9rem;
  color: var(--color-sand);
}

/* Gallery Mosaic */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--border-glass);
  background: rgba(0, 15, 23, 0.6);
  transition: var(--transition-smooth);
}

.gallery-photo:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 194, 107, 0.5);
}

.gallery-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-photo figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-sand);
  border-top: 1px solid rgba(200, 175, 147, 0.1);
}

/* Lexicon / Słownik */
.dict-search-bar {
  margin-bottom: 24px;
}

.dict-search-bar input {
  width: 100%;
  background: rgba(0, 15, 23, 0.8);
  border: var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-sand-pale);
  outline: none;
  transition: var(--transition-smooth);
}

.dict-search-bar input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 16px rgba(245, 194, 107, 0.2);
}

.dict-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 6px;
}

.dict-entry {
  background: rgba(0, 22, 34, 0.6);
  border: var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: var(--transition-smooth);
}

.dict-entry:hover {
  background: rgba(245, 194, 107, 0.08);
  border-color: rgba(245, 194, 107, 0.3);
}

.de-term {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.de-def {
  font-size: 0.88rem;
  color: var(--color-sand-light);
  line-height: 1.5;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card-hover);
  border: var(--border-gold);
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  color: var(--color-gold);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.toast-popup.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 20px;
  }
  
  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 16, 26, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(200, 175, 147, 0.2);
  }
  
  .main-nav.mobile-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .chapter-subnav {
    top: 60px;
    padding: 8px 12px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .tab-panel {
    padding: 24px 20px;
  }

  .floating-quote {
    position: static;
    margin-bottom: 24px;
    max-width: 100%;
  }

  .story-card-container,
  .story-card-container.right-aligned {
    margin: 0;
    max-width: 100%;
  }

  .glass-story-card {
    padding: 28px 20px;
  }

  .submodal-content-box {
    padding: 30px 20px;
  }

  .map-interactive-view {
    grid-template-columns: 1fr;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }
}
