/* =========================================================
   ZIMANKÓ KUPA - Téli Tájfutóverseny Stíluslap (style.css)
   Színvilág: Sötétkék (#061021, #0a192f), Jeges világoskék (#38bdf8, #7dd3fc),
   Tájfutó bója narancs (#ff5500) & Térképes magenta (#d946ef)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,600;0,700;1,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #061021;
  --bg-navy: #0a192f;
  --bg-card: rgba(13, 31, 60, 0.85);
  --bg-card-solid: #0d1f3c;
  --ice-blue: #38bdf8;
  --ice-light: #7dd3fc;
  --ice-glow: rgba(56, 189, 248, 0.25);
  --control-orange: #ff5500;
  --control-orange-hover: #ff6e26;
  --map-magenta: #e11d48;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-ice: rgba(56, 189, 248, 0.22);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 80% 10%, #102a52 0%, var(--bg-deep) 55%);
  min-height: 100vh;
  position: relative;
}

/* Élő hóesés canvas a háttérben */
#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Topográfiai szintvonalas háttérminta */
.topo-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 Q 120 40, 220 110 T 400 90' fill='none' stroke='%2338bdf8' stroke-opacity='0.06' stroke-width='1.5'/%3E%3Cpath d='M0 160 Q 140 90, 250 170 T 400 150' fill='none' stroke='%2338bdf8' stroke-opacity='0.05' stroke-width='1.5'/%3E%3Cpath d='M0 240 Q 90 190, 210 250 T 400 220' fill='none' stroke='%2338bdf8' stroke-opacity='0.06' stroke-width='1.5'/%3E%3Cpath d='M0 320 Q 160 270, 280 330 T 400 310' fill='none' stroke='%2338bdf8' stroke-opacity='0.04' stroke-width='1.5'/%3E%3Ccircle cx='310' cy='80' r='45' fill='none' stroke='%2338bdf8' stroke-opacity='0.05' stroke-width='1.5'/%3E%3Ccircle cx='310' cy='80' r='25' fill='none' stroke='%2338bdf8' stroke-opacity='0.05' stroke-width='1.5'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Tipográfia */
h1, h2, h3, .sport-font {
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* =========================================================
   NAVIGÁCIÓ & NYELVVÁLASZTÓ
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 16, 33, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-ice);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

/* Tájfutó bója logó ikon */
.control-flag {
  width: 38px;
  height: 38px;
  position: relative;
  transform: skewX(-10deg);
  border: 2px solid #fff;
  box-shadow: 0 0 16px rgba(255, 85, 0, 0.5);
  background: linear-gradient(135deg, #ffffff 50%, var(--control-orange) 50%);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
}

.brand-title span {
  color: var(--ice-blue);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--ice-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ice-blue);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--ice-blue);
}

nav a:hover::after {
  width: 100%;
}

/* Narancssárga Nevezés Gomb */
.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--control-orange);
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  text-decoration: none;
  transform: skewX(-12deg);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.45);
  transition: all 0.2s ease;
}

.btn-orange span, .btn-orange svg {
  transform: skewX(12deg);
}

.btn-orange:hover {
  background: var(--control-orange-hover);
  transform: skewX(-12deg) translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 85, 0, 0.65);
}

/* Kis nyelvválasztó gomb a jobb felső sarokban */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 31, 60, 0.9);
  border: 1px solid var(--border-ice);
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

.lang-switch a {
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.lang-switch a.active {
  background: var(--ice-blue);
  color: var(--bg-deep);
}

.lang-switch a:not(.active):hover {
  color: #fff;
}

/* =========================================================
   HERO SZEKCIÓ (DINAMIKUS, LENDÜLETES)
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-ice);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--ice-light);
  padding: 6px 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: skewX(-12deg);
  margin-bottom: 20px;
}

.hero-badge > * {
  transform: skewX(12deg);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.98;
  margin-bottom: 14px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 .ice {
  color: var(--ice-blue);
  display: block;
}

.hero-subname {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.25rem;
  color: var(--ice-light);
  font-weight: 600;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-subname::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--control-orange);
  transform: skewX(-20deg);
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.meta-pill {
  background: var(--bg-card);
  border-left: 3px solid var(--ice-blue);
  padding: 10px 18px;
  backdrop-filter: blur(8px);
}

.meta-pill strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ice-light);
}

.meta-pill span {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ice-blue);
  color: var(--ice-light);
  background: rgba(56, 189, 248, 0.08);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 22px;
  text-decoration: none;
  transform: skewX(-12deg);
  transition: all 0.2s;
}

.btn-outline span {
  transform: skewX(12deg);
}

.btn-outline:hover {
  background: var(--ice-blue);
  color: var(--bg-deep);
}

/* Dinamikus Tájfutó Bója + Hóvihar Vizuál a Hero jobb oldalán */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dynamic-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(155deg, rgba(16, 42, 82, 0.9) 0%, rgba(6, 16, 33, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 28px;
  position: relative;
  transform: skewX(-4deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.15);
}

.dynamic-card-inner {
  transform: skewX(4deg);
}

.prism-graphic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(125, 211, 252, 0.25);
}

.big-prism {
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, #ffffff 50%, var(--control-orange) 50%);
  border: 3px solid #fff;
  transform: rotate(-6deg);
  box-shadow: 0 10px 25px rgba(255, 85, 0, 0.45);
  position: relative;
}

.big-prism::after {
  content: '31';
  position: absolute;
  bottom: -10px;
  right: -12px;
  background: var(--bg-deep);
  color: var(--ice-blue);
  border: 1px solid var(--ice-blue);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 1px 6px;
}

.course-route-svg {
  width: 170px;
  height: 74px;
}

.countdown-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
  margin-top: 14px;
}

