/* WIAC — RTINGS-ish clone baseline
   This intentionally overrides most theme vibes.
*/

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --header: #0d1117;
  --accent: #f59e0b;
  --accent2: #ff6b35;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Base */
.wiac-body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wiac-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

.wiac-main { padding: 22px 0 48px; }

/* Header */
.wiac-header {
  background: var(--header);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wiac-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
}

.wiac-header__logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.wiac-header__logoMark {
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 12px;
  opacity: 0.9;
}

.wiac-header__logoText {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 16px;
}

.wiac-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wiac-header__nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
}

.wiac-header__nav a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.wiac-header__burger {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
}

@media (max-width: 820px) {
  .wiac-header__burger { display: inline-flex; }
  .wiac-header__nav { display: none; width: 100%; }
  .wiac-header__nav.is-open { display: flex; padding: 8px 0 2px; }
  .wiac-header__inner { flex-wrap: wrap; }
}

/* Category subnav */
.wiac-catnav {
  background: #0b0f14;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wiac-catnav__inner {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 18px;
}
.wiac-catnav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.wiac-catnav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.wiac-catnav__all { margin-left: auto; background: rgba(245,158,11,0.18); color: #fff !important; }

/* Home hero */
.wiac-hero {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.15)),
    radial-gradient(1200px 500px at 20% 0%, rgba(245,158,11,0.35), transparent 60%),
    #0d1117;
  color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 26px 22px;
}

.wiac-hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wiac-lede { margin: 0 0 18px; color: rgba(255,255,255,0.78); max-width: 68ch; }

.wiac-heroSearch__label { display: block; font-weight: 800; margin-bottom: 8px; }

.wiac-heroSearch__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wiac-heroSearch__input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.wiac-heroSearch__btn {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.wiac-heroSearch__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.wiac-heroSearch__chips a {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}
.wiac-heroSearch__chips a:hover { background: rgba(255,255,255,0.16); }

/* Modules */
.wiac-section { margin-top: 26px; }

.wiac-module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.wiac-module__title { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.wiac-module__sub { margin: 6px 0 0; color: var(--muted); }
.wiac-module__header { margin-bottom: 12px; }

.wiac-homeGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
@media (max-width: 980px) { .wiac-homeGrid { grid-template-columns: 1fr; } }

/* Mini list (thumb + title + 1 line) */
.wiac-miniList { display: grid; gap: 10px; }

.wiac-mini {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.wiac-mini:hover { border-color: rgba(245,158,11,0.55); }

.wiac-mini__thumb img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.wiac-thumbPlaceholder {
  width: 92px; height: 62px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #f3f4f6;
  color: #9ca3af;
}

.wiac-mini__title a {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}

.wiac-mini__meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.wiac-mini__desc { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Category tiles */
.wiac-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .wiac-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wiac-tile {
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.wiac-tile:hover {
  border-color: rgba(245,158,11,0.55);
  transform: translateY(-1px);
  background: #fff;
}

.wiac-tile__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wiac-tile__right { display: inline-flex; align-items: center; gap: 8px; }
.wiac-tile__title { margin: 0; font-size: 14px; font-weight: 900; }
.wiac-tile__count { font-weight: 900; color: var(--muted); font-size: 12px; }
.wiac-tile__chev {
  font-size: 18px;
  line-height: 1;
  color: rgba(17,24,39,0.45);
  transform: translateY(-1px);
}
.wiac-tile:hover .wiac-tile__chev { color: rgba(17,24,39,0.75); }
.wiac-tile__sub { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* Buttons */
.wiac-btn {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
}

.wiac-btn--secondary { background: #fff; color: var(--text); }

/* List pages */
.wiac-listPage__header h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.02em; }
.wiac-listPage__desc { color: var(--muted); }

.wiac-cardGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 980px) { .wiac-cardGrid { grid-template-columns: 1fr; } }

.wiac-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wiac-card__link { display: block; padding: 14px; color: inherit; text-decoration: none; }
.wiac-card__title { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.wiac-card__meta { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.wiac-card__desc { margin: 0; color: var(--muted); font-size: 13px; }

/* Footer */
.wiac-footer {
  background: var(--header);
  color: rgba(255,255,255,0.86);
  margin-top: 40px;
  padding: 34px 0 20px;
}

.wiac-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .wiac-footer__inner { grid-template-columns: 1fr; } }

.wiac-footer h4 { margin: 0 0 10px; color: #fff; }
.wiac-footer a { color: rgba(255,255,255,0.80); text-decoration: none; }
.wiac-footer a:hover { color: #fff; }
.wiac-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.wiac-footer__bottom { border-top: 1px solid rgba(255,255,255,0.10); margin-top: 18px; padding-top: 14px; color: rgba(255,255,255,0.65); }

/* Stop Mainroad leftovers from leaking */
.container--outer, .wrapper, .primary, .sidebar, .header, .footer { all: unset; }
