/* ══════════════════════════════════════════════════════
   Vibes Hero Banner — hero-banner.css
   Three layouts: cinema | mosaic | spotlight
   Brand tokens: --vhb-accent injected via PHP
══════════════════════════════════════════════════════ */

/* ── RESET / TOKENS ── */
:root {
  --vhb-accent:   #FF6B35;
  --vhb-dark:     #0D1B2A;
  --vhb-mid:      #1A2E42;
  --vhb-light:    rgba(255,255,255,0.92);
  --vhb-muted:    rgba(255,255,255,0.60);
  --vhb-radius:   14px;
  --vhb-speed:    6s;
  --vhb-ease:     cubic-bezier(.4,0,.2,1);
  --vhb-font-h:   'Georgia', 'Times New Roman', serif;
  --vhb-font-b:   system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.vhb *, .vhb *::before, .vhb *::after { box-sizing: border-box; margin: 0; padding: 0; }
.vhb a,
.vhb a:link,
.vhb a:visited,
.vhb a:hover,
.vhb a:focus,
.vhb a:active { text-decoration: none !important; color: inherit; }
.vhb img { display: block; }

/* ── SHARED ATOMS ── */
.vhb-badge {
  display: inline-block;
  width: fit-content !important;
  max-width: fit-content !important;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--vhb-accent);
  color: #fff;
  font: 700 11px/1 var(--vhb-font-b);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vhb-badge--sm { font-size: 10px; padding: 3px 9px; }
.vhb-badge--lg { font-size: 13px; padding: 6px 16px; }

.vhb-btn {
  display: inline-flex;
  width: fit-content !important;
  max-width: fit-content !important;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--vhb-accent);
  color: #fff !important;
  font: 600 14px/1 var(--vhb-font-b);
  transition: background .2s, transform .15s;
  white-space: nowrap;
  text-decoration: none !important;
}
.vhb-btn:hover { background: #e85a24; transform: translateX(2px); }
.vhb-btn--inline { padding: 8px 18px; font-size: 13px; }

.vhb-avatar {
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
  flex-shrink: 0;
  width: 36px !important;
  height: 36px !important;
}

.vhb-meta__sep { opacity: .4; padding: 0 2px; }

/* ══════════════════════════════════════════════════════
   LAYOUT A — CINEMA
══════════════════════════════════════════════════════ */
.vhb--cinema {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 560px;
  max-height: 640px;
  border-radius: var(--vhb-radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
  margin: 0 0 48px;
}

/* BG image */
.vhb-cinema__main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.vhb-cinema__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .5s var(--vhb-ease), transform 8s ease;
  transform: scale(1.04);
}
.vhb--cinema:hover .vhb-cinema__bg { transform: scale(1); }

/* multi-stop gradient overlay */
.vhb-cinema__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,16,28,.95) 0%,
    rgba(8,16,28,.60) 40%,
    rgba(8,16,28,.10) 70%,
    transparent 100%
  );
}

.vhb-cinema__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vhb-cinema__title {
  font: 700 clamp(22px,3vw,34px)/1.2 var(--vhb-font-h);
  color: #fff;
  max-width: 560px;
}
.vhb-cinema__title a { color: inherit; }
.vhb-cinema__title a:hover { color: var(--vhb-accent); }

.vhb-cinema__excerpt {
  font: 400 15px/1.6 var(--vhb-font-b);
  color: var(--vhb-muted);
  max-width: 480px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vhb-cinema__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--vhb-muted);
  font: 400 13px/1 var(--vhb-font-b);
}
.vhb-meta__author { color: var(--vhb-light); font-weight: 600; }

/* slide counter */
.vhb-cinema__counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 600 13px/1 var(--vhb-font-b);
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: .04em;
}

/* nav arrows — hidden until hover, both use chevron style */
.vhb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .15s, opacity .2s;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}
.vhb-cinema__main:hover .vhb-arrow {
  opacity: 1;
  pointer-events: auto;
}
.vhb-arrow:hover { background: var(--vhb-accent); }
.vhb-arrow--prev { left: 20px; }
.vhb-arrow--prev:hover { transform: translateY(-50%) scale(1.08); }
.vhb-arrow--next { right: 20px; transform: translateY(-50%) rotate(180deg); }
.vhb-arrow--next:hover { transform: translateY(-50%) rotate(180deg) scale(1.08); }

/* progress bar */
.vhb-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.15);
}
.vhb-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--vhb-accent);
  transition: width .1s linear;
}
.vhb-progress__bar.vhb-animating {
  transition: width var(--vhb-speed) linear;
  width: 100%;
}

