/*
Theme Name: Qigong Modern
Theme URI: https://zhinengqigong.pl
Author: Janek
Description: Unikatowy motyw Zhineng Qigong w palecie Nefryt i Tusz (Imperial Jade & Xuan Paper), inspirowany taoistyczną medycyną, papierem Xuan, kaligrafią Sumi-e i cynobrowymi pieczęciami.
Version: 2.0.0
*/

:root {
  /* ========================================================
     PALETA A: "NEFRYT I TUSZ" (Imperial Jade & Xuan Paper)
     ======================================================== */
  /* Tła i powierzchnie */
  --color-bg: #f8f7f4;              /* Czysta, świeża kość słoniowa (Papier Xuan) */
  --color-surface: #eff2ee;         /* Bardzo subtelna, seledynowo-pergaminowa podsekcja */
  --color-card-bg: #ffffff;         /* Czyste passe-partout zwoju */
  --color-text: #1c2120;            /* Tusz chiński (Sumi Ink) z kroplą grafitu */
  --color-text-muted: #55605d;      /* Przydymiony tusz */
  --color-divider: rgba(28, 33, 32, 0.10);

  /* Odcienie neutralne */
  --color-neutral-100: #ffffff;
  --color-neutral-200: #f1f3f0;
  --color-neutral-300: #e2e6e3;
  --color-neutral-800: #293330;
  --color-neutral-900: #1c2120;

  /* Główny Akcent: Szlachetny Nefryt / Jadeit (Imperial Jade) */
  --color-accent: #1b4d3e;          /* Głęboki szlachetny nefryt */
  --color-accent-light: #266b57;    /* Jaśniejszy szmaragd nefrytowy */
  --color-accent-dark: #12352b;     /* Ciemny jadeit */
  --color-accent-100: #e8f2ee;      /* Bardzo blady nefryt */
  --color-accent-200: #d0e4dc;
  --color-accent-400: #5b9e89;
  --color-accent-600: #1b4d3e;
  --color-accent-700: #153e32;
  --color-accent-800: #0f2d24;
  --color-accent-900: #091c17;

  /* Subtelny ton pomocniczy: Celadon (szkło nefrytowe / seledyn) */
  --color-celadon: #e2ece9;
  --color-celadon-light: #f0f6f4;
  --color-celadon-dark: #b8d2cb;

  /* Drugi Akcent: Cynobrowy Lakier (Cinnabar) i Antyczne Złoto */
  --color-cinnabar: #b3261e;        /* Tradycyjny czerwony lakier stempli */
  --color-cinnabar-hover: #961e17;
  --color-cinnabar-bg: #fdf2f0;

  --color-gold: #c5a059;            /* Szlachetne matowe złoto kaligraficzne */
  --color-gold-light: #f9f5ed;

  /* Typografia: Szlachetny Cormorant Garamond + Plus Jakarta Sans + Noto Serif SC */
  --font-heading: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Odstępy i promienie - szlachetne, stonowane */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Cienie tuszu i nefrytu */
  --shadow-sm: 0 2px 6px rgba(28, 33, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 33, 32, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 33, 32, 0.12);

  /* Tekstura papieru ryżowego Xuan w ciepło-neutralnej, świeżej tonacji */
  --bg-xuan-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='xuan'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0.13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23xuan)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
  margin: 0; 
  background-color: var(--color-bg); 
  background-image: var(--bg-xuan-texture);
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--color-text); 
  font-family: var(--font-body); 
  font-size: 15px; 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
  color: var(--color-neutral-900);
}
h1 { font-size: 46px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h6 { 
  font-family: var(--font-body);
  font-size: 12px; 
  font-weight: 700;
  letter-spacing: 0.14em; 
  text-transform: uppercase; 
}
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

.washed { 
  filter: saturate(0.85) contrast(0.96) brightness(1.02); 
  transition: filter 0.3s ease;
}

/* ========================================================
   PRZYCISKI (Eleganckie proporcje w nefrycie i cynobrze)
   ======================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; 
  padding: 12px 22px;
  border-radius: var(--radius-md); 
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  letter-spacing: 0.01em;
}
.btn-primary { 
  background: var(--color-accent); 
  color: #ffffff !important; 
  box-shadow: 0 3px 10px rgba(27, 77, 62, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { 
  background: var(--color-accent-light); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 18px rgba(27, 77, 62, 0.32); 
}
.btn-secondary { 
  border: 1px solid rgba(28, 33, 32, 0.20); 
  color: var(--color-text) !important; 
  background: rgba(255, 255, 255, 0.7); 
  backdrop-filter: blur(4px);
}
.btn-secondary:hover { 
  background: #ffffff; 
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
  transform: translateY(-2px); 
  box-shadow: var(--shadow-sm);
}
.btn-ghost { 
  color: var(--color-accent); 
  background: transparent; 
  padding: var(--space-1) var(--space-2); 
}
.btn-icon { 
  width: 38px; height: 38px; padding: 0; 
  border-radius: var(--radius-md); 
  display: inline-flex; align-items: center; justify-content: center; 
  text-decoration: none; 
  border: 1px solid var(--color-divider);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.btn-icon:hover { 
  color: #ffffff !important; 
  border-color: var(--color-accent);
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ========================================================
   TAGI I KICKERY
   ======================================================== */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.tag-accent { 
  background: var(--color-accent-100); 
  color: var(--color-accent); 
  border-color: rgba(27, 77, 62, 0.16);
}
.tag-accent-2 { 
  background: var(--color-neutral-100); 
  color: var(--color-neutral-900); 
  border-color: rgba(28, 33, 32, 0.12);
}
.tag-neutral { 
  background: var(--color-neutral-200); 
  color: var(--color-neutral-800); 
}

.card-kicker { 
  font-family: var(--font-body);
  font-size: 11px; 
  font-weight: 700;
  letter-spacing: 0.12em; 
  text-transform: uppercase; 
  color: var(--color-accent); 
}
.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-sm); }

