/* ==========================================================================
   BeatViz.ai Marquee Widget Stylesheet
   Pure CSS - Zero External Dependencies
   ========================================================================== */

:root {
  --bv-card-height: 280px;
  --bv-card-width-landscape: calc(var(--bv-card-height) * 16 / 9); /* ~497.78px */
  --bv-card-width-portrait: calc(var(--bv-card-height) * 3 / 4);   /* 210px */
  --bv-card-gap: 12px;
  --bv-card-radius: 12px;
  --bv-fade-width: 140px;
}

@media (max-width: 768px) {
  :root {
    --bv-card-height: 200px;
    --bv-fade-width: 60px;
  }
}

/* Container & Layout */
.bv-showcase-section {
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: #000000;
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.bv-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bv-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.bv-title-dim {
  color: rgba(255, 255, 255, 0.3);
}

.bv-subtitle {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Wrapper with left/right fade masks */
.bv-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bv-fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--bv-fade-width);
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to right, #000000 0%, transparent 100%);
}

.bv-fade-right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--bv-fade-width);
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to left, #000000 0%, transparent 100%);
}

.bv-marquee-stack {
  display: flex;
  flex-direction: column;
  gap: var(--bv-card-gap);
}

.bv-marquee-row {
  overflow: hidden;
  width: 100%;
}

/* Marquee Tracks */
.bv-marquee-track {
  display: flex;
  gap: var(--bv-card-gap);
  width: max-content;
  will-change: transform;
}

.marquee-marquee-left-28 {
  animation: bv-marquee-left-28 28s linear infinite;
}

.marquee-marquee-right-36 {
  animation: bv-marquee-right-36 36s linear infinite;
}

.marquee-marquee-left-22 {
  animation: bv-marquee-left-22 22s linear infinite;
}

/* Pause on hover */
.bv-marquee-track:hover,
.marquee-marquee-left-28:hover,
.marquee-marquee-right-36:hover,
.marquee-marquee-left-22:hover {
  animation-play-state: paused !important;
}

/* Keyframes: 33.333% shift equals 1 of 3 repeated segments */
@keyframes bv-marquee-left-28 {
  from { transform: translateX(0%); }
  to   { transform: translateX(-33.333333%); }
}

@keyframes bv-marquee-right-36 {
  from { transform: translateX(-33.333333%); }
  to   { transform: translateX(0%); }
}

@keyframes bv-marquee-left-22 {
  from { transform: translateX(0%); }
  to   { transform: translateX(-33.333333%); }
}

/* Video Card & Hover Effects */
.bv-card {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--bv-card-radius);
  background-color: #111111;
  box-sizing: border-box;
  cursor: pointer;
}

.bv-card-landscape {
  width: var(--bv-card-width-landscape);
  height: var(--bv-card-height);
}

.bv-card-portrait {
  width: var(--bv-card-width-portrait);
  height: var(--bv-card-height);
}

.bv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bv-card:hover .bv-video {
  transform: scale(1.05);
}

.bv-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  border-radius: var(--bv-card-radius);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.bv-card:hover .bv-overlay {
  background-color: rgba(0, 0, 0, 0.3);
}

.bv-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--bv-card-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* CTA Button */
.bv-cta-wrap {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bv-cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: #c8ff00;
  color: #000000;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(200, 255, 0, 0.35);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.bv-cta-btn:hover {
  background-color: #b8ef00;
  transform: scale(1.05);
  box-shadow: 0 15px 30px -5px rgba(200, 255, 0, 0.45);
}

.bv-cta-btn:active {
  transform: scale(0.97);
}
