/*
Theme Name: Hunks Basketball
Theme URI: https://hunksbasketball.fi
Author: Hunks
Description: Custom theme for hunksbasketball.fi
Version: 0.2.0
Text Domain: hunks
*/

/* Brand colors:

Logo:
- Blue #103f77 on yellow #c1ab00
*/

:root {
  --brand-blue: #103f77;
  --brand-blue-dark: #0b2d57;
  --brand-yellow: #c1ab00;
  --brand-yellow-soft: #d9bf1a;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #7a7f88;
  --bg: #ffffff;
  --bg-alt: #f2f3f5;
  --border: #e4e7ef;
  --black: #111111;
  --dark: #2a2a2a;
  --radius: 4px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --container: 1200px;
  --container-narrow: 720px;
  --fs-base: 16px;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-nav: "Saira", "Helvetica Neue", Arial, var(--font-sans);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--brand-yellow);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover {
  color: var(--brand-blue);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: var(--container-narrow);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Topbar (thin black) ───────────────────────── */
.topbar {
  background: var(--brand-blue-dark);
  color: #fff;
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 38px;
  padding: 0 24px;
}
.social {
  display: flex;
  gap: 4px;
  align-items: center;
}
.social a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition:
    background 0.15s,
    color 0.15s;
}
.social a:hover {
  background: var(--brand-yellow);
  color: var(--black);
}
.social svg {
  display: block;
}

/* ── Header (nav overlaid on hero for front page) ── */
.site-header {
  background: var(--brand-blue);
  color: #fff;
  position: relative;
  z-index: 10;
}
.site-header {
  min-height: 40px;
  overflow: visible;
}
.site-header__inner {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  min-height: 40px;
}
.site-header__inner .brand,
.site-header__inner .nav-toggle {
  align-self: center;
  padding: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand:hover {
  color: #fff;
}
.brand__logo {
  height: 80px;
  margin: -12px 0;
  object-fit: cover;
  position: relative;
  z-index: 100;
}

/* Primary nav */
.primary-nav {
  align-self: stretch;
  display: flex;
}
.primary-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.primary-nav__list > li {
  display: flex;
  align-items: stretch;
}
.primary-nav__list a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background 0.15s,
    color 0.15s;
}
.primary-nav__list a:hover {
  color: var(--brand-yellow);
}
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-parent > a,
.primary-nav__list .current-page-ancestor > a {
  background: var(--brand-yellow);
  color: #fff;
}

/* Dropdown */
.primary-nav__list .menu-item-has-children {
  position: relative;
}
.primary-nav__list .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 2px;
  transform: rotate(45deg);
  vertical-align: middle;
}
.primary-nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-blue-dark);
  min-width: 220px;
  padding: 4px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.15s,
    transform 0.15s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.primary-nav__list .menu-item-has-children:hover > .sub-menu,
.primary-nav__list .menu-item-has-children.opened > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.primary-nav__list .sub-menu a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.primary-nav__list .sub-menu a:hover {
  background: var(--brand-yellow);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  body.is-front .hero-photo {
    margin-top: 0;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brand-blue);
    display: none;
    flex-direction: column;
    padding: 0;
    z-index: 50;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .primary-nav.is-open {
    display: flex;
    padding-top: 4px;
  }
  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .primary-nav__list > li {
    display: block;
    width: 100%;
  }
  .primary-nav__list a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .primary-nav__list .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.18);
    width: 100%;
  }
  .primary-nav__list .sub-menu a {
    padding: 14px 24px 14px 44px;
    font-size: 14px;
  }
  .primary-nav__list .sub-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    display: none;
  }
  .primary-nav__list .menu-item-has-children.opened > .sub-menu {
    display: flex;
  }
}

/* ── Hero photo ─────────────────────────────────── */
.hero-photo {
  position: relative;
  background: var(--brand-blue-dark);
  overflow: hidden;
}
.hero-photo__img,
.hero-photo__ph {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 360px;
}
.hero-photo__img {
  object-fit: cover;
}
.hero-photo__ph {
  background:
    linear-gradient(135deg, rgba(16, 63, 119, 0.9), rgba(11, 45, 87, 0.95)),
    repeating-linear-gradient(
      45deg,
      rgba(193, 171, 0, 0.08) 0 14px,
      transparent 14px 28px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hero-photo__label {
  padding: 10px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .hero-photo__img {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}

/* ── Main ───────────────────────────────────────── */
.site-main {
  padding: 70px 0 80px;
}
body:not(.is-front) .site-main {
  padding-top: 50px;
}

/* ── Home ───────────────────────────────────────── */
.home__intro {
  text-align: center;
  margin-bottom: 28px;
}
.home__title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  margin-bottom: 24px;
}
.home__body {
  font-size: 16px;
}

/* ── spacer strip ────────────────────────── */
.spacer-black {
  background: var(--black);
  height: 80px;
}
.spacer-yellow {
  background: #bfab04;
  height: 24px;
}

/* ── Videos section ─────────────────────────────── */
.videos {
  background: var(--bg);
  padding: 60px 0 80px;
}
.videos__inner {
  text-align: center;
}
.videos__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.videos__lead {
  margin: 0 auto 32px;
  color: var(--ink-soft);
  max-width: 640px;
}
.video-thumb {
  display: inline-block;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.video-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}
.video-thumb__ph {
  aspect-ratio: 16 / 9;
  background: #1e3a5f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  position: relative;
}
.video-thumb__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(193, 171, 0, 0.18),
    transparent 60%
  );
}
.video-thumb__play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  padding-left: 6px;
  z-index: 1;
}
.video-thumb__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.65;
  z-index: 1;
}

