/* Pest Digital Arena — Esports Media Portal */
:root {
  --bg: #070b10;
  --bg-elevated: #0d141c;
  --surface: #121a24;
  --surface-2: #182231;
  --border: rgba(120, 160, 190, 0.16);
  --border-strong: rgba(61, 255, 154, 0.35);
  --text: #eaf0f6;
  --text-muted: #93a4b5;
  --accent: #3dff9a;
  --accent-dim: rgba(61, 255, 154, 0.12);
  --cyan: #2ecbff;
  --amber: #ffc857;
  --danger: #ff6b7a;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 4px;
  --max: 1180px;
  --header-h: 72px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --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);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

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

ul {
  list-style: none;
}

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

/* Atmosphere */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(46, 203, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(61, 255, 154, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(255, 200, 87, 0.05), transparent 55%),
    var(--bg);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 190, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 190, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #041018;
  font-weight: 800;
  font-size: 0.8rem;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}

.logo span {
  display: none;
}

@media (min-width: 480px) {
  .logo span {
    display: inline;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 16, 24, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0 1.25rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border: 1.5px solid var(--amber);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(260px, 38vh, 380px);
  display: grid;
  align-items: end;
  padding: 2rem 0 2.25rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a1624;
  pointer-events: none;
}

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

.hero-media img {
  object-fit: cover;
  object-position: center 35%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 11, 16, 0.35) 0%, rgba(7, 11, 16, 0.55) 40%, rgba(7, 11, 16, 0.96) 100%),
    linear-gradient(120deg, rgba(7, 11, 16, 0.72), transparent 55%),
    radial-gradient(circle at 70% 35%, rgba(61, 255, 154, 0.12), transparent 35%),
    radial-gradient(circle at 30% 55%, rgba(46, 203, 255, 0.08), transparent 40%);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

@keyframes pulseGlow {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.65rem;
  max-width: 14ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 36ch;
  margin-bottom: 0.55rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.btn-primary:hover {
  background: #6affb2;
  color: #041018;
}

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

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

/* Critical notice */
.critical-notice {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 0.95rem;
}

.critical-notice strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-head h2,
.page-title,
.article-block h2,
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-muted);
  max-width: 48ch;
  margin-top: 0.5rem;
}

/* Featured event */
.featured-event {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (min-width: 900px) {
  .featured-event {
    grid-template-columns: 1.1fr 1fr;
  }
}

.featured-visual {
  position: relative;
  min-height: 280px;
  background: #0a1624;
  overflow: hidden;
}

.featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 11, 16, 0.15), rgba(7, 11, 16, 0.72));
  pointer-events: none;
}

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

.featured-visual img {
  object-fit: cover;
}

.featured-body {
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.badge-upcoming {
  background: rgba(46, 203, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(46, 203, 255, 0.35);
}

.badge-review {
  background: rgba(61, 255, 154, 0.12);
  color: var(--accent);
  border-color: rgba(61, 255, 154, 0.35);
}

.badge-offline {
  background: rgba(255, 200, 87, 0.1);
  color: var(--amber);
  border-color: rgba(255, 200, 87, 0.3);
}

.featured-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.event-facts {
  display: grid;
  gap: 0.75rem;
}

.event-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.event-facts dd {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

/* Cards / lists — editorial list, not heavy card UI for hero; interaction list OK */
.event-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .event-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .event-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-item,
.review-item {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.event-item:hover,
.review-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.event-item-visual,
.review-item-visual {
  height: 160px;
  background: #0a1624;
  position: relative;
  overflow: hidden;
}

.event-item-visual picture,
.review-item-visual picture,
.event-item-visual img,
.review-item-visual img {
  width: 100%;
  height: 100%;
}

.event-item-visual img,
.review-item-visual img {
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.event-item:hover img,
.review-item:hover img {
  transform: scale(1.04);
}

.event-item-visual::after,
.review-item-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 11, 16, 0.85));
  pointer-events: none;
}

.event-item-body,
.review-item-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.event-item h3,
.review-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0.65rem 0 0.5rem;
  line-height: 1.25;
}

.event-item p,
.review-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.item-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Analysis */
.analysis-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.analysis-block {
  padding: 1.5rem;
  border-top: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(61, 255, 154, 0.06), transparent 40%), var(--surface);
}

.analysis-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.analysis-block p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.analysis-block ul {
  display: grid;
  gap: 0.45rem;
}

.analysis-block li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.analysis-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

/* Calendar table */
.calendar-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--surface);
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.calendar-table th,
.calendar-table td {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.calendar-table th {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
}

.calendar-table tr:last-child td {
  border-bottom: none;
}

.calendar-table tr:hover td {
  background: rgba(61, 255, 154, 0.04);
}

/* Disclaimer / responsible */
.disclaimer-panel {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.disclaimer-panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.disclaimer-panel p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}

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

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(46, 203, 255, 0.1), transparent 55%),
    transparent;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 55ch;
  margin-top: 0.85rem;
}

.prose {
  padding: 3rem 0 4.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

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

.prose ul {
  margin: 0 0 1rem 1.1rem;
  list-style: disc;
}

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

.contact-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-item {
  padding: 1.25rem;
  background: var(--surface);
  border-top: 2px solid var(--cyan);
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #05080c;
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  margin-bottom: 0.65rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 40ch;
}

.footer-title {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-plaques {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0 1.5rem;
}

@media (min-width: 800px) {
  .footer-plaques {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .footer-plaques {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plaque {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.plaque small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.72rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: riseIn 0.45s var(--ease);
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
