/* Homepage (front-page.php only). Loaded after custom.css. */

/* ── Section rhythm: one spacing scale for every block ── */
.hv2-section { padding: 64px 0; }
.hv2-section .fp-section__header { margin-bottom: 32px; }
.hv2-section .fp-section__sub { max-width: 640px; margin: 0 auto; line-height: 1.6; }
@media (max-width: 767px) {
  .hv2-section { padding: 44px 0; }
  .hv2-section .fp-section__header { margin-bottom: 22px; }
}

/* ── Hero: #1 pick, then a single row of ranking chips (no stats, no big secondary buttons) ── */
.hv2-hero { padding-bottom: 64px; }
.hv2-needs { position: relative; z-index: 2; }
.hv2-needs__label { display: block; margin-bottom: 12px; font-size: 13px; color: #C9CED8; text-shadow: 0 1px 8px rgba(13,13,26,.9); }
.hv2-needs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hv2-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  background: rgba(13,13,26,.78); border: 1px solid rgba(236,72,153,.4); color: #F3F4F6;
  font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; transition: background .2s, border-color .2s, color .2s;
}
.hv2-chip svg { color: #F472B6; flex: 0 0 auto; transition: color .2s; }
.hv2-chip:hover, .hv2-chip:focus-visible { background: linear-gradient(135deg, #EC4899, #A855F7); border-color: transparent; color: #fff; }
.hv2-chip:hover svg, .hv2-chip:focus-visible svg { color: #fff; }
@media (max-width: 767px) {
  .hv2-hero { padding-bottom: 40px; }
  .hv2-needs { order: 5; width: 100%; margin-top: 2px; }
  .hv2-needs__label { margin-bottom: 10px; }
  .hv2-needs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hv2-needs__list li { display: flex; }
  .hv2-chip { flex: 1 1 auto; justify-content: center; padding: 10px 6px; font-size: 13px; gap: 5px; }
}

/* ── Mini reviews: one sideways row on every screen (3 in view on desktop, 2 on tablets, swipe on phones) ── */
.hv2-carousel { position: relative; }
@media (min-width: 768px) {
  .hv2-minis {
    display: flex; align-items: flex-start; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px;
  }
  .hv2-minis::-webkit-scrollbar { display: none; }
  .hv2-minis .agc-mini { flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; }
  .hv2-minis .agc-mini__best { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hv2-minis .agc-mini__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
  .hv2-minis .agc-mini.is-open .agc-mini__text { display: block; -webkit-line-clamp: unset; overflow: visible; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hv2-minis .agc-mini { flex-basis: calc((100% - 18px) / 2); }
}
.hv2-carousel__nav {
  display: none; align-items: center; justify-content: center;
  position: absolute; z-index: 3; top: 96px; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(236,72,153,.5); background: rgba(13,13,26,.94); color: #F8F8FF;
  box-shadow: 0 6px 18px rgba(0,0,0,.45); cursor: pointer; transition: opacity .2s, background .2s, border-color .2s;
}
.hv2-carousel__nav svg { width: 20px; height: 20px; }
.hv2-carousel__nav:hover { background: linear-gradient(135deg, #EC4899, #A855F7); border-color: transparent; }
.hv2-carousel__nav:focus-visible { outline: 2px solid #EC4899; outline-offset: 2px; }
.hv2-carousel__nav:disabled { opacity: 0; pointer-events: none; }
.hv2-carousel__nav--prev { left: -22px; }
.hv2-carousel__nav--next { right: -22px; }
.hv2-carousel.is-scrollable .hv2-carousel__nav { display: flex; }
@media (max-width: 767px) { .hv2-carousel.is-scrollable .hv2-carousel__nav { display: none; } }

/* ── Rankings by need: one card per category, its #1 pick and the next apps in the ranking ── */
.hv2-needs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hv2-need {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: #16162A; border: 1px solid rgba(168,85,247,.2); border-radius: 16px;
  color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hv2-need:hover, .hv2-need:focus-visible { border-color: rgba(236,72,153,.6); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); color: inherit; }
.hv2-need__top { display: flex; align-items: center; gap: 12px; }
.hv2-need__icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(236,72,153,.12); color: #F472B6; }
.hv2-need__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: #F8F8FF; }
.hv2-need__desc { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: #9CA3AF; }
.hv2-need__pick { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #0F0F1E; border: 1px solid rgba(255,255,255,.06); }
.hv2-need__pick img { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.hv2-need__pick-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv2-need__pick-txt small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #EC4899; }
.hv2-need__pick-txt strong { font-size: 16px; color: #F8F8FF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv2-need__rating { margin-left: auto; font-size: 14px; font-weight: 700; color: #FBBF24; white-space: nowrap; }
.hv2-need__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.hv2-need__others { display: flex; }
.hv2-need__others img { width: 28px; height: 28px; border-radius: 8px; border: 2px solid #16162A; margin-left: -7px; object-fit: cover; background: #0F0F1E; }
.hv2-need__others img:first-child { margin-left: 0; }
.hv2-need__go { font-size: 14px; font-weight: 600; color: #EC4899; white-space: nowrap; }
@media (max-width: 991px) { .hv2-needs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .hv2-needs-grid { gap: 10px; }
  .hv2-need { gap: 10px; padding: 14px 12px; border-radius: 14px; }
  .hv2-need__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hv2-need__icon { width: 34px; height: 34px; border-radius: 10px; }
  .hv2-need__title { font-size: 15px; }
  .hv2-need__desc, .hv2-need__others, .hv2-need__rating { display: none; }
  .hv2-need__pick { gap: 8px; padding: 8px; border-radius: 10px; }
  .hv2-need__pick img { width: 30px; height: 30px; border-radius: 8px; }
  .hv2-need__pick-txt small { font-size: 9px; }
  .hv2-need__pick-txt strong { font-size: 13px; }
  .hv2-need__go { font-size: 13px; }
}

/* ── Head-to-heads: a row of pills instead of four boxed cards ── */
.hv2-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hv2-pills a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  background: #16162A; border: 1px solid rgba(168,85,247,.22); color: #E5E7EB;
  font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s;
}
.hv2-pills a span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #A855F7; }
.hv2-pills a:hover, .hv2-pills a:focus-visible { border-color: #EC4899; color: #fff; }
.hv2-center { margin: 22px 0 0; text-align: center; }
.hv2-textlink { font-size: 14px; font-weight: 600; color: #EC4899; text-decoration: none; }
.hv2-textlink:hover { text-decoration: underline; color: #F472B6; }
@media (max-width: 575px) { .hv2-pills a { font-size: 14px; padding: 10px 14px; } }

/* ── How we test: three short lines, no glowing boxes ── */
.hv2-hwt__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.hv2-hwt__item { display: flex; align-items: flex-start; gap: 12px; }
.hv2-hwt__icon { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #EC4899, #A855F7); color: #fff; }
.hv2-hwt__item h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 700; color: #F8F8FF; }
.hv2-hwt__item p { margin: 0; font-size: 14px; line-height: 1.6; color: #9CA3AF; }
@media (max-width: 767px) { .hv2-hwt__list { grid-template-columns: 1fr; gap: 18px; } }
