/*
Theme Name: FootHub Parody
Theme URI: https://foothub.ca/
Author: FootHub.ca
Description: A safe-for-work parody video grid for extremely unserious foot content.
Version: 1.0.0
*/

:root {
  --fh-bg: #101010;
  --fh-panel: #1b1b1b;
  --fh-panel-2: #242424;
  --fh-text: #f5f5f5;
  --fh-muted: #aaa;
  --fh-soft: #757575;
  --fh-line: #303030;
  --fh-orange: #ff9a18;
  --fh-orange-dark: #d66e00;
  --fh-blue: #4ab6ff;
  --fh-green: #5fd38d;
  --fh-red: #ff6978;
  --fh-radius: 6px;
  --fh-max: 1320px;
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--fh-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--fh-bg);
  color: var(--fh-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #000;
  background: #070707;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: var(--fh-max);
  margin: 0 auto;
  padding: 12px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand__foot {
  color: #fff;
}

.brand__hub {
  margin-left: 3px;
  padding: 2px 7px 4px;
  border-radius: 4px;
  background: var(--fh-orange);
  color: #111;
}

.brand__dot {
  margin-left: 6px;
  color: var(--fh-orange);
  font-size: 0.48em;
  font-weight: 800;
  align-self: flex-end;
  transform: translateY(-2px);
}

.search {
  display: flex;
  min-width: 0;
  border: 1px solid #2d2d2d;
  border-radius: var(--fh-radius);
  background: #fff;
  overflow: hidden;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 10px 12px;
  background: #fff;
  color: #111;
  outline: none;
}

.search button,
.upload {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  border: 0;
  cursor: pointer;
}

.search button {
  background: var(--fh-orange);
  color: #111;
  font-size: 18px;
}

.upload {
  gap: 6px;
  grid-auto-flow: column;
  padding: 10px 13px;
  border-radius: var(--fh-radius);
  background: var(--fh-orange);
  color: #111;
  font-weight: 800;
}

.nav {
  border-top: 1px solid #1e1e1e;
  background: #171717;
}

.nav__inner {
  display: flex;
  gap: 2px;
  max-width: var(--fh-max);
  margin: 0 auto;
  padding: 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav__inner::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 12px 13px;
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 700;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: #222;
  color: #fff;
}

.hero {
  border-bottom: 1px solid var(--fh-line);
  background:
    linear-gradient(90deg, rgba(16, 16, 16, 0.96), rgba(16, 16, 16, 0.68) 52%, rgba(16, 16, 16, 0.2)),
    image-set(url("assets/thumb-sprite.png") 1x);
  background-position: center;
  background-size: cover;
}

.hero__inner {
  max-width: var(--fh-max);
  margin: 0 auto;
  padding: 34px 18px 32px;
}

.hero__copy {
  width: min(680px, 100%);
}

.hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 58ch;
  margin: 0 0 18px;
  color: #ddd;
  font-size: clamp(16px, 2vw, 19px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--fh-radius);
  cursor: pointer;
  font-weight: 900;
}

.button--primary {
  background: var(--fh-orange);
  color: #111;
}

.button--ghost {
  border: 1px solid #444;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
}

.main {
  max-width: var(--fh-max);
  margin: 0 auto;
  padding: 20px 18px 34px;
}

.section-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
}

.sort {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  background: #161616;
}

.sort button {
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  background: transparent;
  color: #d0d0d0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.sort button[aria-pressed="true"] {
  background: var(--fh-orange);
  color: #111;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.28fr) minmax(240px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  margin: 0 0 20px;
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  background: #171717;
  overflow: hidden;
}

.feature-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #050505;
  overflow: hidden;
}

.feature-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(1.04) contrast(1.03);
}

.feature-card__media::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  content: attr(data-duration);
  font-size: 13px;
  font-weight: 900;
}

.feature-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--fh-orange);
  font-size: 25px;
  transform: translate(-50%, -50%);
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.feature-card__eyebrow {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--fh-orange);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.02;
}

.feature-card p {
  margin: 0 0 14px;
  color: #d8d8d8;
  font-size: 16px;
}

.video-card {
  display: block;
  min-width: 0;
}

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--fh-radius);
  background-color: #222;
  background-image: url("assets/thumb-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.76));
  opacity: 0.82;
}

.thumb::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  content: attr(data-duration);
  font-size: 12px;
  font-weight: 800;
}

.thumb__badge {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 6px;
  border-radius: 3px;
  background: var(--fh-orange);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.thumb__play {
  position: absolute;
  left: 9px;
  bottom: 7px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
}

.video-card:hover .thumb {
  filter: brightness(1.08) saturate(1.05);
}

.video-title {
  margin: 8px 0 4px;
  color: #f2f2f2;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.23;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--fh-muted);
  font-size: 13px;
}

.meta strong {
  color: var(--fh-orange);
  font-weight: 800;
}

.rail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 32px;
  border-top: 1px solid var(--fh-line);
  padding-top: 20px;
}

.panel {
  border: 1px solid var(--fh-line);
  border-radius: var(--fh-radius);
  background: var(--fh-panel);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--fh-line);
}

.panel__head h3 {
  margin: 0;
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.tag-list a {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--fh-panel-2);
  color: #e8e8e8;
  font-size: 13px;
  font-weight: 800;
}

.tag-list a:nth-child(3n + 1) {
  color: var(--fh-orange);
}

.tag-list a:nth-child(3n + 2) {
  color: var(--fh-blue);
}

.tag-list a:nth-child(3n) {
  color: var(--fh-green);
}

.leaderboard {
  padding: 8px 14px 12px;
}

.leaderboard div {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #2b2b2b;
  font-size: 14px;
}

.leaderboard div:last-child {
  border-bottom: 0;
}

.rank {
  color: var(--fh-orange);
  font-weight: 900;
}

.score {
  color: var(--fh-muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--fh-line);
  background: #090909;
}

.footer__inner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--fh-max);
  margin: 0 auto;
  padding: 18px;
  color: var(--fh-muted);
  font-size: 13px;
}

.footer strong {
  color: #eee;
}

@media (max-width: 980px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card__media {
    aspect-ratio: 16 / 10;
    min-height: 360px;
  }

  .rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .upload span:last-child {
    display: none;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .feature-card__media {
    aspect-ratio: 4 / 5;
    min-height: 430px;
  }

  .feature-card__body {
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__inner {
    padding-top: 28px;
  }

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

@media (max-width: 430px) {
  .topbar__inner,
  .nav__inner,
  .main,
  .hero__inner,
  .footer__inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .feature-card__media {
    aspect-ratio: 4 / 5;
    min-height: 390px;
  }
}
