/* ================================
   Video PC: Desktop Optimized Styles
   File: promotional-bar-video-desktop.css
   ================================ */

.section-video-pc .section-wrapper {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Grid layout - uses inline CSS variables */
.section-video-pc .promotional-bar--wrapper-card {
  display: grid;
  grid-template-columns: var(--desktop-video-width) var(--desktop-content-width);
  gap: var(--desktop-gap);
  align-items: start;
  max-width: var(--desktop-container-width);
  margin: 0 auto;
  padding: var(--desktop-padding);
}

/* Left side */
.section-video-pc .promotional-bar--left {
  position: relative;
  width: 100%;
}

/* Allow the video area to grow */
.section-video-pc .promotional-bar--left-content {
  align-items: flex-start;
}

/* Remove upstream width limits */
.section-video-pc .promotional-bar--video-container,
.section-video-pc .pb-video-stack,
.section-video-pc .promotional-bar--video {
  width: 100%;
  max-width: none !important;
}

.section-video-pc .promotional-bar--video-container {
  flex: 1 1 auto;
  min-width: 0;
}

/* VIDEO CARD */
.section-video-pc .desktop-video-card {
  width: 100%;
  border-radius: var(--desktop-border-radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #000;
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Ensure media fills */
.section-video-pc .desktop-video-card img,
.section-video-pc .desktop-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-video-pc .desktop-video-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* Overlay */
.section-video-pc .desktop-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.section-video-pc .desktop-video-card:hover .desktop-video-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.section-video-pc .play-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.section-video-pc .play-button-circle {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.section-video-pc .desktop-video-card:hover .play-button-circle {
  transform: scale(1.1);
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.section-video-pc .play-text-container {
  color: white;
}

.section-video-pc .play-text-main {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.section-video-pc .play-text-sub {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

/* Video info bottom */
.section-video-pc .desktop-video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 24px;
  color: white;
}

.section-video-pc .desktop-video-info h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.section-video-pc .desktop-video-info .video-description {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

/* Right side */
.section-video-pc .promotional-bar--right {
  padding: 40px 0 40px 40px;
  width: 100%;
}

.section-video-pc .promotional-bar--main-heading {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 100%;
}

.section-video-pc .promotional-bar--subheading {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 24px 0;
  max-width: 100%;
}

.section-video-pc .promotional-bar--text-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 32px 0;
  max-width: 100%;
}

/* Feature list - LARGER FONT SIZE as requested */
.section-video-pc .feature-list {
  margin: 32px 0;
  width: 100%;
  font-size: 1.1rem !important; /* Added this line for larger font */
}

.section-video-pc .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
  font-size: 1.1rem !important; /* Added this line */
}

.section-video-pc .feature-item svg {
  color: #0f945d;
  flex-shrink: 0;
}

/* Reviews */
.section-video-pc .desktop-reviews {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.section-video-pc .reviews-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.9);
}

.section-video-pc .gr-average {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-video-pc .gr-average-number {
  font-size: 32px;
  font-weight: 700;
  color: white;
}

.section-video-pc .gr-stars {
  font-size: 24px;
  color: #FFD700;
}

/* CTA Button - REMOVED BUTTON ICON STYLES */
.section-video-pc .desktop-cta-button {
  width: 100%;
  padding: 20px 32px;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #0f945d 0%, #0a7a4a 100%);
  border: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(15, 148, 93, 0.3);
  max-width: 100%;
  color: white !important; /* Added to ensure white text */
}

.section-video-pc .desktop-cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(15, 148, 93, 0.4);
  background: linear-gradient(135deg, #10a566 0%, #0b8b54 100%);
}

/* REMOVED BUTTON ICON STYLES since we removed the + icon */
/* .section-video-pc .button-icon {
  transition: transform 0.3s ease;
}

.section-video-pc .desktop-cta-button:hover .button-icon {
  transform: translateX(4px);
} */

/* Trust indicators - SMALLER FONT SIZE as requested */
.section-video-pc .desktop-trust {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.section-video-pc .desktop-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  width: 100%;
}

.section-video-pc .desktop-trust .trust-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(4px);
}

.section-video-pc .trust-text-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 0.8rem !important; /* SMALLER as requested */
}

.section-video-pc .trust-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.section-video-pc .trust-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Desktop modal */
.section-video-pc .desktop-video-modal .pb-video-modal__dialog {
  width: 90vw;
  max-width: 1200px;
  height: 90vh;
  max-height: 675px;
  border-radius: 20px;
}

/* Collection grid */
.section-video-pc .desktop-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.section-video-pc .desktop-collection-grid .promotional-bar--collection-item {
  text-align: center;
}

.section-video-pc .desktop-collection-grid .collection-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Hide mobile elements */
.section-video-pc .mobile-only {
  display: none !important;
}

/* ==========================================================
   DESKTOP HERO LAYOUT (CENTERED gutters + slightly more right)
   ========================================================== */

@media (min-width: 1025px) {
  /* Fix old theme rule (.promotional-bar--video height:140px) */
  .section-video-pc .promotional-bar--video.desktop-video-card {
    height: auto !important;
    max-width: none !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }

  /* Center the whole block (equal left/right gutters) */
  .section-video-pc .promotional-bar--wrapper-card {
    grid-template-columns: 58% 42% !important;          /* wider text column */
    max-width: min(1600px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;

    /* This moves EVERYTHING a bit to the right while keeping symmetry */
    padding-left: calc(var(--desktop-padding) + 40px) !important;
    padding-right: var(--desktop-padding) !important;

    gap: calc(var(--desktop-gap) - 20px) !important;
    align-items: center;
  }

  /* Keep video "hero", but less extreme left pull so gutters are equal */
  .section-video-pc .promotional-bar--left {
    margin-left: -80px !important;  /* was -140; smaller = more to the right */
    padding-left: 0 !important;
  }

  /* Make the video taller */
  .section-video-pc .desktop-video-card {
    max-width: 1250px !important;
    min-height: 420px !important;
    margin: 0 !important;
  }

  .section-video-pc .desktop-video-card .video-preview,
  .section-video-pc .desktop-video-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  /* Reduce right padding so text uses width (less wrapping = less height) */
  .section-video-pc .promotional-bar--right {
    padding: 32px 0 32px 24px !important;
  }
}

/* Extra large desktops */
@media (min-width: 1440px) {
  .section-video-pc .promotional-bar--left {
    margin-left: -110px !important; /* still hero, but balanced */
  }

  .section-video-pc .desktop-video-card {
    min-height: 520px !important;
    max-width: 1350px !important;
  }

  .section-video-pc .promotional-bar--wrapper-card {
    grid-template-columns: 56% 44% !important;
    padding-left: calc(var(--desktop-padding) + 60px) !important;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .section-video-pc .promotional-bar--wrapper-card {
    grid-template-columns: 1fr;
    max-width: 800px;
    gap: 40px;
  }

  .section-video-pc .promotional-bar--right {
    padding-left: 0;
  }

  .section-video-pc .desktop-video-card {
    max-width: 800px;
    margin: 0 auto;
    min-height: unset !important;
  }
}

@media (max-width: 767px) {
  .section-video-pc .desktop-only {
    display: none !important;
  }

  .section-video-pc .mobile-only {
    display: block !important;
  }

  .section-video-pc .promotional-bar--wrapper-card {
    padding: 16px;
    gap: 32px;
  }

  .section-video-pc .promotional-bar--right {
    padding: 20px 0;
  }
}
/* =========================================================
   FIX: Modal ALWAYS centered (overrides theme defaults)
   Put this at the VERY BOTTOM of promotional-bar-video-desktop.css
   ========================================================= */

.section-video-pc .pb-video-modal.desktop-video-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;

  /* the actual centering */
  display: none !important;
  align-items: center !important;
  justify-content: center !important;

  /* safe padding so it never touches edges */
  padding: 16px !important;
  box-sizing: border-box !important;

  /* ensure nothing else “pushes” it */
  margin: 0 !important;
}

.section-video-pc .pb-video-modal.desktop-video-modal.is-open{
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.section-video-pc .pb-video-modal__overlay{
  position: absolute !important;
  inset: 0 !important;
}

/* Kill any top/left/transform centering hacks coming from the theme */
.section-video-pc .pb-video-modal.desktop-video-modal .pb-video-modal__dialog{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;

  transform: none !important;
  margin: 0 !important;

  width: min(94vw, 1200px) !important;
  max-height: calc(100dvh - 32px) !important;

  height: auto !important;       /* IMPORTANT: remove forced 90vh */
  border-radius: 20px !important;
  overflow: visible !important;
}

/* Make the media box work with dynamic aspect ratio (portrait supported) */
.section-video-pc .pb-video-modal__media{
  position: relative !important;
  width: 100% !important;

  /* remove old padding-bottom hack */
  height: auto !important;
  padding-bottom: 0 !important;

  /* dynamic aspect ratio set by JS (fallback 16:9) */
  aspect-ratio: var(--pb-modal-ar, 16 / 9) !important;

  max-height: 78dvh !important;
  background: #000 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.section-video-pc .pb-video-modal__media video{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* Mobile safe-area padding */
@media (max-width: 767px){
  .section-video-pc .pb-video-modal.desktop-video-modal{
    padding: calc(14px + env(safe-area-inset-top)) 14px
             calc(14px + env(safe-area-inset-bottom)) 14px !important;
    min-height: 100dvh !important;
  }
}
