
/*
 * Henryx Mikulás Város – Christmas Atmosphere Enhancement v1.4
 * Loaded after the original theme. The original rich page designs remain intact;
 * this file only adds global ambience, responsive safety, accessibility and polish.
 */
:root {
  --hx-gold: #ffd45a;
  --hx-gold-bright: #fff0a5;
  --hx-red: #c91436;
  --hx-deep-red: #670014;
  --hx-green: #176b38;
  --hx-grinch: #6bcf2d;
  --hx-deep-green: #071d13;
  --hx-night: #020a0b;
  --hx-cream: #fff6dc;
  --hx-glow: 0 0 18px rgba(255, 222, 92, .45);
}

/* Richer, slightly mischievous green Christmas background on every route. */
html {
  background: var(--hx-night);
}
body {
  background:
    radial-gradient(circle at 12% 9%, rgba(105, 207, 45, .20) 0 0, transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(201, 20, 54, .18) 0 0, transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(255, 202, 52, .10) 0 0, transparent 32%),
    linear-gradient(145deg, #04150d 0%, #0b3521 30%, #071b14 58%, #2b0710 82%, #05090a 100%) !important;
  background-attachment: fixed !important;
  color: #fff;
  isolation: isolate;
}

/* Soft tartan/candy-cane texture without external assets. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.018) 0 1px,
      transparent 1px 24px),
    repeating-linear-gradient(-45deg,
      rgba(107,207,45,.018) 0 1px,
      transparent 1px 32px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

/* Ambient aurora movement behind the content. */
body::after {
  content: "";
  position: fixed;
  inset: -18vh -15vw;
  z-index: -2;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(111, 220, 45, .13), transparent 30%),
    radial-gradient(ellipse at 78% 45%, rgba(214, 25, 55, .10), transparent 34%),
    radial-gradient(ellipse at 55% 78%, rgba(255, 213, 74, .08), transparent 26%);
  filter: blur(28px);
  animation: hxAurora 18s ease-in-out infinite alternate;
}
@keyframes hxAurora {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-.5%, 2%, 0) scale(1.02); }
}

/* Christmas typography stays playful: preserve Pacifico and strengthen key headings. */
.hero-title,
.hero-subtitle,
.section-title,
.programs-title,
.tickets-title,
.gallery-title,
.faq-title,
.restaurant-title,
.contact-title,
.privacy-title,
.carousel-title,
.gift-shop-title,
.cta-title,
.logo {
  font-family: "Pacifico", cursive !important;
}
.hero-title,
.section-title,
.programs-title,
.tickets-title,
.gallery-title,
.faq-title,
.restaurant-title,
.contact-title,
.privacy-title {
  text-wrap: balance;
}

/* Warm gold glint around major cards without flattening their original visual identity. */
.feature-card,
.program-card,
.ticket-card,
.info-card,
.faq-item,
.privacy-section,
.contact-card,
.contact-form-container,
.menu-item,
.dollar-banner,
.carousel-spotlight,
.gift-shop-spotlight {
  position: relative;
}
.feature-card::after,
.program-card::after,
.ticket-card::after,
.info-card::after,
.faq-item::after,
.privacy-section::after,
.menu-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 229, 135, .08);
}

/* Animated shine for meaningful interactive cards and buttons. */
.hero-btn,
.ticket-btn,
.cta-button,
.newsletter-form button,
.cookie-btn,
.cookie-modal-btn,
.submit-btn,
button.menu-tab {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-btn::after,
.ticket-btn::after,
.cta-button::after,
.newsletter-form button::after,
.submit-btn::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -38%;
  width: 24%;
  height: 260%;
  pointer-events: none;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
  animation: hxButtonGlint 5.5s ease-in-out infinite;
}
@keyframes hxButtonGlint {
  0%, 68% { left: -38%; opacity: 0; }
  73% { opacity: .9; }
  86% { left: 125%; opacity: .8; }
  100% { left: 125%; opacity: 0; }
}