/* ========================================================
   CHIŃSKA PIECZĘĆ LAKOWA (YIN ZHANG - 印章) Z SYMBOLEM 氣 (QI)
   ======================================================== */
.qi-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: var(--color-cinnabar);
  background-image: 
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at 65% 75%, rgba(0, 0, 0, 0.25), transparent 60%);
  color: #fcf6ec;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border-radius: 4px;
  border: 1px solid #7d1712;
  outline: 1px solid rgba(252, 246, 236, 0.4);
  outline-offset: -2px;
  box-shadow: 0 1px 3px rgba(179, 38, 30, 0.35);
  transform: rotate(-1.5deg);
  vertical-align: middle;
  user-select: none;
  flex: none;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}
.qi-seal:hover {
  transform: rotate(0deg) scale(1.12);
  box-shadow: 0 3px 8px rgba(179, 38, 30, 0.45);
}
.qi-seal-sm {
  width: 17px;
  height: 17px;
  font-size: 10px;
  border-radius: 3px;
  outline-offset: -1.5px;
}
.qi-seal-lg {
  width: 34px;
  height: 34px;
  font-size: 20px;
  border-radius: 6px;
  outline-offset: -3.5px;
  box-shadow: 0 3px 10px rgba(179, 38, 30, 0.42);
  transform: rotate(-2deg);
}

/* ========================================================
   TRADYCYJNE ZNAKI KALIGRAFICZNE W TLE DLA KAŻDEJ SEKCJI
   (Sumi-e Watermarks)
   ======================================================== */
.calligraphy-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  mix-blend-mode: multiply;
  fill: var(--color-accent-800);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

/* 1. HERO: 氣 (Qi - Energia Życiowa) */
.hero-calligraphy {
  left: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(-2deg);
  width: clamp(380px, 48vw, 620px);
  height: clamp(380px, 48vw, 620px);
  opacity: 0.10;
}

/* 2. ZOOM / ONLINE: 功 (Gōng - Kultywacja / Praktyka) */
.online-calligraphy {
  right: -30px;
  top: 48%;
  transform: translateY(-50%) rotate(2deg);
  width: clamp(340px, 40vw, 520px);
  height: clamp(340px, 40vw, 520px);
  opacity: 0.08;
  fill: var(--color-accent-700);
}

/* 3. HAJNAN: 遊 (Yóu - Taoistyczna Swobodna Wędrówka / Przygoda) */
.hajnan-calligraphy {
  left: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-3deg);
  width: clamp(360px, 42vw, 560px);
  height: clamp(360px, 42vw, 560px);
  opacity: 0.09;
  fill: #ffffff;
  mix-blend-mode: overlay;
}

