


/* ============================================
   HWM Showcase — Standalone CSS
   No Tailwind, no React, no jQuery dependency.
   Enqueue in WordPress via wp_enqueue_style().
   ============================================ */

/* ── Reset / Container ── */
.hwm-showcase {
  --hwm-bg: hsl(240, 30%, 10%);
  --hwm-text: #fff;
  --hwm-text-muted: rgba(255,255,255,0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--hwm-bg);
  color: var(--hwm-text);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hwm-showcase *, .hwm-showcase *::before, .hwm-showcase *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Grain texture overlay ── */
.hwm-showcase::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Inner wrapper ── */
.hwm-showcase-inner {
  position: relative;
  z-index: 2;
  max-width: 2000px;
  margin: 0 auto;
  padding: 3rem 0 3rem;
}

@media (min-width: 768px) {
  .hwm-showcase-inner {
    padding: 5rem 2rem 5rem;
  }
}

/* ── Header ── */
.hwm-header {
  text-align: center;
  margin-bottom: 3.5rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .hwm-header {
    margin-bottom: 5rem;
  }
}

.hwm-header h1 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hwm-header h1 { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .hwm-header h1 { font-size: 4.5rem; }
}

.hwm-header h1 span {
  background: linear-gradient(to right, hsl(220,90%,60%), hsl(330,85%,55%), hsl(40,95%,55%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hwm-header p {
  color: var(--hwm-text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hwm-header p { font-size: 1.25rem; }
}

/* ── Category Row ── */
.hwm-row {
  margin-bottom: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .hwm-row { margin-bottom: 3.5rem; }
}

.hwm-row h2 {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .hwm-row h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 0;
  }
}

/* ── Carousel Track ── */
.hwm-carousel-wrap {
  position: relative;
}

.hwm-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-left: 1rem;
  padding-right: 4rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hwm-carousel::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .hwm-carousel {
    gap: 1rem;
    padding-left: 0;
    padding-right: 6rem;
  }
}

/* ── Right edge fade ── */
.hwm-carousel-wrap::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 4rem;
  background: linear-gradient(to left, var(--hwm-bg), transparent);
  z-index: 3;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hwm-carousel-wrap::after { width: 6rem; }
}

/* ── Scroll buttons ── */
.hwm-scroll-btn {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 4;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 1.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  .hwm-scroll-btn { width: 3.5rem; }
}

.hwm-carousel-wrap:hover .hwm-scroll-btn { opacity: 1; }

.hwm-scroll-btn--left {
  left: 0;
  background: linear-gradient(to right, var(--hwm-bg), transparent);
}

.hwm-scroll-btn--right {
  right: 0;
  background: linear-gradient(to left, var(--hwm-bg), transparent);
}

/* ── Video Card ── */
.hwm-card {
  flex-shrink: 0;
  width: 280px;
  cursor: pointer;
  position: relative;
}

@media (min-width: 768px) { .hwm-card { width: 340px; } }
@media (min-width: 1024px) { .hwm-card { width: 400px; } }

.hwm-card-inner {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease;
}

.hwm-card:hover .hwm-card-inner {
  transform: scale(1.05);
  z-index: 5;
}

.hwm-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
  filter: brightness(0.85) saturate(0.7);
}

.hwm-card:hover img {
  filter: brightness(1) saturate(1);
}

/* ── Card gradient overlays ── */
.hwm-card-gradient {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.hwm-card:hover .hwm-card-gradient { opacity: 0.15; }

.hwm-card-bottom-gradient {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* ── Play button ── */
.hwm-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hwm-card:hover .hwm-play { opacity: 1; }

.hwm-play-outer {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hwm-play-inner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hwm-play-inner svg {
  width: 1rem;
  height: 1rem;
  fill: hsl(240,30%,10%);
  margin-left: 2px;
}

/* ── Card title ── */
.hwm-card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (min-width: 768px) {
  .hwm-card-title {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* ── Accent color utilities (applied via data-accent) ── */
.hwm-card[data-accent="0"] .hwm-card-gradient { background: linear-gradient(to top, hsl(220,90%,55%), hsl(250,80%,60%)); }
.hwm-card[data-accent="1"] .hwm-card-gradient { background: linear-gradient(to top, hsl(330,85%,55%), hsl(350,80%,50%)); }
.hwm-card[data-accent="2"] .hwm-card-gradient { background: linear-gradient(to top, hsl(40,95%,55%), hsl(25,90%,50%)); }
.hwm-card[data-accent="3"] .hwm-card-gradient { background: linear-gradient(to top, hsl(155,80%,40%), hsl(170,70%,45%)); }
.hwm-card[data-accent="4"] .hwm-card-gradient { background: linear-gradient(to top, hsl(280,75%,55%), hsl(300,70%,50%)); }
.hwm-card[data-accent="5"] .hwm-card-gradient { background: linear-gradient(to top, hsl(10,85%,55%), hsl(25,80%,50%)); }

/* ── Lightbox ── */
.hwm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: hwmFadeIn 0.3s ease-out forwards;
}

@media (min-width: 768px) {
  .hwm-lightbox { padding: 2rem; }
}

.hwm-lightbox-content {
  position: relative;
  width: 100%;
  max-width: 64rem;
  animation: hwmScaleIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hwm-lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

@media (min-width: 768px) {
  .hwm-lightbox-close {
    right: -3rem;
    top: 0;
  }
}

.hwm-lightbox-close:hover { background: rgba(255,255,255,0.2); }

.hwm-lightbox-player {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.hwm-lightbox-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hwm-lightbox-title {
  color: rgba(255,255,255,0.8);
  text-align: center;
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Animations ── */
@keyframes hwmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hwmScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
