/* =========================================================
   VAANYA CLINIC — VIDEOS PAGE STYLES
   File: /css/videos.css
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Theme Variables ---------- */
:root{
  --bg: #0b0c10;
  --card: #0f1115;
  --text: #e5e7eb;
  --muted: #a0a6b0;
  --ring: 0 0 0 3px rgba(14,165,233,.35);
  --brand: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --surface: #151821;
  --border: #242938;
  --success: #22c55e;
  --shadow: 0 10px 20px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
}

/* Light mode (if your site uses light header/footer, keep this) */
@media (prefers-color-scheme: light){
  :root{
    --bg:#ffffff;
    --card:#ffffff;
    --text:#101828;
    --muted:#667085;
    --surface:#f8fafc;
    --border:#eef2f7;
    --shadow: 0 8px 20px rgba(2,6,23,.08), 0 2px 6px rgba(2,6,23,.06);
  }
}

/* Containers (works even if header/footer partials have their own) */
main, header, footer, section, nav {
  width: 100%;
}
main > section {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
}

/* ---------- Headings ---------- */
#videos-heading{
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  font-weight: 600;
  letter-spacing: .2px;
  margin: 0 0 18px;
  color: var(--text);
}
main > section > p { color: var(--muted); }

/* ---------- Card Grid ---------- */
main ul[role="list"]{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
@media (max-width: 1280px){
  main ul[role="list"]{ gap: 16px; }
}
@media (max-width: 640px){
  main ul[role="list"]{ gap: 14px; }
}

main ul[role="list"] > li{
  grid-column: span 4;                 /* 3-up */
}
@media (max-width: 1024px){
  main ul[role="list"] > li{ grid-column: span 6; } /* 2-up */
}
@media (max-width: 640px){
  main ul[role="list"] > li{ grid-column: span 12; } /* 1-up */
}

/* ---------- Video Card ---------- */
article[itemtype*="VideoObject"]{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
article[itemtype*="VideoObject"]:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  border-color: rgba(14,165,233,.45);
}

/* Media block */
article figure{
  position: relative;
  margin: 0;
  background: var(--surface);
  /* Square (IG post) by default */
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
article figure img{
  width: 100%;
  height: 86%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform .35s ease;
}
article a:hover figure img{
  transform: scale(1.03);
}

/* Optional caption strip */
article figure figcaption{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(2,6,23,.6);
  color: #fff;
  font-size: .9rem;
  padding: 8px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Content area */
article > div{
   text-decoration: none;
  padding: 14px 16px 18px;
}
article p[itemprop="description"]{
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: .98rem;
}

/* Stats list */
article dl{
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: center;
}
article dl dt{
   text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
article dl dd{
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Actions (buttons as links) ---------- */
article > div > a{
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .05s ease;
  margin-right: 10px;
  margin-top: 2px;
}
article > div > a:focus-visible{
  outline: none;
  box-shadow: var(--ring);
}

/* Primary = Appointment */
article > div > a[href^="/appointments"]{
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}
article > div > a[href^="/appointments"]:hover{
  background: var(--brand-600);
}
article > div > a[href^="/appointments"]:active{
  transform: translateY(1px);
}

/* Secondary = WhatsApp */
article > div > a[href^="https://wa.me"]{
  background: transparent;
  color: var(--text);
}
article > div > a[href^="https://wa.me"]:hover{
  border-color: rgba(14,165,233,.55);
  color: var(--brand);
}

/* ---------- Pagination ---------- */
nav[aria-label="Pagination"]{
  margin: 24px 0 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
nav[aria-label="Pagination"] a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .05s ease;
}
nav[aria-label="Pagination"] a:hover{
  border-color: rgba(14,165,233,.5);
  color: var(--brand);
}
nav[aria-label="Pagination"] a[aria-current="page"]{
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(14,165,233,.25);
}

/* ---------- Links & Focus ---------- */
a { color: var(--brand); }
a:hover { color: var(--brand-700); }
a:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

/* ---------- Utilities ---------- */
.hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Tweak tall Reel thumbnail (3rd card) ---------- */
/* If an image is tall (1067h), keep it centered without stretching */
article figure img[height="1067"]{
  object-position: center top;
}

/* ---------- Nice max line-length for descriptions ---------- */
article p[itemprop="description"]{
  max-width: 60ch;
}

/* ---------- Optional: subtle divider before pagination ---------- */
main section > nav[aria-label="Pagination"]::before{
  content: "";
  display: block;
  width: 100%;
  max-width: 1200px;
  height: 1px;
  margin: 14px auto 10px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---------- Print (simple) ---------- */
@media print{
  nav[aria-label="Pagination"]{ display: none !important; }
  article[itemtype*="VideoObject"]{ box-shadow: none; border-color: #ddd; }
}