/* 4. MISTRZOWIE: 師 (Shī - Mistrz / Przekaz Tradycji) */
.mistrzowie-calligraphy {
  right: 2%;
  top: 30%;
  transform: translateY(-20%) rotate(1deg);
  width: clamp(340px, 42vw, 540px);
  height: clamp(340px, 42vw, 540px);
  opacity: 0.07;
  fill: var(--color-accent-800);
}

/* 5. LEKCJE / KARUZELA: 練 (Liàn - Szlifowanie / Trening Technik) */
.lekcje-calligraphy {
  left: -20px;
  top: 52%;
  transform: translateY(-50%) rotate(-2deg);
  width: clamp(360px, 44vw, 580px);
  height: clamp(360px, 44vw, 580px);
  opacity: 0.08;
  fill: var(--color-accent-800);
}

/* 6. KALENDARZ: 序 (Xù - Porządek / Cykl / Terminy Praktyki) */
.kalendarz-calligraphy {
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(2deg);
  width: clamp(340px, 40vw, 520px);
  height: clamp(340px, 40vw, 520px);
  opacity: 0.08;
  fill: var(--color-accent-700);
}

/* 7. WIEDZA: 道 (Dào - Droga i Najwyższa Mądrość) */
.wiedza-calligraphy {
  left: 28%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(1deg);
  width: clamp(320px, 38vw, 460px);
  height: clamp(320px, 38vw, 460px);
  fill: var(--color-accent-800);
  opacity: 0.08;
}

/* 8. GALERIA: 眾 (Zhòng - Wspólnota / Ludzie Qigong) */
.galeria-calligraphy {
  right: 5%;
  top: 30%;
  transform: translateY(-20%) rotate(-1deg);
  width: clamp(340px, 42vw, 540px);
  height: clamp(340px, 42vw, 540px);
  opacity: 0.08;
  fill: var(--color-accent-800);
}

@media (max-width: 768px) {
  .hero-calligraphy, 
  .online-calligraphy,
  .hajnan-calligraphy,
  .mistrzowie-calligraphy,
  .lekcje-calligraphy,
  .kalendarz-calligraphy,
  .wiedza-calligraphy,
  .galeria-calligraphy {
    width: 280px;
    height: 280px;
    opacity: 0.06;
  }
}

/* Menu nawigacyjne WordPress */
.main-nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav-list a { 
  color: var(--color-text); 
  text-decoration: none; 
  font-size: 14px; 
  font-weight: 500;
  transition: color 0.2s; 
}
.main-nav-list a:hover { color: var(--color-accent); }

/* Polylang Switcher */
.lang-switcher-list { 
  display: flex; list-style: none; margin: 0; padding: 0; 
  border: 1px solid var(--color-divider); 
  border-radius: var(--radius-sm); 
  overflow: hidden; 
  background: rgba(255, 255, 255, 0.7); 
}
.lang-switcher-list li a { display: block; padding: 5px 10px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--color-text); }
.lang-switcher-list li.current-lang a { background: var(--color-accent); color: #ffffff; }

/* Kontenery i gridy szablonu */
.section-wrapper { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.two-col-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: center; }

/* Responsywność galerii */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 16px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}

/* ========================================================
   EFEKT ROZWINIĘTEGO ZWOJU (JEDWABNE PASSE-PARTOUT)
   ======================================================== */
.scroll-card {
  background-color: var(--color-card-bg);
  background-image: var(--bg-xuan-texture);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 33, 32, 0.09);
  outline: 1px solid rgba(28, 33, 32, 0.04);
  outline-offset: -5px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.28s ease, 
              border-color 0.28s ease, 
              outline-color 0.28s ease, 
              background-color 0.28s ease;
}
.scroll-card:hover {
  border-color: rgba(27, 77, 62, 0.35);
  outline-color: rgba(27, 77, 62, 0.16);
  box-shadow: var(--shadow-md);
}

/* ========================================================
   KARUZELA LEKCJI I PRAKTYK ZHINENG QIGONG
   ======================================================== */
