:root {
  --fit-blue: #007ce8;
  --fit-green: #1cd000;
  --fit-navy: #00003d;
  --fit-silver: #f3f4f7;
  --fit-blue-deep: #00449b;
  --bg: #00003d;
  --bg-soft: #00449b;
  --panel: rgba(0, 68, 155, 0.24);
  --text: #f3f4f7;
  --muted: #d6ddf5;
  --aqua: #007ce8;
  --cyan: #1cd000;
  --orange: #1cd000;
  --line: rgba(243, 244, 247, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 61, 0.66), rgba(0, 0, 61, 0.74)),
    radial-gradient(circle at 10% 10%, rgba(0, 124, 232, 0.27) 0%, transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(28, 208, 0, 0.18) 0%, transparent 34%),
    url("./news-bg.png") center / cover no-repeat fixed,
    linear-gradient(145deg, var(--fit-navy) 0%, var(--fit-blue-deep) 52%, #002061 100%);
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.top-menu {
  position: sticky;
  top: 0.8rem;
  z-index: 10;
  margin-bottom: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 61, 0.74);
  backdrop-filter: blur(8px);
}

.brand {
  color: var(--fit-silver);
  text-decoration: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.menu-links {
  display: flex;
  gap: 0.8rem;
}

.menu-links a {
  color: #c5d6ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.menu-links a:hover {
  color: var(--fit-green);
}

.week-picker {
  color: #c5d6ff;
  font-size: 0.82rem;
}

.week-select {
  background: rgba(0, 68, 155, 0.3);
  color: #f3f4f7;
  border: 1px solid rgba(243, 244, 247, 0.35);
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
  font-size: 0.82rem;
}

.hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.1rem, 7vw, 4rem);
  letter-spacing: -0.03em;
}

.site-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 61, 0.45);
}

@media (max-width: 520px) {
  .site-icon {
    width: 34px;
    height: 34px;
  }
}

.kicker {
  color: var(--aqua);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}

.subtitle {
  color: var(--muted);
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.stat .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat .value {
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Sora", sans-serif;
}

.section {
  margin-top: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.section-head p {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.card {
  background: linear-gradient(165deg, rgba(0, 68, 155, 0.56), rgba(0, 0, 61, 0.88));
  border: 1px solid rgba(243, 244, 247, 0.24);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 44px rgba(0, 0, 61, 0.38);
  transform: translateY(14px);
  opacity: 0;
  animation: rise 650ms ease forwards;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(28, 208, 0, 0.18);
  color: #d3ffca;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Space Grotesk", sans-serif;
}

.rating {
  font-size: 0.82rem;
  color: #ffe28a;
  letter-spacing: 0.04em;
}

.card h3 {
  margin: 0.7rem 0 0.5rem;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: #c1d9f0;
  line-height: 1.48;
}

.tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  color: #b9dcff;
  background: rgba(0, 124, 232, 0.18);
  border: 1px solid rgba(185, 220, 255, 0.24);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}

.card-meta {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.card a {
  color: var(--orange);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 61, 0.38);
}

.source-table th,
.source-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(243, 244, 247, 0.16);
  vertical-align: top;
}

.source-table th {
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  color: #cfe0ff;
  background: rgba(0, 68, 155, 0.22);
}

.source-table td {
  color: var(--muted);
  font-size: 0.9rem;
}

.source-table tr:last-child td {
  border-bottom: none;
}

.source-table a {
  color: #7ec4ff;
  text-decoration: none;
}

.source-table a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  padding: 1.4rem 0.9rem 1.1rem;
  color: var(--muted);
  background: rgba(0, 0, 61, 0.35);
  backdrop-filter: blur(5px);
}

.footer-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.84rem;
  color: #c5d2ee;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: center;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.48rem 0.78rem;
  border-radius: 10px;
  border: 1px solid rgba(28, 208, 0, 0.55);
  background: rgba(8, 84, 24, 0.26);
  color: #d8ffd1;
  font-size: 0.79rem;
  font-weight: 600;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.cta-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 208, 0, 0.82);
  background: rgba(12, 102, 30, 0.4);
  color: #eeffe9;
}

.cta-primary {
  border-color: rgba(28, 208, 0, 0.9);
  color: #f3ffef;
  background: linear-gradient(160deg, rgba(28, 208, 0, 0.44), rgba(9, 88, 27, 0.5));
}

.footer-social {
  justify-self: end;
  display: inline-flex;
  gap: 0.5rem;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(195, 218, 255, 0.3);
  background: rgba(0, 68, 155, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d6e5ff;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, color 120ms ease;
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-1px);
  color: #e9fff0;
  border-color: rgba(28, 208, 0, 0.6);
}

.footer-meta {
  width: min(1120px, 92vw);
  margin: 0.9rem auto 0;
  font-size: 0.76rem;
  color: #aebfe2;
  text-align: center;
}

.bg-orb {
  position: fixed;
  width: 320px;
  height: 320px;
  filter: blur(45px);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.45;
}

.orb-a {
  background: #0cd3ff;
  top: -90px;
  left: -70px;
}

.orb-b {
  background: #39e4b8;
  right: -60px;
  bottom: -100px;
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .container {
    width: 93vw;
    padding-top: 2rem;
  }

  .top-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .menu-links {
    flex-wrap: wrap;
  }

  .card {
    padding: 0.9rem;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-inner {
    width: 93vw;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
  }

  .footer-cta {
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-social {
    justify-self: center;
  }

  .footer-meta {
    width: 93vw;
  }
}
