/* === Stardew Valley: Nexus Mods (mods Anna has published) ===
 * Shared by mods.html (the list), packrat.html (what it does) and
 * packrat-guide.html (the full guide). */

main { max-width: 900px; }

/* --- A mod's card: banner on top, text below --- */
.mod {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.mod-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
}
.mod-body { padding: 1.1rem 1.3rem 1.3rem; }
.mod-body p { margin: 0 0 0.8rem; }
.mod-name {
  margin: 0 0 0.2rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
}
.mod-name a { color: var(--ink); text-decoration: none; }
.mod-name a:hover { color: var(--primary-dark); }
.mod-tagline {
  margin: 0 0 0.6rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-dark);
}

/* --- Buttons --- */
.mod-actions, .mod-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin: 1rem 0 0.6rem;
}
.mod-cta { justify-content: center; margin: 2rem 0; }
.mod-get {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease;
}
.mod-get:hover { background: var(--primary-dark); }
html.dark .mod-get { color: #0d2230; }
.mod-more { font-weight: 800; color: var(--primary-dark); text-decoration: none; }
.mod-more:hover { text-decoration: underline; }
.mod-needs { font-size: 0.9rem; color: var(--muted); }

/* --- Showcase: one picture and its story per row, alternating sides --- */
.mod-feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.3rem;
  align-items: center;
  margin: 0 0 1.8rem;
}
.mod-feature:nth-of-type(even) > img { order: 2; }
.mod-feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
}
.mod-feature h2 {
  margin: 0 0 0.5rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
}
.mod-feature p { margin: 0 0 0.7rem; }

/* --- User guide --- */
.mod-toc {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem 1.2rem;
  margin-bottom: 1.5rem;
}
.mod-toc h2 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--muted); }
.mod-toc ol { columns: 2; column-gap: 2rem; margin: 0 0 1rem; padding-left: 1.3rem; }
.mod-toc li { margin-bottom: 0.25rem; }
.mod-toc a:not(.mod-get) { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.mod-toc a:not(.mod-get):hover { text-decoration: underline; }

.mod-sec {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem 1.2rem;
  margin-bottom: 1.2rem;
  scroll-margin-top: 1rem;
}
.mod-sec h2 {
  margin: 0 0 0.7rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--primary-dark);
}
.mod-sec h3 {
  margin: 1.3rem 0 0.5rem;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}
.mod-sec p { margin: 0 0 0.75rem; }
.mod-note { color: var(--muted); font-weight: 600; }
.mod-sec h3 .mod-note { font-family: "Nunito", sans-serif; font-size: 0.9rem; }
.mod-warn-inline { color: var(--primary-dark); font-weight: 700; }
.mod-fig { margin: 0.9rem 0; }
.mod-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 2px solid var(--border); }

.mod-list { margin: 0 0 0.8rem; padding-left: 1.3rem; }
.mod-list li { margin-bottom: 0.4rem; }
.mod-list .mod-list { margin: 0.4rem 0 0; }

.mod-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.mod-table th, .mod-table td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.mod-table th { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
.mod-table tr:last-child th, .mod-table tr:last-child td { border-bottom: 0; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  border: 2px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--bg);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 640px) {
  .mod-body, .mod-sec { padding: 1rem; }
  .mod-feature { grid-template-columns: 1fr; gap: 0.8rem; }
  .mod-feature:nth-of-type(even) > img { order: 0; }
  .mod-toc ol { columns: 1; }
  .mod-table th { white-space: normal; }
}

/* Plain links in running text: the browser's default blue all but vanishes on the dark theme. */
.mod-needs a, .mod-sec a, .mod-body p a { color: var(--primary-dark); font-weight: 700; }
