@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap');
body {
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background-color: #e9e9fc;
  color: #000000;
}

/* Top bar */
.topbar {
  background-color: #00c49a;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.logo {
  margin: 0;
  font-size: 1.2em;
}

.about {
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

:root {
  --fbl-accent: #00B894; /* teal active color */
}

/* nav container */
nav.nav {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 8px 0 0;
  border-bottom: 1px solid #e0e0e0; /* full-width bottom line */
  background: #ffffff;
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 10px;        /* 👈 this pushes the white nav down a bit */
  /* optional: rounded corners to match the mockup */
  border-radius: 8px 8px 0 0;
}

/* each item (inactive) */
nav.nav .nav-item {
  font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  flex: 1;
  text-align: center;
  padding: 6px 0 10px;
  cursor: pointer;
  color: #8b8f99;
  font-size: 12px;
  position: relative; /* for underline */
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* icon (inactive) */
nav.nav .nav-item img {
  display: block;
  margin: 0 auto 4px;
  width: 22px;
  height: 22px;
  filter: grayscale(1) opacity(0.6); /* grey icons when inactive */
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

/* label */
nav.nav .nav-item span {
  display: block;
}

/* ACTIVE state (added via JS): text + icon + glow */
nav.nav .nav-item.nav-active span {
  color: var(--fbl-accent);
}

nav.nav .nav-item.nav-active img {
  filter: drop-shadow(0 0 6px rgba(0, 184, 148, 0.9));
  opacity: 1;
  transform: translateY(-1px);
}

/* short teal line under the active tab */
nav.nav .nav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background-color: var(--fbl-accent);
  box-shadow: 0 0 8px rgba(0, 184, 148, 0.7);
  transform: translateX(-50%);
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
}

nav.nav .nav-item.nav-active::after {
  width: 40%;  /* little line, not full width */
  opacity: 1;
}

/* League tabs */
.league-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px;
 
}

.tab {
   
  border: none;
  background: #eee;
  padding: 6px 14px;
  border-radius: 20px;
 
  cursor: pointer;
 
}
/* default (like the top pill in your image) */
.league-tabs .tab {
  flex: 1;
  border: none;
  outline: none;
  border-radius: 988px;
  padding: 6px 16px;
  background-color: #FFF4E3;        /* very light orange */
  color: #000000;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.1s ease;
}

/* active (like the bottom pill in your image) */
.league-tabs .tab.active {
  background-color: #F5A623;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(245, 166, 35, 0.45);
  transform: translateY(-1px);
}

/* Matches */
.matches {
  padding: 10px 20px;
}

.matches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}




/* wrapper for < 2 > */
.page-controls {
  display: flex;
  align-items: center;
  gap: 0px;
  color: #00c49a;
  
}

/* arrows: look like teal chevrons, no button chrome */
.page-controls .arrow {
  border: none;
  background: transparent;
  color: var(--fbl-teal);
  font-size: 40px;          /* size of < and > */
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 999px;
  color: #00c49a;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease,
    opacity 0.15s ease;
    
  padding: 0;             /* remove extra padding */
  margin: 0 8px;          /* ⟵ small manual space to the number */
  border-radius: 999px;
}

/* hover / click = slightly lighter green */
.page-controls .arrow:hover:not(:disabled) {
  background-color: rgba(0, 184, 148, 0.08);
  transform: translateY(-1px);
}

#prev-day {
  background-image: url("../img/arrow-left-green.svg");
}

/* right arrow icon */
#next-day {
  background-image: url("../img/arrow-right-green.svg");
}

.page-controls .arrow:active:not(:disabled) {
  background-color: rgba(0, 184, 148, 0.16);  /* "light green" feel */
}

/* disabled state (e.g. at first/last matchday) */
.page-controls .arrow:disabled {
  opacity: 0.3;
  cursor: default;
  background: transparent;
}

/* the day number in the middle (bold black) */
#day-number {
  min-width: 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
}


.day {
  margin-top: 15px;
}

.day h4 {
  color: #000000;
  font-size: 0.9em;
}





/* Match cards */

.match-card {
  border-radius: 9px;
  margin-top: 6px;
  padding: 9px 13px;
}

.cyan {
  background-color: #C4FFF4;
}

.blue {
  background-color: #D8E8FF;
}

/* Match layout */
.match-info {
  display: flex;
  align-items: flex-start;

}

.time {
  width: 50px;
  
  color: #000000;
  font-size: 0.9em;
  margin-top: 50px;
}

.teams {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  font-weight: bold;
}

.team {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
}

.team img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.fixed-button {
  position: fixed;         /* makes the button stay in place even when scrolling */
  bottom: 20px;            /* distance from the bottom of the page */
  right: 20px;             /* distance from the right side */
  background-color: #007BFF; /* bright blue background */
  color: white;            /* white text */
  padding: 12px 24px;      /* button size */
  border: none;
  border-radius: 8px;      /* rounded corners */
  text-decoration: none;   /* removes underline since it's a link */
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* subtle shadow */
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1000;           /* ensures it stays above other elements */
}

.fixed-button:hover {
  background-color: #0056b3; /* darker blue when hovered */
}

 

:root {
  --fbl-teal: #00B894;
}

/* wrapper for <icon> 14 <icon> */
.page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* base style for both arrow buttons */
.page-controls .arrow {
  width: 18px;                 /* round clickable area */
  height: 30px;
  padding: 0;
  margin: 0 6px;               /* small gap from the number */
  border: none;
  border-radius: 999px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;  /* icon size */
  cursor: pointer;

  /* hide the text "<" and ">" but keep them for accessibility */
  font-size: 0;
}

/* left arrow icon */
#prev-day {
  background-image: url("../img/arrow-left-green.png");
}

/* right arrow icon */
#next-day {
  background-image: url("../img/arrow-right-green.png");
}

/* hover / focus: light green halo */
.page-controls .arrow:hover:not(:disabled),
.page-controls .arrow:focus-visible:not(:disabled) {
  background-color: rgba(0, 184, 148, 0.10);
  outline: none;
}

/* click: slightly lighter + pressed */
.page-controls .arrow:active:not(:disabled) {
  background-color: rgba(0, 184, 148, 0.20);
  filter: brightness(1.1);     /* icon looks a bit lighter */
  transform: translateY(1px);
}

/* disabled state, if you ever disable at edges */
.page-controls .arrow:disabled {
  opacity: 0.35;
  cursor: default;
  background-color: transparent;
  filter: none;
  transform: none;
}

/* matchday number in the middle */
#day-number {
  display: inline-block;
  margin: 0 2px;
  min-width: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333333;
}