.cd-item {
  background: rgba(6, 16, 33, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 10px 4px;
}

.cd-num {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ice-blue);
  line-height: 1.1;
}

.cd-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* =========================================================
   ÁTLÓS SZEKCIÓ VÁGÁSOK & SZEKCIÓ CÍMEK
   ========================================================= */
.section-block {
  padding: 80px 0;
  position: relative;
}

.section-angled {
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.92) 0%, rgba(6, 16, 33, 0.96) 100%);
  border-top: 1px solid var(--border-ice);
  border-bottom: 1px solid var(--border-ice);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 42px;
}

.section-tag {
  display: inline-block;
  color: var(--control-orange);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-style: italic;
  color: #fff;
  line-height: 1.1;
}

.section-header h2 span {
  color: var(--ice-blue);
}

/* =========================================================
   VERSENYKIÍRÁS KÁRTYÁK (GRID)
   ========================================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-ice);
  border-top: 3px solid var(--ice-blue);
  padding: 26px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-light);
}

.info-card.accent-orange {
  border-top-color: var(--control-orange);
}

.info-card h3 {
  font-size: 1.25rem;
  color: var(--ice-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card.accent-orange h3 {
  color: #ff8c52;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.info-list li strong {
  color: var(--ice-blue);
}

.badge-step {
  display: inline-block;
  background: rgba(56, 189, 248, 0.16);
  color: var(--ice-light);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 6px;
  font-size: 0.85rem;
}

.highlight-box {
  background: rgba(255, 85, 0, 0.1);
  border-left: 4px solid var(--control-orange);
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 0.93rem;
}

.highlight-box a {
  color: #ff8c52;
  font-weight: 700;
  text-decoration: underline;
}

/* =========================================================
   KATEGÓRIÁK TÁBLÁZAT (ELŐZETES PÁLYAADATOK)
   ========================================================= */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-ice);
  overflow-x: auto;
  margin-bottom: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

table.courses-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.courses-table thead {
  background: linear-gradient(90deg, #102a52 0%, #0d2244 100%);
  border-bottom: 2px solid var(--ice-blue);
}

.courses-table th {
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ice-light);
  padding: 16px 20px;
}

.courses-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  font-size: 0.96rem;
}

.courses-table tbody tr:hover {
  background: rgba(56, 189, 248, 0.08);
}

.cat-badge {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: #fff;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 10px;
  margin: 2px 4px 2px 0;
  transform: skewX(-10deg);
}

.pill-yes {
  display: inline-block;
  background: rgba(255, 85, 0, 0.2);
  color: #ff8c52;
  border: 1px solid rgba(255, 85, 0, 0.5);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.pill-no {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* =========================================================
   NEVEZÉS & DÍJAK KÁRTYA
   ========================================================= */
.reg-banner {
  background: linear-gradient(135deg, rgba(16, 42, 82, 0.95) 0%, rgba(10, 25, 47, 0.98) 100%);
  border: 1px solid var(--ice-blue);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.fee-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.fee-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(6, 16, 33, 0.6);
  border-left: 3px solid var(--ice-blue);
}

.fee-list li span:last-child {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: var(--ice-light);
}

/* =========================================================
   EREDMÉNYEK & FOTÓK (VERSENY UTÁN TÖLTŐDIK FEL)
   ========================================================= */
.placeholder-panel {
  background: var(--bg-card);
  border: 1px dashed rgba(56, 189, 248, 0.45);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.placeholder-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--ice-blue);
  color: var(--ice-blue);
  transform: skewX(-10deg);
}

.placeholder-panel h3 {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 8px;
}

.placeholder-panel p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--ice-light);
  padding: 6px 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice-blue);
  box-shadow: 0 0 10px var(--ice-blue);
}

/* =========================================================
   LÁBLÉC
   ========================================================= */
footer {
  background: #040b17;
  border-top: 1px solid var(--border-ice);
  padding: 36px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

footer strong {
  color: #fff;
}

/* =========================================================
   RESZPONZIVITÁS
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid,
  .reg-banner {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  nav ul {
    gap: 14px;
  }
}
