/** @format */
/* Ohio State Buckeyes Football Tracker — single stylesheet. */

:root {
  --scarlet: #ba0c2f;
  --scarlet-dark: #8f0a25;
  --gray: #7a7d84;
  --ink: #1b1d22;
  --paper: #f7f7f9;
  --card: #ffffff;
  --border: #e3e4e8;
  --green: #1a7f37;
  --red: #c0392b;
  --amber: #b98a2f;
  --muted: #5d6067;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: var(--scarlet);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Shell / layout ---------- */
#app-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.site-header {
  text-align: center;
  padding: 22px 0 6px;
}
.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mascot {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
.brand-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.brand-title .scarlet {
  color: var(--scarlet);
}
.brand-sub {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- Menu bar ---------- */
.menu-bar {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.site-menu a {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.site-menu a:hover {
  color: var(--scarlet);
  text-decoration: none;
}
.site-menu a.active {
  color: var(--scarlet);
  border-bottom-color: var(--scarlet);
}

/* ---------- Generic ---------- */
.page-loading,
.data-fallback,
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 26px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin: 18px 0;
}

.page-hero {
  margin: 20px 0;
}
.page-hero h1 {
  font-size: 1.6rem;
  margin: 0 0 2px;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 30px 0 12px;
  border-bottom: 2px solid var(--scarlet);
  padding-bottom: 6px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 0 14px;
}

.record-badge {
  display: inline-block;
  background: var(--scarlet);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.9rem;
}

/* ---------- Home hero grid ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.win-badge {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--scarlet);
}
.spread {
  color: var(--muted);
}

/* Stat tiles */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  text-align: center;
}
.stat-tile .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--scarlet);
}
.stat-tile .label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Diagonal split yards tile (passing top-left / rushing bottom-right /
 * total centered). */
.stat-tile.yards-tile {
  position: relative;
  min-height: 110px;
  padding: 0;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    #fbe9ec 0%,
    #fbe9ec 49.6%,
    #e7f3eb 50.4%,
    #e7f3eb 100%
  );
}
.yards-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.yards-passing {
  top: 9px;
  left: 12px;
  align-items: flex-start;
}
.yards-rushing {
  bottom: 9px;
  right: 12px;
  align-items: flex-end;
}
.yards-tile .yards-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.yards-tile .yards-tag {
  font-size: 0.72rem;
  color: var(--muted);
}
.yards-total {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: var(--shadow);
  line-height: 1.15;
}
.yards-total .yards-val {
  color: var(--scarlet);
  font-size: 1.15rem;
}

/* Hype meter */
.hype-wrap {
  margin: 14px 0 4px;
  text-align: center;
}
.hype-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.hype-head .hype-name {
  font-weight: 800;
  font-size: 1.02rem;
}
.hype-head .hype-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.hype-meter {
  height: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.hype-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  position: relative;
  transition: width 0.5s ease;
}
.hype-fill.red {
  background: linear-gradient(90deg, #a00a25, var(--scarlet), #e02244);
}
.hype-fill.orange {
  background: linear-gradient(90deg, #c05a10, #e08018);
}
.hype-fill.amber {
  background: linear-gradient(90deg, #b98a2f, #d8a938);
}
.hype-fill.gray {
  background: linear-gradient(90deg, #8a8d94, #a9abb1);
}
.hype-meter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0 2px,
    transparent 2px 4px
  );
  pointer-events: none;
}
.hype-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* AI analyst report */
.analyst-card {
  background: linear-gradient(180deg, #ffffff, #fbfbfd);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 12px;
  margin: 0 0 14px;
}
.analyst-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.analyst-head .analyst-badge {
  font-size: 1.4rem;
}
.analyst-head .analyst-title {
  font-weight: 800;
  font-size: 1.05rem;
}
.analyst-head .analyst-sub {
  font-size: 0.8rem;
  color: var(--muted);
}
.analyst-sentences p {
  margin: 0 0 10px;
  line-height: 1.55;
}
.analyst-call {
  margin-top: 6px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--scarlet);
}
.analyst-call .scoreline {
  font-weight: 800;
}
.analyst-basis {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 8px;
}

/* ---------- Tables ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table th {
  background: var(--card);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table td.num {
  text-align: right;
}
.data-table th.num {
  text-align: right;
}

/* ---------- Schedule rows ---------- */
.game-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
}
.game-date {
  text-align: center;
}
.game-date .dow {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}
.game-date .date {
  font-weight: 800;
}
.game-info .team {
  font-weight: 700;
  font-size: 1.05rem;
}
.game-info .meta {
  color: var(--muted);
  font-size: 0.85rem;
}
.game-odds {
  text-align: right;
  font-size: 0.9rem;
}
.game-odds .win {
  font-weight: 800;
}
.pill-w,
.pill-l {
  display: inline-block;
  border-radius: 6px;
  padding: 1px 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.pill-w {
  background: var(--green);
}
.pill-l {
  background: var(--red);
}
.score {
  font-weight: 800;
}

/* ---------- Injury / news ---------- */
.injury-status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-out {
  background: var(--red);
  color: #fff;
}
.status-prob {
  background: var(--amber);
  color: #fff;
}
.status-questionable {
  background: var(--gray);
  color: #fff;
}

.news-item {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
}
.news-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray);
}
.news-body .news-headline {
  font-weight: 700;
  font-size: 1rem;
}
.news-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3px;
}
.news-desc {
  color: var(--ink);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ---------- Article (in-site news reader) ---------- */
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 20px 0;
}
.article-hero {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 18px;
  display: block;
}
.article-headline {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 10px;
}
.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 20px;
}
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.article-cta {
  display: inline-block;
  background: var(--scarlet);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
}
.article-cta:hover {
  background: var(--scarlet-dark);
  text-decoration: none;
}
.article-back {
  color: var(--muted);
  text-decoration: none;
}
.article-back:hover {
  text-decoration: underline;
}
.article-source {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Embedded ESPN video (16:9) */
.article-video {
  margin: 0 0 18px;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* Full story body (rendered from ESPN's article markup) */
.article-story {
  font-size: 1.05rem;
  line-height: 1.65;
}
.article-story p {
  margin: 0 0 1em;
}
.article-story a {
  color: var(--scarlet);
}
.meta {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .disclaimer {
  font-size: 0.75rem;
  max-width: 620px;
  margin: 6px auto 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  #app-shell {
    padding: 0 10px 40px;
  }
  .menu-inner {
    justify-content: center;
  }
  .site-menu {
    gap: 2px;
  }
  .site-menu a {
    padding: 11px 14px;
    font-size: 0.95rem;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .game-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .game-date {
    text-align: left;
  }
  .game-odds {
    text-align: left;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .news-item {
    flex-direction: column;
  }
  .news-thumb {
    width: 100%;
    flex-basis: auto;
    height: auto;
  }
}