/* Program spotlight sections should feel special, never like ordinary cards. */
.carousel-spotlight {
  outline: 1px solid rgba(255, 240, 165, .2);
  box-shadow:
    0 28px 75px rgba(0,0,0,.45),
    0 0 70px rgba(255, 215, 0, .18),
    0 0 34px rgba(107,207,45,.12) !important;
}
.gift-shop-spotlight {
  outline: 1px solid rgba(255, 240, 165, .22);
  box-shadow:
    0 26px 70px rgba(0,0,0,.42),
    0 0 68px rgba(255,215,0,.18),
    0 0 26px rgba(201,20,54,.14) !important;
}
.carousel-spotlight::before,
.gift-shop-spotlight::before {
  content: "✦  ✧  ✦";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 16px 6px;
  border-radius: 999px;
  color: var(--hx-gold-bright);
  background: linear-gradient(135deg, rgba(16,67,35,.96), rgba(104,0,20,.96));
  border: 1px solid rgba(255,215,0,.55);
  box-shadow: var(--hx-glow);
  letter-spacing: .35em;
  z-index: 8;
  white-space: nowrap;
}

/* Henryx Dollar – preserve the banknote's actual aspect ratio at every breakpoint. */
.dollar-image {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  height: auto !important;
  aspect-ratio: auto !important;
}
.dollar-image img,
img[src*="mikulas_dollar"] {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Restore festive footer presence and make the original HonlapTér/counter area feel intentional. */
footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,215,0,.42) !important;
  background:
    radial-gradient(circle at 8% 15%, rgba(107,207,45,.18), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(201,20,54,.18), transparent 28%),
    linear-gradient(180deg, rgba(3,29,17,.98), rgba(2,11,10,.99)) !important;
  box-shadow: 0 -18px 50px rgba(0,0,0,.30), 0 -1px 28px rgba(255,215,0,.08);
}
footer::before {
  content: "🎄  ✨  🎁  🔔  ⭐  🎅  ⭐  🔔  🎁  ✨  🎄";
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 14px 20px 8px;
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  letter-spacing: clamp(.15rem, 1.2vw, .9rem);
  white-space: nowrap;
  opacity: .92;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.55));
  animation: hxGarlandGlow 3.5s ease-in-out infinite alternate;
}
@keyframes hxGarlandGlow {
  from { opacity: .65; filter: drop-shadow(0 0 4px rgba(255,215,0,.32)); }
  to { opacity: 1; filter: drop-shadow(0 0 12px rgba(255,215,0,.75)); }
}
footer .christmas-lights {
  filter: drop-shadow(0 0 9px rgba(255,215,0,.65));
}
footer .footer-content,
footer .footer-bottom {
  position: relative;
  z-index: 2;
}
footer img[alt*="HonlapTér"] {
  max-width: min(190px, 58vw);
  height: auto !important;
  transition: transform .3s ease, filter .3s ease;
}
footer a:hover img[alt*="HonlapTér"] {
  transform: translateY(-2px) scale(1.035);
  filter: drop-shadow(0 4px 12px rgba(255,215,0,.35)) !important;
}

