/* ==========================================================================
   DC Dental Clinic - Video Interviews Section
   File: sections/reviews/02-video-interviews/style.css
   Author: GLM-5.3 | Lead CSS Specialist
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SECTION & CONTAINER
   -------------------------------------------------------------------------- */
.dc-video-reviews-section {
  background: #F8FAFC;
  padding: 70px 0;
  overflow: hidden;
}

.dc-video-reviews-section .dc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   2. SECTION HEADER
   -------------------------------------------------------------------------- */
.dc-video-reviews-section .dc-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.dc-video-reviews-section .dc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  color: #C9A84C;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.dc-video-reviews-section .dc-section-title {
  font-size: 32px;
  font-weight: 700;
  color: #071322;
  margin: 0 0 12px;
  font-family: 'Prompt', sans-serif;
  line-height: 1.3;
}

.dc-video-reviews-section .dc-section-subtitle {
  font-size: 16px;
  color: #64748B;
  margin: 0;
  line-height: 1.6;
  font-family: 'Sarabun', sans-serif;
}

/* --------------------------------------------------------------------------
   3. FILTER BUTTONS
   -------------------------------------------------------------------------- */
.dc-video-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.dc-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFF;
  color: #071322;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Sarabun', sans-serif;
  line-height: 1.4;
}

.dc-filter-btn:hover {
  border-color: #071322;
  background: #F1F5F9;
}

.dc-filter-btn:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.dc-filter-btn.active,
.dc-filter-btn.is-active {
  background: #071322 !important;
  color: #C9A84C !important;
  border-color: #071322 !important;
  box-shadow: 0 4px 14px rgba(7, 19, 34, 0.18);
}

/* --------------------------------------------------------------------------
   4. VIDEO GRID & CARDS
   -------------------------------------------------------------------------- */
.dc-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.dc-video-card {
  background: #FFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(7, 19, 34, 0.06);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  height: auto !important;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.dc-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(7, 19, 34, 0.12);
  border-color: #C9A84C;
}

.dc-video-card:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   5. THUMBNAIL (4:3 ASPECT, SMART FACE POSITIONING)
   -------------------------------------------------------------------------- */
.dc-video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  min-height: 240px;
  overflow: hidden;
  background: #071322;
}

.dc-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.dc-video-card:hover .dc-video-thumbnail img {
  transform: scale(1.06);
}

/* Smart positioning — faces centered and clearly visible */
.dc-video-card[data-aspect="portrait"] .dc-video-thumbnail img {
  object-position: center 42% !important;
}

.dc-video-card[data-aspect="landscape"] .dc-video-thumbnail img {
  object-position: center center !important;
}

/* Overlay gradient at bottom of thumbnail */
.dc-video-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 19, 34, 0.65) 0%, rgba(7, 19, 34, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

/* Play button — bottom-right corner */
.dc-play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #C9A84C;
  color: #071322;
  border: 2px solid #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  cursor: pointer;
}

.dc-play-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  margin-left: 2px;
}

.dc-video-card:hover .dc-play-btn {
  transform: scale(1.15);
  background: #FFF;
  color: #C9A84C;
}

/* Badge — top-right corner */
.dc-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 19, 34, 0.85);
  color: #C9A84C;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  z-index: 2;
  font-family: 'Sarabun', sans-serif;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. CARD BODY
   -------------------------------------------------------------------------- */
.dc-video-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dc-video-treatment-tag {
  display: inline-block;
  color: #A8873A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: 'Sarabun', sans-serif;
}

.dc-video-name {
  font-size: 19px;
  font-weight: 700;
  color: #071322;
  margin: 0 0 4px;
  font-family: 'Prompt', sans-serif;
  line-height: 1.35;
}

.dc-video-role {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 12px;
  font-weight: 500;
  font-family: 'Sarabun', sans-serif;
}

.dc-video-story {
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Sarabun', sans-serif;
}

.dc-video-card-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  margin-top: auto;
}

.dc-video-watch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #C9A84C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Sarabun', sans-serif;
  transition: color 0.3s ease;
}

.dc-video-watch-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.dc-video-card:hover .dc-video-watch-link {
  color: #071322;
}

.dc-video-card:hover .dc-video-watch-link svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   7. VIDEO MODAL PLAYER
   -------------------------------------------------------------------------- */
#dc-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#dc-video-modal.active,
#dc-video-modal.dc-modal-open,
#dc-video-modal.is-open {
  display: flex !important;
}

.dc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dc-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  background: #071322;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.3);
  animation: dcModalPop 0.3s ease;
}

.dc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
}

.dc-modal-close:hover {
  background: #C9A84C;
  color: #071322;
  border-color: #C9A84C;
  transform: rotate(90deg);
}

.dc-modal-close:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}

.dc-modal-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.dc-modal-video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.dc-modal-body {
  padding: 24px 28px;
  background: #071322;
  color: #FFF;
}

#dc-video-modal .dc-modal-title,
#dc-video-modal-title {
  color: #FFFFFF !important;
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0 4px;
}

#dc-video-modal .dc-modal-badge,
#dc-video-modal-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.18);
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

#dc-video-modal .dc-modal-role,
#dc-video-modal-treatment {
  color: #CBD5E1;
  font-size: 13px;
  margin-left: 8px;
}

#dc-video-modal .dc-modal-patient-role,
#dc-video-modal-patient-role {
  color: #C9A84C;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}

#dc-video-modal .dc-modal-story,
#dc-video-modal-story {
  color: #CBD5E1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Body scroll lock */
body.dc-modal-lock {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes dcModalPop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dc-video-reviews-section {
    padding: 60px 0;
  }

  .dc-video-reviews-section .dc-section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .dc-video-reviews-section {
    padding: 50px 0;
  }

  .dc-video-reviews-section .dc-section-header {
    margin-bottom: 30px;
  }

  .dc-video-reviews-section .dc-section-title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .dc-video-reviews-section .dc-section-subtitle {
    font-size: 15px;
  }

  .dc-video-filters {
    margin-bottom: 32px;
    gap: 8px;
  }

  .dc-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .dc-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .dc-video-card:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(7, 19, 34, 0.06);
  }

  .dc-modal-box {
    max-width: 100%;
  }

  .dc-modal-body {
    padding: 20px;
  }

  .dc-modal-body .dc-video-name {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .dc-video-reviews-section {
    padding: 40px 0;
  }

  .dc-video-reviews-section .dc-container {
    padding: 0 16px;
  }

  .dc-video-reviews-section .dc-section-title {
    font-size: 22px;
  }

  .dc-video-reviews-section .dc-section-subtitle {
    font-size: 14px;
  }

  .dc-video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dc-video-body {
    padding: 18px 20px;
  }

  .dc-play-btn {
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .dc-play-btn svg {
    width: 16px;
    height: 16px;
  }

  .dc-video-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 3px 8px;
  }

  #dc-video-modal {
    padding: 0;
    align-items: center;
  }

  .dc-modal-box {
    border-radius: 12px;
    border-left: none;
    border-right: none;
  }

  .dc-modal-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .dc-modal-body {
    padding: 16px;
  }

  .dc-modal-body .dc-video-name {
    font-size: 17px;
  }

  .dc-modal-body .dc-video-story-full {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* --------------------------------------------------------------------------
   10. ACCESSIBILITY & REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dc-video-card,
  .dc-video-thumbnail img,
  .dc-play-btn,
  .dc-modal-close,
  .dc-video-watch-link,
  .dc-video-watch-link svg {
    transition: none !important;
  }

  .dc-modal-box {
    animation: none !important;
  }
}