/* betmatchvault.com – Gaming News & Events Portal */

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

:root {
  --bg-primary: #0a0c12;
  --bg-secondary: #12151f;
  --bg-card: #161a28;
  --bg-card-hover: #1c2133;
  --accent: #ff6b35;
  --accent-light: #ff8c5a;
  --accent-glow: rgba(255, 107, 53, 0.25);
  --text-primary: #f0f2f8;
  --text-secondary: #a0a8be;
  --text-muted: #6b7289;
  --border: #252a3a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header & Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 1.5rem;
}

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

.nav-desktop {
  display: flex;
  gap: 28px;
  list-style: none;
}

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

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

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

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

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  gap: 12px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* ── Hero / Featured Story ── */

.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* ── Section Headers ── */

.section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── News Cards ── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.news-card .category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cat-frissites { background: rgba(255, 107, 53, 0.15); color: var(--accent); }
.cat-esemeny { background: rgba(99, 179, 237, 0.15); color: #63b3ed; }
.cat-kozosseg { background: rgba(104, 211, 145, 0.15); color: #68d391; }
.cat-fejleszto { background: rgba(183, 148, 244, 0.15); color: #b794f4; }
.cat-esport { background: rgba(246, 173, 85, 0.15); color: #f6ad55; }
.cat-javitas { background: rgba(252, 129, 129, 0.15); color: #fc8181; }

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 1.35;
}

.news-card .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-collage {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.news-collage img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ── Event Calendar ── */

.calendar-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.events-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.events-table thead {
  background: var(--bg-secondary);
}

.events-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-bottom: 2px solid var(--border);
}

.events-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.events-table td:first-child {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.event-type {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent);
}

.calendar-desc {
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.calendar-desc p {
  margin-bottom: 12px;
}

/* ── Editorial Opinion ── */

.editorial {
  background: var(--bg-secondary);
}

.editorial-content {
  max-width: 800px;
  margin: 0 auto;
}

.editorial-content h3 {
  font-size: 1.4rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.editorial-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.reason-list {
  list-style: none;
  margin: 24px 0;
}

.reason-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.reason-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.reason-text h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.reason-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}

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

.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Community Voices ── */

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.community-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.community-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
  padding-top: 16px;
}

.community-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.author-info .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.author-info .role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Footer ── */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 32px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Legal Pages ── */

.legal-page {
  padding: 48px 0 64px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

/* ── Responsive ── */

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

  .hero-image img {
    height: 260px;
  }

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

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

  .hero h1 {
    font-size: 1.6rem;
  }

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

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

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

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

  .events-table th,
  .events-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .stat-box .stat-value {
    font-size: 1.4rem;
  }
}