/* Global decorative layers created by christmas-enhanced.js */
#hx-ambience,
#hx-sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
#hx-ambience { z-index: 4; }
#hx-sparkle-layer { z-index: 1001; }
.hx-floating-decor {
  position: absolute;
  opacity: .22;
  user-select: none;
  filter: drop-shadow(0 0 8px rgba(255,215,0,.28));
  animation: hxDecorFloat var(--hx-duration, 9s) ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
@keyframes hxDecorFloat {
  0% { transform: translate3d(0, 0, 0) rotate(var(--hx-rot, -5deg)); }
  50% { transform: translate3d(var(--hx-drift, 12px), -18px, 0) rotate(7deg); }
  100% { transform: translate3d(calc(var(--hx-drift, 12px) * -.6), 8px, 0) rotate(-3deg); }
}
.hx-spark {
  position: absolute;
  width: var(--hx-size, 7px);
  height: var(--hx-size, 7px);
  opacity: 0;
  transform: rotate(45deg) scale(.25);
  background: #fff6b8;
  box-shadow:
    0 0 7px #fff,
    0 0 14px rgba(255,215,0,.95),
    0 0 24px rgba(107,207,45,.35);
  animation: hxSpark var(--hx-speed, 2.6s) ease-in-out infinite;
  animation-delay: var(--hx-delay, 0s);
}
.hx-spark::before,
.hx-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  box-shadow: inherit;
}
.hx-spark::before { transform: rotate(45deg); }
.hx-spark::after { transform: rotate(90deg); }
@keyframes hxSpark {
  0%, 100% { opacity: 0; transform: rotate(45deg) scale(.15); }
  45% { opacity: .12; }
  52% { opacity: 1; transform: rotate(45deg) scale(1); }
  65% { opacity: .28; }
}

/* One-off star pop, created randomly to keep the page alive. */
.hx-star-pop {
  position: fixed;
  z-index: 1002;
  pointer-events: none;
  color: #fff4a6;
  font-size: var(--hx-pop-size, 18px);
  text-shadow: 0 0 8px #fff, 0 0 17px #ffd700, 0 0 28px rgba(107,207,45,.58);
  animation: hxStarPop .95s ease-out forwards;
}
@keyframes hxStarPop {
  0% { opacity: 0; transform: scale(.15) rotate(-20deg); }
  35% { opacity: 1; transform: scale(1.28) rotate(6deg); }
  100% { opacity: 0; transform: scale(.42) rotate(28deg) translateY(-14px); }
}

/* Optional reveal is added only after JS loads, so no-JS content is always visible. */
.hx-reveal {
  opacity: 0;
  transform: translateY(20px) scale(.985);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1);
}
.hx-reveal.hx-visible {
  opacity: 1;
  transform: none;
}

/* Christmas focus ring, keyboard-first. */
:focus-visible {
  outline: 3px solid var(--hx-gold) !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 5px rgba(23,107,56,.55), 0 0 20px rgba(255,212,90,.48) !important;
}

/* Prevent long translated words/URLs from causing mobile overflow. */
#main-content,
footer,
.privacy-section,
.contact-container,
.ticket-container,
.programs-container,
.restaurant-container,
.gallery-container,
.faq-container {
  overflow-wrap: anywhere;
}
img, video, iframe, svg {
  max-width: 100%;
}

/* Keep all touch targets comfortable. */
button,
.hero-btn,
.ticket-btn,
.cta-button,
nav a,
.footer-links a,
.menu-tab {
  min-height: 44px;
}

