/* Budapest Card League — Offline póker média platform */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Figtree:wght@400;500;600;700&display=swap");

:root {
  --bg-deep: #0a1628;
  --bg-mid: #12243a;
  --bg-elevated: #1a3050;
  --felt: #0d6b4c;
  --felt-bright: #14a078;
  --gold: #d4a84b;
  --gold-soft: #e8c97a;
  --ink: #f2f5f8;
  --ink-muted: #9aafc4;
  --ink-dim: #6b8299;
  --line: rgba(212, 168, 75, 0.22);
  --danger: #c44b4b;
  --radius: 4px;
  --font-display: "Barlow Condensed", 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(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 107, 76, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(212, 168, 75, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0d1c30 45%, var(--bg-deep) 100%);
  pointer-events: none;
}

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

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

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}

.logo span {
  color: var(--felt-bright);
}

.logo-sub {
  display: none;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-left: 0.5rem;
}

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

.nav-toggle {
  position: relative;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.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);
}

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100%, 320px);
  height: 100dvh;
  max-height: 100vh;
  background: var(--bg-mid);
  padding: calc(var(--header-h) + 1.5rem) 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 110;
  display: flex;
  flex-direction: column;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid rgba(154, 175, 196, 0.12);
}

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

.nav-age {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.age-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.age-link:hover {
  color: var(--gold-soft);
}

@media (min-width: 900px) and (max-width: 1100px) {
  .age-text {
    display: none;
  }
}

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

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    background: none;
    padding: 0;
    transform: none;
    border: none;
    overflow: visible;
    z-index: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
    border: none;
  }

  .nav-age {
    margin-top: 0;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
    white-space: nowrap;
  }
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bg-deep);
  background: var(--gold);
  border-radius: 2px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 2rem 0 2.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 2.5rem 0 2.75rem;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.7) 55%, rgba(10, 22, 40, 0.4) 100%),
    linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  animation: fadeUp 0.9s var(--ease) both;
}

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

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

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

.hero-headline {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--felt);
  color: var(--ink);
  border-color: var(--felt-bright);
}

.btn-primary:hover {
  background: var(--felt-bright);
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(242, 245, 248, 0.35);
}

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

/* —— Badges —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-upcoming {
  background: rgba(212, 168, 75, 0.18);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 168, 75, 0.45);
}

.badge-stream {
  background: rgba(20, 160, 120, 0.18);
  color: var(--felt-bright);
  border: 1px solid rgba(20, 160, 120, 0.4);
}

.badge-upcoming::before,
.badge-stream::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 1.6s ease infinite;
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* —— Featured event strip —— */
.featured-event {
  padding: 0 0 4rem;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.featured-card {
  display: grid;
  gap: 0;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-mid) 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  animation: fadeUp 1s 0.2s var(--ease) both;
}

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

.featured-visual {
  position: relative;
  min-height: 240px;
  background: var(--bg-deep);
}

.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 36, 58, 0.7), transparent 50%);
}

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

@media (min-width: 768px) {
  .featured-body {
    padding: 2rem 2.25rem;
  }
}

.featured-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.event-meta {
  display: grid;
  gap: 0.65rem;
}

.meta-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.meta-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.meta-value {
  color: var(--ink);
  font-weight: 500;
}

.flag {
  display: inline-block;
  margin-right: 0.35rem;
  font-style: normal;
}

/* —— Countdown —— */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.countdown-unit {
  text-align: center;
  padding: 0.75rem 0.35rem;
  background: rgba(10, 22, 40, 0.55);
  border: 1px solid rgba(154, 175, 196, 0.15);
  border-radius: var(--radius);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 0.25rem;
}

/* —— Info notice (mandatory HU block) —— */
.info-notice {
  margin: 2.5rem 0;
  padding: 1.25rem 1.35rem;
  background: rgba(20, 160, 120, 0.08);
  border-left: 3px solid var(--felt-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-notice p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

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

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

.section-header {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.section-alt {
  background: rgba(18, 36, 58, 0.45);
  border-block: 1px solid rgba(154, 175, 196, 0.08);
}

/* —— Calendar / event list —— */
.event-list {
  display: grid;
  gap: 0.75rem;
}

.event-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: rgba(26, 48, 80, 0.4);
  border: 1px solid rgba(154, 175, 196, 0.12);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s;
}

.event-row:hover {
  border-color: rgba(212, 168, 75, 0.4);
  background: rgba(26, 48, 80, 0.65);
}

@media (min-width: 700px) {
  .event-row {
    grid-template-columns: 7rem 1fr auto;
    gap: 1.25rem;
  }
}

.event-date {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1.1;
}

.event-date small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}

.event-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.event-info p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.event-row .badge {
  justify-self: start;
}

@media (min-width: 700px) {
  .event-row .badge {
    justify-self: end;
  }
}

.event-row a.event-link {
  color: inherit;
  display: contents;
}

/* —— Structure / content blocks —— */
.structure-grid {
  display: grid;
  gap: 1.5rem;
}

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

.structure-item {
  padding: 1.5rem 0;
  border-top: 2px solid var(--felt);
}

.structure-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--gold-soft);
}

.structure-item p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.prose {
  max-width: 42rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2rem 0 0.75rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  text-transform: none;
  color: var(--gold-soft);
}

.prose ul {
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
  color: var(--ink-muted);
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Responsible gaming —— */
.rg-block {
  padding: 2rem 1.5rem;
  background: rgba(196, 75, 75, 0.08);
  border: 1px solid rgba(196, 75, 75, 0.28);
  border-radius: 6px;
}

.rg-block h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.rg-block p {
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.rg-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.rg-links a {
  font-weight: 600;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(154, 175, 196, 0.1);
}

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

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

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

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

.contact-item h3 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}

.contact-item p,
.contact-item a {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

/* —— Footer —— */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: #060e18;
  border-top: 1px solid var(--line);
}

.footer-plaques {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

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

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

.plaque {
  padding: 1rem 1.1rem;
  background: rgba(26, 48, 80, 0.5);
  border: 1px solid rgba(154, 175, 196, 0.15);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
}

.plaque strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}

.footer-main {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(154, 175, 196, 0.12);
}

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

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

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

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  margin-bottom: 0.85rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

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

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

.footer-rg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.footer-rg a {
  font-weight: 600;
  color: var(--ink-muted);
}

/* —— Cookie bar —— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-bar.is-visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-inner p {
  flex: 1 1 16rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

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

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

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

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

.mt-2 {
  margin-top: 2rem;
}

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