.lessons-carousel-wrapper {
  position: relative;
  margin-top: 8px;
}
.lessons-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 14px 6px 28px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lessons-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Karta lekcji */
.lesson-card {
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  scroll-snap-align: start;
  background-color: #ffffff;
  background-image: var(--bg-xuan-texture);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid rgba(28, 33, 32, 0.08);
  outline: 1px solid rgba(28, 33, 32, 0.04);
  outline-offset: -5px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.28s ease, 
              border-color 0.28s ease, 
              outline-color 0.28s ease,
              background-color 0.28s ease;
  cursor: pointer;
}
.lesson-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
  outline-color: var(--color-accent-400);
  background-color: #ffffff;
}
.lesson-card:hover .lesson-card-link {
  color: var(--color-accent-light);
  transform: translateX(4px);
}
.lesson-card-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

@media (max-width: 1024px) {
  .lesson-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}
@media (max-width: 640px) {
  .lesson-card {
    flex: 0 0 85%;
  }
}

/* Przyciski nawigacyjne karuzeli */
.carousel-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-divider);
  background: #ffffff;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.carousel-nav-btn:hover:not(:disabled) {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.carousel-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========================================================
   SEKCJA KALENDARZA (Zharmonizowany zwojowy terminarz)
   ======================================================== */
.calendar-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid rgba(28, 33, 32, 0.08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.calendar-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.calendar-date-badge {
  flex: none;
  width: 68px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--color-celadon);
  border: 1px solid rgba(27, 77, 62, 0.16);
  text-align: center;
  font-family: var(--font-heading);
}
.calendar-date-badge .day {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
}
.calendar-date-badge .label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-700);
  margin-top: 4px;
}

/* ========================================================
   STYLIZACJA ARTYKUŁÓW I PODSTRON (.entry-content)
   ======================================================== */
.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 78ch;
}
.entry-content h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-neutral-900);
}
.entry-content h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--color-accent-700);
}
.entry-content p {
  margin-bottom: 20px;
}
.entry-content ul, .entry-content ol {
  padding-left: 28px;
  margin-bottom: 24px;
}
.entry-content li {
  margin-bottom: 8px;
}
.entry-content blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--color-accent);
  background: var(--color-celadon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 1.5;
  color: var(--color-accent-900);
  box-shadow: var(--shadow-sm);
}
.entry-content img {
  border-radius: var(--radius-md);
  margin: 28px auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(28, 33, 32, 0.08);
  height: auto;
}
.entry-content figure {
  margin: 30px 0;
}
.entry-content figcaption {
  font-size: 13px;
  text-align: center;
  opacity: 0.75;
  margin-top: 8px;
}
.entry-content a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}
.entry-content a:hover {
  color: var(--color-accent-light);
}


/* ========================================================
   HERO CROSSFADE SLIDESHOW (PĹ‚ynnie przenikajÄ…ce slajdy)
   ======================================================== */
.hero-slider-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* WskaĹşniki slajdĂłw (eleganckie kropki) */
.hero-slider-dots {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(28, 33, 32, 0.45);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}
.hero-slider-dot.active {
  width: 16px;
  border-radius: 4px;
  background: #ffffff;
}

/* ========================================================
   HAJNAN VIDEO FACADE & PLAYER (Kinowe okno zwoju)
   ======================================================== */
.hajnan-video-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: center;
  box-sizing: border-box;
}
.hajnan-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-lg);
}
.hajnan-video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease;
}
.hajnan-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hajnan-video-card:hover .hajnan-video-facade img {
  transform: scale(1.04);
}
.hajnan-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 45, 36, 0.2) 0%, rgba(15, 45, 36, 0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.hajnan-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-cinnabar);
  color: #ffffff;
  display: grid;
  place-items: center;
  margin: auto;
  box-shadow: 0 4px 20px rgba(179, 38, 30, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, box-shadow 0.25s ease;
  animation: qgPlayPulse 2.8s infinite;
}
.hajnan-video-card:hover .hajnan-play-btn {
  transform: scale(1.12);
  background: var(--color-cinnabar-hover);
  box-shadow: 0 6px 28px rgba(179, 38, 30, 0.8);
}
.hajnan-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(15, 45, 36, 0.85);
  backdrop-filter: blur(8px);
  color: var(--color-gold);
  border: 1px solid rgba(197, 160, 89, 0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.hajnan-video-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.hajnan-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

@keyframes qgPlayPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.7), 0 4px 20px rgba(179, 38, 30, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(179, 38, 30, 0), 0 6px 24px rgba(179, 38, 30, 0.8);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 38, 30, 0), 0 4px 20px rgba(179, 38, 30, 0.6);
  }
}

