/* betmatcharena.pro – Gaming Tournament Center Portal */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #0a0c12;
  --bg-secondary: #12151f;
  --bg-card: #161a28;
  --bg-card-hover: #1c2133;
  --accent: #ff4444;
  --accent-glow: rgba(255, 68, 68, 0.35);
  --accent-soft: rgba(255, 68, 68, 0.12);
  --text-primary: #f0f2f8;
  --text-secondary: #9aa3b8;
  --text-muted: #6b7389;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 68, 68, 0.3);
  --live-green: #00e676;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 68, 68, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 68, 68, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ff6b6b;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Header & Navigation ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(10, 12, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-desktop {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 12, 18, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  transform: translateY(-110%);
  transition: transform var(--transition);
  z-index: 999;
}

.nav-mobile.open {
  transform: translateY(0);
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 4vw;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ── Hero ── */

.hero {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--live-green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

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

.hero-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 68, 68, 0.15) 100%);
  pointer-events: none;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(10, 12, 18, 0.9));
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Section Common ── */

section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* ── Live Results ── */

#eredmenyek {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.results-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.results-table thead {
  background: var(--bg-card);
}

.results-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.results-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.results-table tbody tr {
  transition: background var(--transition);
}

.results-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.team-name {
  color: var(--text-primary);
  font-weight: 500;
}

.score {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--live-green);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-finished {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.status-upcoming {
  color: #ffd54f;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.results-side img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.results-side p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ── Upcoming Matches ── */

.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}

.match-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.match-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.match-teams {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.match-vs {
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 0.35rem;
}

.match-odds {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.odd-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.odd-chip strong {
  color: var(--accent);
}

.match-prediction {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ── Commentary ── */

#kommentarok {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.commentary-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
}

.commentary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--accent);
  transition: background var(--transition);
}

.comment-item:hover {
  background: var(--bg-card-hover);
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.commentator {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.comment-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.commentary-side img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 3/4;
  object-fit: cover;
}

.commentary-side p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ── Calendar ── */

.calendar-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.calendar-table thead {
  background: var(--bg-card);
}

.calendar-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.calendar-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.calendar-table tbody tr:hover {
  background: var(--bg-card);
}

.event-type {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.type-cs2 { background: rgba(255, 68, 68, 0.15); color: var(--accent); }
.type-lol { background: rgba(68, 136, 255, 0.15); color: #4488ff; }
.type-valorant { background: rgba(255, 85, 170, 0.15); color: #ff55aa; }
.type-dota { background: rgba(255, 170, 0, 0.15); color: #ffaa00; }
.type-fifa { background: rgba(0, 200, 100, 0.15); color: #00c864; }

/* ── Footer ── */

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 360px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

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

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

/* ── Legal Pages ── */

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
}

.legal-section ul {
  color: var(--text-secondary);
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
}

.legal-section li {
  margin-bottom: 0.35rem;
}

/* ── Responsive ── */

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

  .results-layout,
  .commentary-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav-mobile {
    display: block;
  }

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

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

  .hero-stats {
    gap: 1.25rem;
  }

  .results-table th:nth-child(4),
  .results-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .calendar-table th:nth-child(4),
  .calendar-table td:nth-child(4) {
    display: none;
  }
}
