/* HungaroGamer Central — Esports Media Portal */

:root {
  --bg-deep: #070b10;
  --bg-base: #0c1219;
  --bg-elevated: #141c27;
  --bg-soft: #1a2433;
  --line: rgba(160, 190, 220, 0.14);
  --line-strong: rgba(160, 190, 220, 0.28);
  --text: #e8eef6;
  --text-muted: #9aabc0;
  --text-dim: #6d7f95;
  --accent: #3ddea8;
  --accent-dim: rgba(61, 222, 168, 0.14);
  --accent-glow: rgba(61, 222, 168, 0.35);
  --amber: #f0b429;
  --amber-dim: rgba(240, 180, 41, 0.16);
  --sky: #5eb0ff;
  --danger-soft: #ff7b72;
  --radius: 4px;
  --font-display: "Oxanium", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #7aefc4;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Atmosphere —— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 55% at 80% -10%, rgba(61, 222, 168, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at -10% 30%, rgba(94, 176, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0a1018 0%, var(--bg-deep) 40%, #080c11 100%);
  pointer-events: none;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 190, 220, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 220, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 70%);
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #1aa87a);
  color: #04120d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-text span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 520;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0e1620;
}

.hero-visual picture,
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual img {
  object-fit: cover;
  object-position: center 40%;
  animation: heroPulse 14s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 11, 16, 0.94) 26%, rgba(7, 11, 16, 0.58) 55%, rgba(7, 11, 16, 0.32) 100%),
    linear-gradient(0deg, var(--bg-deep) 0%, transparent 48%);
  pointer-events: none;
}

@keyframes heroPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.hero-content {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2rem, 4.5vw, 3rem);
  max-width: 640px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.1s forwards;
}

.hero-brand em {
  font-style: normal;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 550;
  color: var(--text);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.25s forwards;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 38ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.55s forwards;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04120d;
}

.btn-primary:hover {
  background: #7aefc4;
  color: #04120d;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* —— Sections —— */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  margin-bottom: 0.65rem;
}

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

/* —— Critical notice —— */
.critical-notice {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent-dim), transparent 70%);
  padding: 1.35rem 0;
}

.critical-notice p {
  font-size: 0.95rem;
  color: var(--text);
  max-width: 70rem;
}

/* —— Featured event —— */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.featured-media {
  position: relative;
  min-height: 280px;
  aspect-ratio: 3 / 2;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}

.featured-media picture,
.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-media img {
  object-fit: cover;
  object-position: center;
}

.analysis-thumb {
  margin: 0 0 1rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.analysis-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border: 1px solid transparent;
}

.badge-upcoming {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(240, 180, 41, 0.35);
}

.badge-review {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(61, 222, 168, 0.35);
}

.badge-age {
  background: rgba(255, 123, 114, 0.12);
  color: var(--danger-soft);
  border-color: rgba(255, 123, 114, 0.35);
  font-weight: 700;
  text-decoration: none;
}

.badge-age:hover {
  color: #ff9a93;
}

.featured h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.event-facts {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.event-facts dt {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.event-facts dd {
  color: var(--text);
  font-size: 1.02rem;
}

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

/* —— Listing grids —— */
.listing {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.listing-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}

.listing-item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.listing-date {
  font-family: var(--font-display);
  min-width: 4.5rem;
}

.listing-date .day {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.listing-date .month {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.listing-body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.listing-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.listing-loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.listing-status {
  align-self: center;
}

/* —— Review / analysis blocks —— */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.analysis-block {
  padding: 1.5rem 0;
  border-top: 2px solid var(--accent);
}

.analysis-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.analysis-block p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

/* —— Calendar —— */
.calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.calendar-card {
  background: var(--bg-base);
  padding: 1.25rem 1.15rem;
  transition: background 0.2s;
}

.calendar-card:hover {
  background: var(--bg-elevated);
}

.calendar-card .month-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.calendar-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.calendar-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.calendar-card .when {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* —— Responsible block —— */
.responsible {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.responsible h2 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.responsible p {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.resource-links a {
  font-size: 0.9rem;
  font-weight: 520;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42rem;
  font-size: 1.05rem;
}

/* —— Prose / legal —— */
.prose {
  padding: 2.5rem 0 3.5rem;
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.55rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.prose ul {
  padding-left: 1.15rem;
  margin-bottom: 1rem;
}

.prose ul li {
  list-style: disc;
}

.prose a {
  word-break: break-word;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.contact-item h3 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
}

.contact-item p,
.contact-item a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-item a:hover {
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  background: #06090e;
  padding: 2.5rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-plaques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.plaque {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.9rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--text-muted);
  text-align: center;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .logo-text {
  display: block;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 28ch;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.35rem;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-age-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* —— Cookie bar —— */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, 640px);
  z-index: 200;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  padding: 1rem 1.15rem;
  display: none;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-bar p {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-bar .btn {
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .calendar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-plaques {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(7, 11, 16, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .listing-item {
    grid-template-columns: auto 1fr;
  }

  .listing-status {
    grid-column: 2;
    justify-self: start;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
  }

  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .calendar {
    grid-template-columns: 1fr;
  }

  .footer-plaques {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-visual img {
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    opacity: 1;
  }
}
