:root {
  --bg-dark: #F4F7F6;
  /* Light gray background */
  --bg-card: #FFFFFF;
  /* White cards */
  --bg-hover: #F0F0F0;
  /* Light hover state */
  --text-primary: #333333;
  /* Dark text */
  --text-secondary: #888888;
  /* Muted text */
  --accent-green: #00C853;
  /* Slightly darker green for visibility on white */
  --accent-red: #D50000;
  --accent-blue: #2962FF;
  --border-color: #E0E0E0;
  /* Light borders */

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Fluid Header Container */
.header-container {
  width: 100%;
  padding: 0 40px;
  /* Comfortable padding from edges */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.container {
  max-width: 1000px;
  /* Mobile-first optimizations often look better tight */
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Keep .nav-bar logic inside .header-container if needed, or just use header-container directly */
.nav-bar {
  /* Deprecated for header, used .header-container instead */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 40px;
  display: flex;
  align-items: center;
  /* Ensure icon and text align */
}

.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 30px;
  height: 100%;
  align-items: center;
}

.nav-item {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  /* visual fix */
  transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent-green);
  border-bottom-color: var(--accent-green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 40px;
}

.btn-login {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.btn-register {
  background-color: var(--accent-green);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.2s;
}

.btn-register:hover {
  opacity: 0.9;
}

/* Mobile Menu hidden on Desktop */
.mobile-menu-icon {
  display: none;
}

@media (max-width: 768px) {

  .nav-links,
  .nav-right {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
    color: var(--text-primary);
    font-size: 20px;
  }
}

/* Date Scroller (Mock) */
.date-scroller {
  display: flex;
  overflow-x: auto;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
  gap: var(--spacing-md);
  scrollbar-width: none;
  /* Hide scrollbar */
}

.date-scroller::-webkit-scrollbar {
  display: none;
}

.date-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.date-item.active {
  background-color: var(--accent-green);
  color: #000;
  font-weight: bold;
}

.date-item .day {
  font-size: 12px;
}

.date-item .date {
  font-size: 16px;
  font-weight: bold;
  margin-top: 2px;
}

/* Match List */
.league-group {
  margin-top: var(--spacing-md);
}

.league-header {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.league-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #333;
  /* Placeholder for img */
  margin-right: var(--spacing-sm);
}

.match-card {
  background-color: var(--bg-card);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  /* Time | Teams | Status/Score */
  align-items: center;
  transition: background-color 0.2s;
  cursor: pointer;
}

.match-card:hover {
  background-color: var(--bg-hover);
}

.match-time {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.match-status-badge {
  color: var(--accent-green);
  font-weight: bold;
  font-size: 10px;
  margin-top: 4px;
  animation: pulse 2s infinite;
}

.match-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--spacing-md);
}

.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.team-row:last-child {
  margin-bottom: 0;
}

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

.team-score {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-green);
}

.team-score.pending {
  color: var(--text-secondary);
}

.match-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.fav-icon {
  color: #333;
  transition: color 0.2s;
}

.fav-icon:hover,
.fav-icon.active {
  color: var(--accent-red);
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* Utils */
.text-green {
  color: var(--accent-green);
}

.text-red {
  color: var(--accent-red);
}

.hidden {
  display: none;
}

/* Rich Footer */
.footer-wrap {
  background-color: #fff;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: 40px;
  font-size: 12px;
  color: #666;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.footer-col h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
  font-weight: bold;
}

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

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

.footer-col a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: #999;
  line-height: l.8;
}

.footer-bottom img {
  vertical-align: middle;
  margin-right: 4px;
}

.footer-bottom p {
  margin: 4px 0;
}

.cert-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  font-size: 12px;
  color: #999;
}

.cert-icons span {
  display: inline-flex;
  align-items: center;
}

.cert-icons a {
  color: #999;
  text-decoration: none;
  transition: all 0.2s;
}

.cert-icons a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.cert-icon {
  display: inline-block;
  width: 16px;
  /* Slightly smaller icon */
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 4px;
  opacity: 0.8;
  vertical-align: text-bottom;
}