/* ── IG CTA ─────────────────────────────────────── */
.ig-cta {
  background: var(--bg-alt);
  padding: 70px 0 90px;
}
.ig-cta__inner {
  text-align: center;
}
.ig-cta__title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ig-cta__handle {
  font-size: 26px;
  margin: 0 0 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ig-cta__handle a {
  color: var(--brand-yellow);
}
.ig-cta__handle a:hover {
  color: var(--brand-blue);
}
.ig-wall {
  list-style: none;
  margin: 0 auto 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 720px;
}
.ig-wall__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
}
.ig-wall__item a {
  display: block;
  width: 100%;
  height: 100%;
}
.ig-wall__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.ig-wall__item a:hover img {
  transform: scale(1.04);
}
@media (max-width: 520px) {
  .ig-wall {
    gap: 4px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition:
    transform 0.12s,
    background 0.15s,
    color 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--ig {
  background: #3b99f3;
  color: #fff;
}
.btn--ig:hover {
  background: #2a87df;
  color: #fff;
}

/* ── Page (non-front) ─────────────────────────── */
.page__header {
  text-align: left;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 18px;
}
.page__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.page__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand-yellow);
  margin-top: 12px;
}

/* ── Prose ─────────────────────────────────────── */
.prose {
  font-size: 16px;
  color: var(--ink-soft);
}
.prose p {
  margin: 0 0 1.2em;
  color: var(--ink);
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-weight: 700;
}
.prose h2 {
  font-size: 24px;
  margin: 1.8em 0 0.6em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}
.prose h3 {
  font-size: 19px;
  margin: 1.5em 0 0.5em;
  color: var(--brand-blue);
  font-weight: 700;
}
.prose h4 {
  font-size: 16px;
  margin: 1.3em 0 0.4em;
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  margin: 0.3em 0;
}
.prose strong {
  color: var(--ink);
}
.prose blockquote {
  border-left: 3px solid var(--brand-yellow);
  background: var(--bg-alt);
  margin: 1.5em 0;
  padding: 12px 18px;
  color: var(--ink-soft);
  font-style: italic;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}
.prose a {
  color: var(--brand-yellow);
}
.prose a:hover {
  color: var(--brand-blue);
}

/* Placeholder images in prose */
.ph {
  margin: 1.4em auto;
  max-width: 560px;
}
.ph__box {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-alt) 0 12px,
    #e8eaef 12px 24px
  );
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 44px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* Roster */
.team-photo {
  max-width: 100%;
}
.team-photo .ph__box {
  padding: 110px 16px;
  font-size: 14px;
}

.season-label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
  text-align: center;
  margin: 16px 0 28px;
}

.roster {
  margin: 24px 0 40px;
}
.wp-block-group.roster.is-layout-grid {
  gap: 16px;
}

.player {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(160deg, #0d1a2d 0%, #050a13 100%);
  isolation: isolate;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s;
  display: block;
}
.player::before {
  /* diagonal yellow accent in top-left */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--brand-yellow);
  z-index: 3;
}
.player:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(16, 63, 119, 0.55);
}

.player__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  aspect-ratio: auto;
  z-index: 1;
}
.player__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}
.player__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(5, 10, 19, 0.25) 72%,
    rgba(5, 10, 19, 0.95) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* empty state (frontend placeholder) */
.player__photo.ph .ph__box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.02) 0 12px,
      transparent 12px 24px
    ),
    linear-gradient(160deg, #13243d 0%, #050a13 100%);
  border: 0;
}

/* editor empty state */
.player__photo--empty {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #13243d 0%, #050a13 100%);
}
.player__photo--empty .components-placeholder {
  min-height: 100%;
  background: transparent;
  color: #fff;
  padding: 12px;
}
.player__photo--empty .components-placeholder__fieldset {
  font-size: 11px;
}

.player__num {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  font-size: 36px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow:
    0 0 14px rgba(193, 171, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
}

.player__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px 16px;
  color: #fff;
  display: block;
  border-top: 0;
}
.player .player__name,
.prose .player .player__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.player .player__year,
.prose .player .player__year {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .wp-block-group.roster.is-layout-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .player__num {
    font-size: 24px;
    top: 6px;
    right: 10px;
  }
  .player__meta {
    padding: 10px 12px 12px;
  }
  .player__name {
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .player__year {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
}

/* Tarina */
.page--tarina .prose h3 {
  display: inline-block;
  background: var(--brand-yellow);
  color: #fff;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.page--tarina .prose h2 {
  color: var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 10px;
  margin-top: 2.5em;
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--brand-blue);
  color: #ccc;
  margin-top: 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 60px 24px 40px;
}
.contact-block {
  font-size: 14px;
}
.contact-block__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-yellow);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}
.contact-list .ci {
  color: var(--brand-yellow);
  margin-top: 3px;
  display: inline-flex;
}
.contact-list a {
  color: var(--brand-yellow);
  word-break: break-word;
}
.contact-list a:hover {
  color: #fff;
}
.contact-list strong {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.seuraa {
  display: flex;
  align-items: center;
  gap: 14px;
}
.seuraa__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.social--light a {
  color: #fff;
  background: transparent;
}
.social--light a:hover {
  background: var(--brand-yellow);
  color: var(--black);
}

.site-footer__copy {
  margin: 0;
  color: #999;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 48px 24px 28px;
  }
}
@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
  .site-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
