/* =======================================================
   Yates Video Button • Unified Stylesheet
   -------------------------------------------------------
   Scope: buttons, icons, modal lightbox
   Design: Ivory / Sage / Gold / Charcoal / Navy
   ======================================================= */

/* ------------------------------
   Button structure
------------------------------ */
.video-card-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  padding: 16px 18px;
  background: var(--white, #fff);
  border: 1px solid var(--stone, #E9E5DF);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .08s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.video-card-btn:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.video-card-btn:focus-visible {
  outline: 2px solid var(--gold-700, #9B6D14);
  outline-offset: 3px;
  border-radius: 14px;
}

/* ------------------------------
   Icon halo + play badge
------------------------------ */
.video-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage-300, #A2B5A2) 20%, #fff 80%);
  color: var(--realm-navy, #0D3B66);
  position: relative;
}

.video-play-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold, #C8921F);
  color: #1f1400;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* ------------------------------
   Title text
------------------------------ */
.video-title {
  font-weight: 800;
  color: var(--charcoal, #2B2B2B);
  font-family: 'Raleway', sans-serif;
  line-height: 1.3;
}

/* ------------------------------
   Modal dialog
------------------------------ */
.video-dialog {
  border: 0;
  padding: 0;
  width: min(900px, 92vw);
  border-radius: 14px;
  box-shadow: 0 22px 48px rgba(0,0,0,.22);
}

.video-dialog::backdrop {
  background: rgba(13,59,102,.35);
}

.video-dialog-inner {
  padding: 14px 14px 18px;
  background: var(--ivory, #FAF9F6);
  border-radius: 14px;
}

#video-dialog-title {
  margin: 0 0 .6rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--realm-navy, #0D3B66);
}

/* Responsive 16:9 video */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .8rem;
}

.video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button */
.video-close {
  appearance: none;
  border: 0;
  background: var(--gold, #C8921F);
  color: #1f1400;
  padding: .55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: background .2s ease, color .2s ease;
}

.video-close:hover {
  background: var(--gold-700, #9B6D14);
  color: #FFF6E6;
}

.video-close:focus-visible {
  outline: 2px solid var(--gold-700, #9B6D14);
  outline-offset: 3px;
}

/* ------------------------------
   Accessibility & motion
------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .video-card-btn {
    transition: none !important;
    transform: none !important;
  }
}

/* Optional layout helper for demos */
.video-card-btn + .video-card-btn {
  margin-top: 12px;
}
