/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #1B8C4E;
  --green-hover: #15A355;
  --green-muted: #D6EFE0;
  --bg-dark: #0E1117;
  --surface: #181D27;
  --surface-elevated: #212733;
  --border: #2D333B;
  --text-primary: #F0F0F0;
  --text-secondary: #8B949E;
  --beker-gold: #D4A72C;
  --beker-tint: #3D3520;
  --card-red: #E5534B;
  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

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

/* ===== Info Strip ===== */
.info-strip {
  background-color: #080A0F;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.info-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.info-item a {
  color: var(--text-secondary);
}

.info-item a:hover {
  color: var(--green-hover);
}

/* ===== Header ===== */
.header {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-icon svg {
  display: block;
}

/* ===== Navigation ===== */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background-color: var(--surface-elevated);
}

.nav-link.active {
  color: var(--green-hover);
}

.nav-link-login {
  margin-left: 8px;
  border: 1px solid var(--border);
  padding: 7px 14px;
}

.nav-link-login:hover {
  border-color: var(--green);
  color: var(--green-hover);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

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

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

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

/* ===== Page Title ===== */
.page-title-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-title-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ===== Main Content ===== */
.main-content {
  min-height: 60vh;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Full Calendar Link */
.full-calendar-link {
  margin-bottom: 24px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-outline:hover {
  color: var(--green-hover);
  border-color: var(--green);
  background: rgba(27, 140, 78, 0.08);
}

/* ===== Season Selector ===== */
.season-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.season-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.season-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.season-tab {
  padding: 7px 16px;
  font-family: var(--font-main);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.season-tab:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.season-tab.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.season-tab.active:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

/* ===== Calendar Day Group ===== */
.calendar-day {
  margin-bottom: 24px;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green);
}

.day-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.day-header .day-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(27, 140, 78, 0.15);
  color: var(--green);
  flex-shrink: 0;
}

.day-header .day-icon svg {
  width: 16px;
  height: 16px;
}

/* ===== Match Row ===== */
.match-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: background 0.15s, border-color 0.15s;
}

.match-row:hover {
  background: var(--surface-elevated);
  border-color: #3D444E;
}

/* Badge */
.match-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.match-badge.competitie {
  color: var(--green);
  background: rgba(27, 140, 78, 0.12);
  border: 1px solid rgba(27, 140, 78, 0.25);
}

.match-badge.beker {
  color: var(--beker-gold);
  background: var(--beker-tint);
  border: 1px solid rgba(212, 167, 44, 0.3);
}

/* Team names */
.team-home,
.team-away {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.team-home {
  text-align: right;
}

.team-away {
  text-align: left;
}

.team-home.is-forfait,
.team-away.is-forfait {
  color: var(--card-red);
}

/* Score / Time */
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.match-score {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.match-score.is-forfait {
  color: var(--card-red);
  font-size: 0.875rem;
}

.match-time {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.match-vs {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* ===== Footer ===== */
.footer {
  background: #080A0F;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo span {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-info {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-column p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-column a {
  color: var(--text-secondary);
}

.footer-column a:hover {
  color: var(--green-hover);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .info-strip {
    display: none;
  }

  .header-inner {
    height: 54px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 16px;
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
  }

  .nav-link-login {
    margin-left: 0;
    margin-top: 4px;
    justify-content: center;
    border: 1px solid var(--border);
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--surface);
    margin-top: 2px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .season-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Mobile match row */
  .match-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }

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

  .team-home,
  .team-away {
    text-align: left;
  }

  .match-center {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: unset;
    padding: 4px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .team-home::before {
    content: none;
  }

  .footer-top {
    flex-direction: column;
    gap: 28px;
  }

  .footer-info {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===== Utility / Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.calendar-day {
  animation: fadeIn 0.3s ease-out both;
}

.calendar-day:nth-child(1) { animation-delay: 0.0s; }
.calendar-day:nth-child(2) { animation-delay: 0.03s; }
.calendar-day:nth-child(3) { animation-delay: 0.06s; }
.calendar-day:nth-child(4) { animation-delay: 0.09s; }
.calendar-day:nth-child(5) { animation-delay: 0.12s; }
.calendar-day:nth-child(6) { animation-delay: 0.15s; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3D444E;
}

/* Selection */
::selection {
  background: rgba(27, 140, 78, 0.3);
  color: #fff;
}
