/* ============================================================   
   jpchacha.com | Add-on CSS for Videos Page
============================================================ */

/* ------------------------------------------------------------
Video Grid
------------------------------------------------------------ */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------
Video Card
------------------------------------------------------------ */

.video-card {
  background: var(--navy-mid);
  border: 0.5px solid var(--navy-light);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.video-card:hover { border-color: var(--blue); }

/* ------------------------------------------------------------
Video Thumbnail
------------------------------------------------------------ */

.video-thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.video-thumb:hover img { opacity: 0.75; }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
}

.video-thumb:hover .play-btn svg {
  opacity: 1;
  transform: scale(1.1);
}

/* iframe replaces thumb at same size */
.video-thumb iframe,
.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* ------------------------------------------------------------
Video Info
------------------------------------------------------------ */

.video-info { padding: 14px 16px 16px; }
.video-info h3 { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.video-info p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* ------------------------------------------------------------
YouTube CTA
------------------------------------------------------------ */

.yt-cta {
  background: var(--navy-mid);
  border: 0.5px solid var(--navy-light);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.yt-icon {
  width: 32px;
  height: 32px;
  color: var(--red);
  flex-shrink: 0;
}

.yt-cta-title { font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.yt-cta-sub { font-size: 12px; color: var(--text-muted); }

.yt-cta-btn {
  display: inline-block;
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 7px;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.yt-cta-btn:hover { opacity: 0.88; }

/* ------------------------------------------------------------
Featured Video (Interview)
------------------------------------------------------------ */

.feature-video {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-video-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid var(--navy-light);
  background: #000;
}

.video-thumb--feature {
  aspect-ratio: 16 / 9;
}

.feature-video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.feature-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-video-info h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.feature-video-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.feature-yt-link {
  display: inline-block;
  font-size: 13px;
  color: var(--blue);
  padding: 8px 16px;
  border-radius: 7px;
  border: 0.5px solid var(--blue-dim);
  transition: background 0.15s, color 0.15s;
}

.feature-yt-link:hover {
  background: var(--blue-dim);
  color: var(--blue-pale);
}

/* ------------------------------------------------------------
Responsive
------------------------------------------------------------ */

@media (max-width: 800px) {
  .feature-video { grid-template-columns: 1fr; }
  .feature-video-info h2 { font-size: 18px; }
}

@media (max-width: 640px) {
  .nav { padding: 0 16px; gap: 16px; }
  .nav-link { display: none; }
  .breadcrumb, .page-header, .section { padding-left: 16px; padding-right: 16px; }
  .page-header h1 { font-size: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .footer { padding: 16px; flex-direction: column; align-items: flex-start; }
}
