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

/* DARK THEME */
body {
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #37003c 0%, #240027 100%);
  color: #000;
}

/* CONTAINER */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  /* background: #2a2a2a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4); */
}
.navbar .logo {
  display: flex;
  align-items: center;  /* vertically center image + text */
  gap: 10px;            /* spacing between them */
}

/* shrink the image to match text size */
.logo-img {
  height: 4.5rem;   /* your chosen size */
  width: auto;
  display: block;   /* removes inline spacing quirks */
}

.brand {
  font-size: 2.5rem;   /* match text to icon height */
  font-weight: bold;
  color: white;
  line-height: 1;      /* stops text from having extra vertical space */
  display: flex;
  align-items: center; /* ensures text baseline sits central */
}

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 1.5rem; }
.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  padding-bottom: 5px; /* gives room for the underline */
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 25px; /* sits at bottom of the link box */
  width: 0%;
  height: 3px; /* thickness of the underline */
  background: #e9ad02; /* underline color */
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%; /* animate underline */
}

/* BURGER MENU */
.burger { display: none; cursor: pointer; }
.burger div {
  width: 25px; height: 3px; margin: 5px; background: white;
}

/* HERO */
.hero {
  background: url('https://matchdayscore.com/assets/images/banner.png?v=1.2') no-repeat center 35%;
  background-size: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  /*box-shadow: 0 2px 10px rgba(0,0,0,0.5); */
  min-height: 400px;
  max-height: 60vh;
  width: 100%;
}

.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: #ddd; }

.content-layout {
  display: grid;
  grid-template-columns: 73% 25%;
  gap: 0rem 2rem;
  
  margin-top: 1.5rem;
}

.title-header-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.title-header-title {
  display: flex;
  justify-content: space-between;
  background: #f3f3f3;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* PANEL */
.static-panel {
  background: rgba(246,243,247,1);
  color: #000; /* white text */
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: none; /* disable hover effects */
}


.panel {
  background: rgba(226, 226, 226, 1);
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.6);
}
.panel h2 { margin-bottom: 1rem; }
.panel p { color: #000; }
.panel form input, .panel form button {
  padding: 0.5rem;
  margin: 0.5rem;
  border-radius: 8px;
  border: none;
}
.panel form button {
  background: #ffcc00;
  color: #000;
  cursor: pointer;
}
.panel form button:hover { background: #e6b800; }

/* TABLE */
.standings {
  width: 100%;
  border-collapse: collapse;
}
.standings th, .standings td {
  padding: 0.8rem;
  border-bottom: 1px solid #444;
  text-align: left;
}
.standings th { color: #ffcc00; }

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    position: relative;
    background: #e2e2e2;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    text-align: center;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px; /* set a consistent height */
}

.sidebar-card a {
	color: inherit;
	text-decoration: none;
	display: block; /* makes the whole card clickable */
	width: 100%;
}

.collapsible {
  background-color: #e9ad02;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Quicksand', sans-serif;
}

.collapsible::after {
  content: '\25BC'; /* down arrow */
  font-size: 14px;
  transition: transform 0.3s ease;
}

.collapsible.active::after {
  transform: rotate(-180deg);
}

.content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background-color: #444;
  border-radius: 8px;
  margin-bottom: 8px;
  color: white;
}

.content.open {
  max-height: 500px; /* or something big enough for your content */
  padding: 10px 15px;
}


/* HOVER EFFECTS FOR PANELS */
.panel,
.sidebar-card {
  transition: all 0.3s ease;
}

.panel:hover {
  transform: scale(1.02);
  background: rgba(233, 173, 2, 0.95); /* slightly lighter */
}

.sidebar-card:hover {
  transform: scale(1.02);
  background: #e9ad02; /* slightly lighter grey */
}

.stats-container {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  gap: 20px;
}

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

.stat-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.stat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f2f2f2;
  border: 3px solid #e9ad02;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #e9ad02;
  margin: 0 auto;
}













/* RESPONSIVE */

@media(max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr; /* stack everything */
  }
  .sidebar {
    grid-template-columns: 1fr 1fr; /* 2 per row on smaller screens */
    grid-template-rows: auto;
  }
}

@media(max-width: 820px) {
	.brand {
  font-size: 1.5rem;   /* match text to icon height */
  font-weight: bold;
  color: white;
  line-height: 1;      /* stops text from having extra vertical space */
  display: flex;
  align-items: center; /* ensures text baseline sits central */
}

  .nav-links {
	display: none;
    position: absolute;
    top: 93px; /* adjust to match the bottom of your hero/banner/nav */
    right: 26%;
    flex-direction: column;
    background: #d8d6d8;
    width: 200px; /* slightly bigger than burger */
    border-radius: 12px 0px 0px 12px;
    transform: translateX(100%); /* hide offscreen to the right */
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    padding: 1rem 0;
    z-index: 1000;
  }
  
  .nav-links a {
    color: #000; /* black for mobile */
  }

  .nav-links li {
    margin: 1rem 0;
    text-align: left;
    padding-left: 1rem;
  }

  .burger { display: block; }

  /* When active, slide menu in from right */
.nav-links.active {
    display: flex; /* show when active */
  }
  
    .hero {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
	height: auto;    /* remove forced height */
    max-height: none;
    aspect-ratio: 16/9;
  }

}

@media(max-width: 450px) {
  .nav-links {
	display: none;
    position: absolute;
    top: 123px; /* adjust to match the bottom of your hero/banner/nav */
    right: 47%;
    flex-direction: column;
    background: #d8d6d8;
    width: 200px; /* slightly bigger than burger */
    border-radius: 12px 0px 0px 12px;
    transform: translateX(100%); /* hide offscreen to the right */
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    padding: 1rem 0;
    z-index: 1000;
  }

  /* When active, slide menu in from right */
.nav-links.active {
    display: flex; /* show when active */
  }
  
      .hero {
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
	min-height: auto;
	height:116px;

  }
  
  .title-header-panel {
	  position: relative;
  top: 25px;
  }

}
