/***********************************
  GLOBAL STYLES
************************************/
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #121212;
  color: #fff;
  font-family: Arial, sans-serif;
  height: 100%; /* ensures no extra space at bottom */
}

* {
  box-sizing: inherit; /* keep universal box-sizing */
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/***********************************
  HEADER + NAV
************************************/
.header {
  background-color: #242b38; /* Dark background */
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  position: relative;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
}
.logo-circle {
  width: 40px;
  height: 40px;
  background-color: #3e4a5e; /* Circle background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 10px;
}
.logo-circle img {
  width: 24px;
  height: 24px;
}
.brand-name {
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

/* Navigation - Desktop */
.nav {
  transition: transform 0.3s ease;
}
.nav ul {
  list-style: none;
  display: flex; /* Horizontal on desktop */
  margin: 0; 
  padding: 0;
}
.nav ul li {
  margin-left: 20px;
}
.nav ul li a {
  color: #fff;
  font-size: 16px;
  transition: color 0.3s;
}
.nav ul li a:hover {
  color: #ffcc00;
}

/* Sign Up Button in Nav */
.btn-register {
  background-color: #ffcc00;
  color: #000;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
}

/* Hamburger Icon (hidden on desktop by default) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

/***********************************
  RESPONSIVE HEADER (Mobile)
************************************/
@media (max-width: 768px) {
  .brand-name {
    font-size: 16px;
  }

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  /* Nav is off-screen by default on mobile */
  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    width: 180px;
    background-color: #242b38;
    flex-direction: column;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translateX(100%); /* Hide off-screen */
  }
  .nav.open {
    transform: translateX(0); /* Slide in when toggled */
  }

  .nav ul {
    flex-direction: column; /* Vertical list on mobile */
  }
  .nav ul li {
    margin: 10px 0;
    margin-left: 0;
  }

  .header-container {
    flex-wrap: nowrap;
  }

  /* Prevent horizontal scroll on mobile */
  html, body {
    overflow-x: hidden;
  }
}

/***********************************
  DATE SELECTOR
************************************/
.date-selector {
  background-color: #1e1e1e;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.date-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}
.date-tabs {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
.date-tabs li {
  background-color: #252525;
  margin-right: 10px;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s;
}
.date-tabs li.active,
.date-tabs li:hover {
  background-color: #ffcc00;
  color: #000;
}
.custom-date {
  display: flex;
  align-items: center;
  color: #fff;
}
.custom-date label {
  margin-right: 10px;
  font-size: 14px;
  color: #ddd;
}
.custom-date input[type="date"] {
  background-color: #252525;
  border: 1px solid #555;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
}

/***********************************
  HERO SECTION
************************************/
.hero {
  background-color: #222;
  text-align: center;
  padding: 50px 20px;
}
.hero h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #ffcc00;
}
.hero p {
  font-size: 18px;
  color: #ccc;
}
.btn-watch {
  background-color: #ffcc00;
  color: #000;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
}
.btn-watch:hover {
  background-color: #e6b800;
}

/***********************************
  LEAGUES (3 columns)
************************************/
.leagues {
  padding: 30px 20px;
}
.league {
  margin-bottom: 40px;
}
.league-title {
  color: #ffcc00;
  font-size: 20px;
  margin-bottom: 10px;
}
.league-separator {
  border: none;
  border-top: 1px solid #333;
  margin-bottom: 20px;
}
.league-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/***********************************
  MATCH CARDS
************************************/
.match-card {
  background-color: #1e1e1e;
  border-radius: 5px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
  cursor: pointer; /* entire card clickable */
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 5px; /* spacing between rows in the grid */
}
.match-card:hover {
  background-color: #2c2c2c; /* subtle hover effect */
}

/* Team Icon + Name */
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-align: center;
}
.team-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

/* Center Match Info */
.match-info {
  text-align: center;
  flex: 1; /* expand in middle */
}
.match-time {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}
.match-date {
  color: #ccc;
  margin-bottom: 5px;
}

/* Status: Live or Countdown */
.match-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}
.match-status.live {
  background-color: #28a745; /* green */
  color: #fff;
}
.match-status.countdown {
  background-color: #ffcc00; /* gold */
  color: #000;
}

/***********************************
  FOOTER
************************************/
.footer {
  background-color: #1e1e1e;
  text-align: center;
  padding: 15px 0; /* removed extra margin/bottom */
  color: #aaa;
  font-size: 14px;
  margin: 0; /* ensure no extra margin */
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 0; /* ensure no extra space */
  padding: 0;
}
.footer-nav ul li {
  margin: 0 15px;
}
.footer-nav ul li a {
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-nav ul li a:hover {
  color: #ffcc00;
}
