/* General styles to reset margin/padding */
body,
html {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  background-color: #f5f5f5;
}

/* Container to hold both sections */
.container {
  display: grid;
  grid-template-columns: clamp(180px, 15vw, 240px) 1fr;
  gap: 5px;
  padding: 5px;
  min-height: 100vh;
  height: 100%;
  box-sizing: border-box;
}

:root {
  /* ==== Light Theme Colors ==== */
  --color-bg-main: #ffffff;   /* main page background */
  --color-bg-sidebar: #eaeaea; /* sidebar background (your pick) */
  --color-border: #d0d0d0;    /* divider between sidebar and main */
  --color-text: #111111;      /* primary text */
  --color-text-muted: #555555; /* secondary text (headers, notes) */
  --color-hover: rgba(0,0,0,0.06); /* hover highlight */
  --color-accent: #2ea043;    /* optional accent (green, matches NFL-ish theme) */
}

.left-section {
  background-color: var(--color-bg-sidebar);
  color: var(--color-text);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  position: relative;
}

.nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto
}

.nav-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin: 12px 4px 6px;
  color: var(--color-text-muted);
  text-align: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: block;
  padding: 3px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

/* Hover / focus states */
.nav-list li a:hover,
.nav-list li a:focus {
  background: var(--color-hover);
  outline: none;
}

.nav-list li a.active {
  border-left: 4px solid var(--color-accent);
  background: rgba(46, 160, 67, 0.08);
}

/* ===== Spacing between nav groups ===== */
.nav-group + .nav-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.flyout-heading {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  color: #666;          /* muted gray */
  margin: 8px 0 4px;    /* spacing above and below */
  cursor: default;      /* show it's not clickable */
  pointer-events: none; /* prevents accidental clicking/hover */
}



/* The list item containing the flyout */
.has-flyout { position: relative; }

/* The flyout panel that appears to the right of the sidebar */
.flyout {
  position: absolute;
  top: 0;
  left: 100%;                 /* sit immediately to the right of sidebar */
  margin-left: 10px;          /* gap between sidebar and panel */
  width: 300px;
  max-height: 70vh;
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 10px;
  overflow: auto;
  display: none;              
  z-index: 1000;            
}

/* Show on hover OR keyboard focus */
.has-flyout:hover .flyout,
.has-flyout:focus-within .flyout {
  display: block;
}


/* Flyout list styling */
.flyout-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 4px 12px;             
}

.flyout-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.flyout-list a:hover,
.flyout-list a:focus {
  background: #f3f4f6;
  outline: none;
}

/* Optional: reduce motion users */
@media (prefers-reduced-motion: reduce) {
  .flyout { transition: none; }
}

/* ===== Optional: scrollbar styling (Chrome/Edge/WebKit) ===== */
.left-section nav::-webkit-scrollbar {
  width: 6px;
}
.left-section nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.left-section nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

.right-section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Accessibility helper */
.visually-hidden {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%);}

.page-header {display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; padding-bottom: 12px;}

.page-title h1 { margin: 0; font-size: 22px; }
.page-title p  { margin: 4px 0 0; color: #666; }

/* Card grids */
.card-grid { display: grid; gap: 16px; }
.card-grid.three-col { grid-template-columns: 2fr 1fr 1fr 1fr; }
.card-grid.five-col  { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
.card-grid.split-2   { grid-template-columns: 1fr 1fr; }

.card {background: #fafafa;padding: 10px;border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);}
.card-title { margin: 0 0 10px; font-size: 16px; color: #333; }
.link, .mini-link { color: #2ea043; text-decoration: none; }
.link:hover, .mini-link:hover { text-decoration: underline; }

/* Section titles */
.section-title { margin: 0; font-size: 18px; }

/* Spotlight (Super Bowl) */
.spotlight .spotlight-row {display: grid; grid-template-columns: 3fr 1fr 3fr; align-items: center; gap: 20px;}

.SB-team {display: flex; flex-direction: column; text-align: center; align-items: center; font-size: 1.0rem;}
.SB-team img {width: 20%; height: auto;;}
.scoreline{text-align: center; font-weight: bold; font-size: 1.2rem; align-self: start; position: relative; top: 38%; transform: translateY(-40%);}
.spotlight-row .SB-team:first-child .team-link a{color: green; font-size: 1.2rem; font-weight: bold; text-decoration: none;}

.spotlight-row .SB-team:nth-of-type(3) .team-link a{font-size: 1.2rem; text-decoration: none;}

.person {display: flex; flex-direction: column;}
.person .player-image {padding: 0px ; margin: 0 auto;}
.person .player-image img {height: 80px; width: auto;}
.person .name { font-weight: 700; text-align: center;;}
.person .sub { color: #666; text-align: center;}
.statline {color: #333; text-align: center;}
.player-team-logo {display: grid; grid-template-columns: 1fr 2fr;}
.person-meta {align-content: center;}


/* Winners list */
.winners-list { list-style: none; padding: 0; margin: 0 0 8px; }
.winners-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #e5e7eb; }
.winners-list img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.winners-list li:last-child { border-bottom: 0; }

.spotlight-grid {display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(140px, 1fr));}
.spot-card {background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;padding: 12px; text-align: center;}
.spot-title { font-size: 12px; text-transform: uppercase; color: #666; margin-bottom: 6px; }
.spot-card img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.spot-meta { font-weight: 600; }


.pretty-table {width: 100%; border-collapse: collapse; font-size: 0.9rem; background: #fff; border: 1px solid #ddd; padding: 0;}
.pretty-table th[colspan="3"] {background-color: #1e3a8a; text-align: center; color: #fff; font-size: 1rem; padding: 3px; letter-spacing: 0.5px;}
.pretty-table thead td {padding: 6px 8px; text-align: center; border-bottom: 2px solid #e5e7eb;}
.pretty-table tbody td {padding: 6px 8px;text-align: center;border-bottom: 1px solid #eee; font-size: .9rem;}
.pretty-table tbody tr:first-child {background: #fffbea; font-weight: 600;}
.pretty-table tbody td img {height: 22px;width: auto;display: block;margin: 0 auto;}
.pretty-table tbody td:first-child {text-align: left;}

.player-link {color: #2563eb;text-decoration: none;}

.player-link:hover {text-decoration: underline;}

.team-link, .log-link {color: #2563eb;text-decoration: none; }

.team-link:hover, .log-link:hover {text-decoration: underline;}



