@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --accent: #22c55e;
  --bg: #0d0a1a;
  --surface: #17122b;
  --surface-2: #1f1840;
  --text: #f1eefc;
  --muted: #9d95c9;
  --border: #3a2f6b;
  --shadow: #000;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    linear-gradient(var(--surface-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-2) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'VT323', ui-monospace, monospace;
  font-size: 20px;
  line-height: 1.5;
}
h1, h2, h3, .site-logo, .btn { font-family: 'Press Start 2P', ui-monospace, monospace; }
a { color: var(--accent); }
img { max-width: 100%; display: block; image-rendering: pixelated; }

.site-header {
  border-bottom: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 4px 0 var(--shadow);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-logo { font-size: 1rem; text-decoration: none; color: var(--text); line-height: 1.4; }
.site-logo img { max-height: 40px; }

.menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.menu-item { position: relative; }
.menu-item > a { text-decoration: none; color: var(--text); font-size: 1.15rem; }
.menu-item > a:hover { color: var(--accent); }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--surface); border: 3px solid var(--border); list-style: none; margin: 6px 0 0; padding: 6px 0; z-index: 10;
}
.menu-item.has-children:hover .submenu,
.menu-item.has-children.open .submenu { display: block; }
.submenu li a { display: block; padding: 8px 14px; text-decoration: none; color: var(--text); }
.submenu li a:hover { background: var(--surface-2); }

.page-title-bar { max-width: 900px; margin: 50px auto 0; padding: 0 20px; }
.page-title-bar h1 { font-size: 1.4rem; }

.block { padding: 50px 20px; }
.block-inner { max-width: 900px; margin: 0 auto; }
.align-center { text-align: center; }
.align-right { text-align: right; }

.block-hero {
  background: var(--surface);
  border-bottom: 4px solid var(--border);
  position: relative;
}
.block-hero h1 {
  font-size: 2rem; margin: 0 0 22px; color: var(--accent);
  text-shadow: 4px 4px 0 var(--shadow);
  line-height: 1.5;
}
.hero-subtitle { color: var(--muted); font-size: 1.4rem; max-width: 640px; margin: 0 auto; }
.block-hero.align-center .hero-subtitle { margin-left: auto; margin-right: auto; }

.block-text { font-size: 1.2rem; }
.block-text h2, .block-text h3 { color: var(--accent); }
.prose img { margin: 20px auto; border: 4px solid var(--border); }

.btn {
  display: inline-block; padding: 14px 24px; margin-top: 22px;
  background: var(--surface-2); color: var(--text); text-decoration: none;
  border: 3px solid var(--accent); box-shadow: 5px 5px 0 var(--shadow);
  font-size: 0.85rem; line-height: 1.6; transition: transform .05s, box-shadow .05s;
}
.btn:hover { color: var(--accent); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-primary { background: var(--accent); color: #06240f; border-color: #06240f; }
.btn-primary:hover { color: #06240f; filter: brightness(1.1); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-item { border: 4px solid var(--border); box-shadow: 4px 4px 0 var(--shadow); }
.gallery-item img { margin: 0; }

.error-page { max-width: 600px; margin: 90px auto; text-align: center; padding: 0 20px; }
.error-page h1 { font-size: 4.5rem; color: var(--accent); margin: 0 0 20px; text-shadow: 6px 6px 0 var(--shadow); }

.site-footer { border-top: 4px solid var(--border); margin-top: 40px; background: var(--surface); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 30px 20px; color: var(--muted); text-align: center; font-size: 1.15rem; }
.footer-menu { justify-content: center; margin-bottom: 14px; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .block-hero h1 { font-size: 1.4rem; }
}

/* --- Evszakos pixel-dekoracio --- */
#pixel-seasonal { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.pixel-particle { position: absolute; image-rendering: pixelated; will-change: transform; }
.pixel-hover-decor {
  position: absolute; pointer-events: none; image-rendering: pixelated; z-index: 5;
  animation: pixel-pop .35s ease-out;
}
.seasonal-corner-sun {
  position: fixed; top: 16px; right: 16px; width: 56px; height: 56px;
  image-rendering: pixelated; z-index: 9999; pointer-events: none;
  animation: pixel-pulse 2.4s ease-in-out infinite;
}
@keyframes pixel-fall { from { transform: translateY(0); } to { transform: translateY(115vh); } }
@keyframes pixel-rise { from { transform: translateY(0); } to { transform: translateY(-115vh); } }
@keyframes pixel-fly {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(24vw, -30px); }
  40%  { transform: translate(48vw, 20px); }
  60%  { transform: translate(72vw, -25px); }
  80%  { transform: translate(96vw, 15px); }
  100% { transform: translate(120vw, 0); }
}
@keyframes pixel-sway { from { margin-left: -12px; } to { margin-left: 12px; } }
@keyframes pixel-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px #fbbf24); transform: scale(1); }
  50% { filter: drop-shadow(0 0 12px #fbbf24); transform: scale(1.08); }
}
@keyframes pixel-pop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pixel-particle, .pixel-hover-decor, .seasonal-corner-sun, #pixel-seasonal { display: none !important; }
}