/* ==========================================================================
   CINEMATIC THEATER MODAL FOR HAJNAN VIDEO (PĹ‚ynne wejĹ›cie na caĹ‚y ekran)
   ========================================================================== */
.hajnan-cinema-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 15, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.hajnan-cinema-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hajnan-cinema-modal {
  position: relative;
  width: 100%;
  max-width: 1240px;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(197, 160, 89, 0.35);
  transform: scale(0.85) translateY(24px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hajnan-cinema-overlay.active .hajnan-cinema-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.hajnan-cinema-close {
  position: absolute;
  top: -48px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 45, 36, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--color-gold, #c5a059);
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hajnan-cinema-close:hover {
  background: var(--color-cinnabar, #b3261e);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
}

.hajnan-cinema-video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000000;
}

@media (max-width: 768px) {
  .hajnan-cinema-overlay {
    padding: 16px 10px;
  }
  .hajnan-cinema-close {
    top: 14px;
    right: 14px;
    position: fixed;
    background: rgba(4, 15, 12, 0.95);
  }
}

/* ==========================================================================
   HAJNAN MAP BADGE (Smaczek wizualny z mapkÄ… Chin)
   ========================================================================== */
.hajnan-visual-box {
  position: relative;
  max-width: 540px;
  width: 100%;
  justify-self: center;
  margin-top: 12px;
}

.hajnan-map-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(12, 38, 30, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-md, 8px);
  padding: 12px 18px 12px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 0 16px rgba(197, 160, 89, 0.08);
  margin-bottom: -24px;
  margin-left: auto;
  margin-right: -20px;
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 90%;
  animation: qgBadgeFloat 6s ease-in-out infinite alternate;
}

@keyframes qgBadgeFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

.hajnan-map-preview {
  width: 86px;
  height: 64px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hajnan-map-preview svg,
.hajnan-map-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.hajnan-map-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hajnan-map-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.hajnan-handwritten {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transform: rotate(-2deg);
  display: inline-block;
}

.hajnan-chinese {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: 26px;
  color: var(--color-gold, #c5a059);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.08em;
}

.hajnan-map-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-celadon, #8fa89b);
  font-weight: 600;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .hajnan-map-badge {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   WENCHANG GALLERY & LIGHTBOX (Klikalne zdjÄ™cia z powiÄ™kszeniem)
   ========================================================================== */
.wenchang-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .wenchang-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wenchang-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.wenchang-gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 6px;
  overflow: hidden;
  cursor: zoom-in;
  group: gallery;
}

.wenchang-gallery-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: var(--color-surface);
}

.wenchang-gallery-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wenchang-gallery-item:hover .wenchang-gallery-inner img {
  transform: scale(1.06);
}

.wenchang-gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, rgba(15, 45, 36, 0) 0%, rgba(15, 45, 36, 0.86) 100%);
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.wenchang-gallery-caption span {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.wenchang-zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 45, 36, 0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  opacity: 0.85;
  transition: transform 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.wenchang-gallery-item:hover .wenchang-zoom-icon {
  opacity: 1;
  background: var(--color-accent);
  transform: scale(1.1);
}

/* Lightbox Modal */
.qg-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 15, 12, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.qg-lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.qg-lightbox-stage {
  position: relative;
  max-width: min(1160px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qg-lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(197, 160, 89, 0.35);
  transform: scale(0.95);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.qg-lightbox-overlay.active .qg-lightbox-img {
  transform: scale(1);
}

.qg-lightbox-meta {
  margin-top: 14px;
  color: #ffffff;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.qg-lightbox-counter {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.qg-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 45, 36, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.qg-lightbox-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-gold);
  transform: translateY(-50%) scale(1.08);
}

.qg-lightbox-prev { left: 24px; }
.qg-lightbox-next { right: 24px; }

.qg-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 45, 36, 0.9);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--color-gold, #c5a059);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.qg-lightbox-close:hover {
  background: var(--color-cinnabar);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 768px) {
  .qg-lightbox-prev { left: 10px; width: 40px; height: 40px; }
  .qg-lightbox-next { right: 10px; width: 40px; height: 40px; }
  .qg-lightbox-close { top: 14px; right: 14px; }
}