/* ── SIDE STACK ── */
.vhb-cinema__side {
  background: var(--vhb-dark);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
.vhb-cinema__side::-webkit-scrollbar { display: none; }

.vhb-side__label {
  padding: 20px 20px 12px;
  font: 700 10px/1 var(--vhb-font-b);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.vhb-side-card {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s;
  cursor: pointer;
}
.vhb-side-card:hover,
.vhb-side-card--active { background: rgba(255,255,255,.06); }
.vhb-side-card--active { border-left: 3px solid var(--vhb-accent); }

.vhb-side-card__thumb {
  flex-shrink: 0;
  width: 72px; height: 56px;
  border-radius: 8px;
  background-image: var(--thumb);
  background-size: cover;
  background-position: center;
}

.vhb-side-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.vhb-side-card__title {
  font: 600 13px/1.35 var(--vhb-font-b);
  color: var(--vhb-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vhb-side-card:hover .vhb-side-card__title { color: var(--vhb-accent); }
.vhb-side-card__date {
  font: 400 11px/1 var(--vhb-font-b);
  color: rgba(255,255,255,.4);
}

.vhb-side__more {
  margin: auto 20px 20px;
  display: inline-block;
  font: 600 13px/1 var(--vhb-font-b);
  color: var(--vhb-accent);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  transition: letter-spacing .2s;
}
.vhb-side__more:hover { letter-spacing: .03em; }

/* ── CINEMA TRANSITIONS ── */
.vhb-cinema__content.vhb-fade-out { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.vhb-cinema__content.vhb-fade-in  { opacity: 1; transform: translateY(0);   transition: opacity .4s .1s, transform .4s .1s; }


/* ══════════════════════════════════════════════════════
   LAYOUT B — MOSAIC
══════════════════════════════════════════════════════ */
.vhb--mosaic { margin: 0 0 48px; }

.vhb-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 340px 240px;
  gap: 6px;
  border-radius: var(--vhb-radius);
  overflow: hidden;
}

.vhb-mosaic__tile {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform .4s var(--vhb-ease);
}
.vhb-mosaic__tile:hover { transform: scale(1.02); z-index: 2; }

.vhb-mosaic__tile--hero {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.vhb-mosaic__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,16,28,.90) 0%,
    rgba(8,16,28,.25) 50%,
    transparent 100%
  );
  transition: opacity .3s;
}
.vhb-mosaic__tile:hover .vhb-mosaic__scrim { opacity: .8; }

.vhb-mosaic__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vhb-mosaic__title {
  font: 700 clamp(14px,1.6vw,20px)/1.25 var(--vhb-font-h);
  color: #fff;
}
.vhb-mosaic__tile--hero .vhb-mosaic__title { font-size: clamp(20px,2.4vw,30px); }

.vhb-mosaic__excerpt {
  font: 400 14px/1.55 var(--vhb-font-b);
  color: var(--vhb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vhb-mosaic__meta {
  font: 400 12px/1 var(--vhb-font-b);
  color: rgba(255,255,255,.5);
}


/* ══════════════════════════════════════════════════════
   LAYOUT C — SPOTLIGHT
══════════════════════════════════════════════════════ */
.vhb--spotlight { margin: 0 0 48px; }

.vhb-spotlight__hero {
  position: relative;
  height: 520px;
  border-radius: var(--vhb-radius) var(--vhb-radius) 0 0;
  overflow: hidden;
}

.vhb-spotlight__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.vhb-spotlight__hero:hover .vhb-spotlight__img { transform: scale(1.04); }

.vhb-spotlight__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(8,16,28,.95) 0%,
    rgba(8,16,28,.70) 40%,
    rgba(8,16,28,.10) 100%
  );
}

.vhb-spotlight__text {
  position: absolute;
  bottom: 0; left: 0;
  max-width: 600px;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vhb-spotlight__title {
  font: 700 clamp(26px,3.2vw,42px)/1.15 var(--vhb-font-h);
  color: #fff;
}
.vhb-spotlight__title a:hover { color: var(--vhb-accent); }

.vhb-spotlight__excerpt {
  font: 400 16px/1.65 var(--vhb-font-b);
  color: var(--vhb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vhb-spotlight__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--vhb-muted);
  font: 400 14px/1 var(--vhb-font-b);
}

/* ── STRIP ── */
.vhb-spotlight__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-radius: 0 0 var(--vhb-radius) var(--vhb-radius);
  overflow: hidden;
  background: var(--vhb-dark);
  border-top: 3px solid var(--vhb-accent);
}

.vhb-strip-card {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background .2s;
}
.vhb-strip-card:last-child { border-right: none; }
.vhb-strip-card:hover { background: rgba(255,255,255,.05); }

.vhb-strip-card__img {
  height: 130px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.vhb-strip-card__body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.vhb-strip-card__title {
  font: 600 13px/1.4 var(--vhb-font-b);
  color: var(--vhb-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vhb-strip-card:hover .vhb-strip-card__title { color: var(--vhb-accent); }
.vhb-strip-card__date {
  font: 400 11px/1 var(--vhb-font-b);
  color: rgba(255,255,255,.38);
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Cinema */
  .vhb--cinema { grid-template-columns: 1fr; grid-template-rows: 420px auto; max-height: none; }
  .vhb-cinema__side { max-height: 260px; }

  /* Mosaic */
  .vhb-mosaic__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .vhb-mosaic__tile--hero { grid-column: 1 / 3; grid-row: 1; }

  /* Spotlight */
  .vhb-spotlight__hero { height: 380px; }
  .vhb-spotlight__text { padding: 28px 28px; max-width: 100%; }
  .vhb-spotlight__strip { grid-template-columns: repeat(3, 1fr); }
  .vhb-strip-card:nth-child(n+4) { display: none; }
}

@media (max-width: 600px) {
  /* Cinema */
  .vhb-cinema__content { padding: 24px 20px; }
  .vhb-cinema__title { font-size: 20px; }
  .vhb-cinema__excerpt { display: none; }

  /* Mosaic */
  .vhb-mosaic__grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 180px); }
  .vhb-mosaic__tile--hero { grid-column: auto; grid-row: auto; }

  /* Spotlight */
  .vhb-spotlight__hero { height: 320px; }
  .vhb-spotlight__strip { grid-template-columns: 1fr 1fr; }
  .vhb-strip-card:nth-child(n+3) { display: none; }
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .vhb-cinema__bg,
  .vhb-spotlight__img,
  .vhb-cinema__content,
  .vhb-mosaic__tile,
  .vhb-btn { transition: none !important; animation: none !important; }
}