/* Mobile-specific polish. */
@media (max-width: 767px) {
  body {
    background-attachment: scroll !important;
  }
  .hx-floating-decor {
    opacity: .13;
    transform: scale(.8);
  }
  footer::before {
    letter-spacing: .13rem;
    overflow: hidden;
  }
  .carousel-spotlight,
  .gift-shop-spotlight {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  .dollar-banner {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

/* Respect accessibility preferences while retaining a decorated static Christmas scene. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  #snowfall-container,
  #hx-sparkle-layer {
    display: none !important;
  }
  .hx-floating-decor {
    animation: none !important;
  }
}

/* Site-styled notifications replace browser alert(). */
#hx-toast-region {
  position: fixed;
  z-index: 2500;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.hx-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border: 1px solid rgba(255,215,0,.5);
  border-radius: 18px;
  color: #fff8e4;
  background:
    radial-gradient(circle at 0 0, rgba(107,207,45,.20), transparent 35%),
    linear-gradient(145deg, rgba(8,50,29,.97), rgba(52,4,14,.97));
  box-shadow: 0 18px 48px rgba(0,0,0,.42), 0 0 24px rgba(255,215,0,.12);
  backdrop-filter: blur(18px);
  animation: hxToastIn .38s cubic-bezier(.2,.8,.2,1);
}
.hx-toast-icon { font-size: 1.5rem; line-height: 1; }
.hx-toast-message { font: 700 .96rem/1.45 "Nunito", sans-serif; white-space: pre-line; }
.hx-toast-close {
  border: 0;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 1.15rem;
}
.hx-toast.hx-leaving { animation: hxToastOut .28s ease forwards; }
@keyframes hxToastIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes hxToastOut {
  to { opacity: 0; transform: translateY(10px) scale(.97); }
}
@media (max-width: 560px) {
  #hx-toast-region {
    right: 16px;
    left: 16px;
    width: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* Normalize the semantic mobile menu button against browser defaults. */
button.hamburger {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

/* Photographic preview on Programs: keeps the page visually rich before the game cards. */
.program-photo-showcase {
  max-width: 1180px;
  margin: 10px auto 34px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.program-photo {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 20px;
  border: 2px solid rgba(255,215,0,.38);
  background: rgba(0,0,0,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
  isolation: isolate;
}
.program-photo:nth-child(2),
.program-photo:nth-child(4) { transform: translateY(10px); }
.program-photo img {
  width: 100%;
  height: 100% !important;
  min-height: 190px;
  object-fit: cover !important;
  display: block;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .45s ease;
  filter: saturate(1.08) contrast(1.04);
}
.program-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(2,12,8,.92), rgba(2,12,8,.06) 60%);
  pointer-events: none;
}
.program-photo span {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff8df;
  font: 700 .95rem/1.25 "Nunito", sans-serif;
  text-shadow: 0 2px 8px #000;
}
.program-photo:hover img { transform: scale(1.07); filter: saturate(1.22) contrast(1.07); }
.program-photo:hover { border-color: rgba(255,225,110,.78); box-shadow: 0 16px 34px rgba(0,0,0,.38), 0 0 24px rgba(255,215,0,.12); }

@media (max-width: 1000px) {
  .program-photo-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .program-photo:nth-child(2),
  .program-photo:nth-child(4) { transform: none; }
}
@media (max-width: 620px) {
  .program-photo-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 10px;
  }
  .program-photo { min-height: 150px; }
  .program-photo img { min-height: 150px; }
  .program-photo:last-child { grid-column: 1 / -1; min-height: 180px; }
}

/* Bot honeypot: not a browser-hidden input, but completely outside the visual/focus flow. */
.hx-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* v1.5 responsive safety: preserve the rich original layout without horizontal scrolling. */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
#main-content {
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}
img, picture, video, canvas, svg {
  max-width: 100%;
}
img {
  height: auto;
}
.feature-card,
.program-card,
.ticket-card,
.info-card,
.menu-item,
.contact-card,
.contact-form-container,
.privacy-section {
  min-width: 0 !important;
}
.program-title,
.feature-title,
.ticket-title,
.menu-item h3,
.faq-question,
.contact-title,
.privacy-title {
  overflow-wrap: anywhere;
  word-break: normal;
}
@media (max-width: 600px) {
  .feature-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .hero-btn,
  .cta-button,
  .ticket-btn {
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: normal !important;
  }
  .carousel-spotlight,
  .gift-shop-spotlight {
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
  .carousel-content,
  .gift-shop-content {
    min-width: 0 !important;
  }
  .program-card-header,
  .program-card-body {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .restaurant-section,
  .contact-section,
  .tickets-section,
  .programs-section,
  .privacy-section,
  .faq-section,
  .gallery-section {
    max-width: 100% !important;
  }
  .restaurant-container,
  .contact-container,
  .tickets-container,
  .programs-container,
  .privacy-container,
  .faq-container,
  .gallery-container {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Snow layer safety: gusts must never change document/viewport geometry. */
#snowfall-container {
  overflow: hidden !important;
  overflow: clip !important;
  contain: paint;
  max-width: 100vw;
  max-height: 100vh;
}

#snowfall-container .snowflake {
  transform-origin: center;
}
