/**
 * ============================================
 * ASL VIDEO SECTION - STYLES
 * Version: 2.0 - Design System + BEM + Isolated
 * ============================================
 */

/* ========================================
   COMPONENT WRAPPER
======================================== */

/* Component Wrapper - Handles max-width */
.asl-component-wrapper.asl-video-wrapper {
  max-width: var(--max-width-container) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* ========================================
   SECTION - FULL WIDTH BREAKOUT
======================================== */

/* Apply full-width breakout to ALL screen sizes */
body .asl-video-section {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Main Section - Design System Variables */
.asl-video-section {
  width: 100%;
  padding: var(--padding-desktop) var(--padding-sides-desktop) !important;
  background: var(--color-white) !important;
  position: relative;
}

/* Tablet Section Padding */
@media (max-width: 1024px) {
  .asl-video-section {
    padding: var(--padding-tablet) var(--padding-sides-desktop) !important;
  }
}

/* Mobile Section Padding */
@media (max-width: 768px) {
  .asl-video-section {
    padding: var(--padding-mobile) var(--padding-sides-mobile) !important;
  }
}

/* ========================================
   HEADER SECTION
======================================== */

.asl-video-header {
  text-align: center;
  margin-bottom: var(--gap-large);
}

/* ========================================
   SECTION TITLE (H3) - NO WRAPPER PREFIX
======================================== */

.asl-video-section-title {
  font-family: var(--font-body) !important;
  font-size: var(--font-h3) !important;
  font-weight: var(--weight-medium) !important;
  line-height: var(--line-height-h3) !important;
  letter-spacing: var(--letter-spacing-h3) !important;
  color: var(--color-navy) !important;
  margin: 0 0 24px 0 !important;
}

/* Mobile H3 */
@media (max-width: 768px) {
  .asl-video-section-title {
    font-size: var(--font-h3-mobile) !important;
  }
}

/* ========================================
   DESCRIPTION - NO WRAPPER PREFIX
======================================== */

.asl-video-description {
  font-family: var(--font-body) !important;
  font-size: var(--font-body) !important;
  font-weight: var(--weight-regular) !important;
  line-height: var(--line-height-body) !important;
  letter-spacing: var(--letter-spacing-body) !important;
  color: var(--color-charcoal) !important;
  max-width: var(--max-width-content) !important;
  margin: 0 auto;
}

/* Mobile Description */
@media (max-width: 768px) {
  .asl-video-description {
    font-size: var(--font-body-mobile) !important;
  }
}

/* ========================================
   CONTAINER - YES WRAPPER PREFIX
======================================== */

.asl-video-wrapper .asl-video-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   VIDEO GRID
======================================== */

.asl-video-wrapper .asl-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

/* Tablet Grid */
@media (max-width: 1024px) {
  .asl-video-wrapper .asl-video-grid {
    gap: 24px;
  }
}

/* Mobile Grid */
@media (max-width: 768px) {
  .asl-video-wrapper .asl-video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
}

/* ========================================
   VIDEO CARD
======================================== */

.asl-video-wrapper .asl-video-card {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asl-video-wrapper .asl-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
}

/* ========================================
   VIDEO THUMBNAIL
======================================== */

.asl-video-wrapper .asl-video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy) 0%, #2b3e50 100%);
}

.asl-video-wrapper .asl-video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.asl-video-wrapper .asl-video-card:hover .asl-video-thumbnail img {
  transform: scale(1.05);
}

/* ========================================
   VIDEO OVERLAY
======================================== */

.asl-video-wrapper .asl-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ========================================
   PLAY BUTTON
======================================== */

.asl-video-wrapper .asl-video-play-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 3px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.asl-video-wrapper .asl-video-play-button:hover,
.asl-video-wrapper .asl-video-play-button:focus {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  outline: none;
}

.asl-video-wrapper .asl-video-play-button:active {
  transform: scale(1.05);
}

.asl-video-wrapper .asl-video-play-button svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
  color: var(--color-white);
  fill: var(--color-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

/* Tablet Play Button */
@media (max-width: 1024px) {
  .asl-video-wrapper .asl-video-play-button {
    width: 70px;
    height: 70px;
  }

  .asl-video-wrapper .asl-video-play-button svg {
    width: 28px;
    height: 28px;
  }
}

/* Mobile Play Button */
@media (max-width: 768px) {
  .asl-video-wrapper .asl-video-play-button {
    width: 64px;
    height: 64px;
  }

  .asl-video-wrapper .asl-video-play-button svg {
    width: 24px;
    height: 24px;
  }
}

/* ========================================
   VIDEO PLAYER
======================================== */

.asl-video-wrapper .asl-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000000;
}

.asl-video-wrapper .asl-video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   VIDEO CONTENT (Card Footer)
======================================== */

.asl-video-wrapper .asl-video-content {
  padding: 28px;
  background: var(--color-white);
}

/* Tablet Content Padding */
@media (max-width: 1024px) {
  .asl-video-wrapper .asl-video-content {
    padding: 24px;
  }
}

/* Mobile Content Padding */
@media (max-width: 768px) {
  .asl-video-wrapper .asl-video-content {
    padding: 20px;
  }
}

/* ========================================
   CARD TITLE (H3) - YES WRAPPER PREFIX
======================================== */

.asl-video-wrapper .asl-video-title {
  font-family: var(--font-body) !important;
  font-size: var(--font-h3) !important;
  font-weight: var(--weight-medium) !important;
  line-height: var(--line-height-h3) !important;
  letter-spacing: var(--letter-spacing-h3) !important;
  color: var(--color-navy) !important;
  margin: 0 0 8px 0 !important;
}

/* Mobile Card Title */
@media (max-width: 768px) {
  .asl-video-wrapper .asl-video-title {
    font-size: var(--font-h3-mobile) !important;
  }
}

/* ========================================
   CARD SUBTITLE
======================================== */

.asl-video-wrapper .asl-video-subtitle {
  font-family: var(--font-body) !important;
  font-size: var(--font-body) !important;
  font-weight: var(--weight-regular) !important;
  line-height: var(--line-height-body) !important;
  letter-spacing: var(--letter-spacing-body) !important;
  color: var(--color-charcoal) !important;
  opacity: 0.8;
  margin: 0 !important;
}

/* Mobile Card Subtitle */
@media (max-width: 768px) {
  .asl-video-wrapper .asl-video-subtitle {
    font-size: var(--font-body-mobile) !important;
  }
}

/* ========================================
   ACCENT LINE (Bottom Border on Hover)
======================================== */

.asl-video-wrapper .asl-video-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c77c5d 0%, #c6a15b 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.asl-video-wrapper .asl-video-card:hover::after {
  transform: scaleX(1);
}

/* ========================================
   ACCESSIBILITY
======================================== */

.asl-video-wrapper .asl-video-play-button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
}
