/* ============================================================
   Plugin 1288 — Client Video Reviews
   Only styles used by this plugin. Global reset / nav / footer
   are NOT included — those live in the main site stylesheet.
   ============================================================ */

/* TOKENS (scoped so they don't override site-wide vars if already set) */
.vg-section {
  --navy:    #003a66;
  --navy-dk: #002244;
  --navy-lt: #e8f1fa;
  --red:     #e02454;
  --cloud:   #f2f6fb;
  --border:  #dde8f2;
  --text:    #1a2332;
  --slate:   #4d6278;
  --muted:   #7a96ae;
  --tr:      .18s ease;
}

/* ── SECTION WRAPPER ─────────────────────────────────────── */
.vg-section {
  padding: 48px 0 72px;
  background: var(--cloud);
}
.vg-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 700px) {
  .vg-inner { padding: 0 32px; }
}

/* ── SECTION HEADER ──────────────────────────────────────── */
.vg-head       { margin-bottom: 28px; }
.vg-h2         { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 800; color: var(--text); letter-spacing: -.03em; margin-bottom: 6px; }
.vg-sub        { font-size: .87rem; color: var(--slate); line-height: 1.65; }

/* ── HOME SECTION HEADER (heading + View All button) ─────── */
.vg-head-home  { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.vg-head-home-text { flex: 1 1 auto; }
.cvr-view-all-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 9px 22px;
  background: var(--navy);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--tr);
}
.cvr-view-all-btn:hover { background: var(--navy-dk); color: #fff; }

/* ── FILTER PILLS ────────────────────────────────────────── */
.filter-bar    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.fpill         { font-size: .78rem; font-weight: 700; padding: 7px 16px; border-radius: 100px; border: 1.5px solid var(--border); background: #fff; color: var(--slate); cursor: pointer; transition: background var(--tr), border-color var(--tr), color var(--tr); user-select: none; font-family: inherit; }
.fpill:hover   { border-color: var(--navy); color: var(--navy); }
.fpill.active  { background: var(--navy); border-color: var(--navy); color: #fff; }
.fpill:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.grid-label    { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.grid-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

[hidden]       { display: none !important; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state   { text-align: center; padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state p { font-size: .9rem; color: var(--muted); }

/* ── VIDEO GRID ──────────────────────────────────────────── */
.video-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
@media (max-width: 540px) {
  .video-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ── VIDEO CARD ──────────────────────────────────────────── */
.vcard         { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform var(--tr), box-shadow var(--tr); cursor: pointer; }
.vcard:hover   { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,36,90,.11); }
.vcard:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Thumbnail */
.vcard-thumb   { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #001426; }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.vcard:hover .vcard-thumb img { transform: scale(1.04); }
.thumb-ph      { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: linear-gradient(135deg, #001f40, #003a66); }

/* Play button */
.play-btn         { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-btn-circle  { width: 48px; height: 48px; border-radius: 50%; background: rgba(224,0,0,.9); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(224,0,0,.4); transition: transform var(--tr), background var(--tr); }
.vcard:hover .play-btn-circle { transform: scale(1.1); background: #ff0000; }

/* Duration badge */
.vcard-dur     { position: absolute; bottom: 7px; right: 7px; background: rgba(0,0,0,.78); color: #fff; font-size: .63rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }

/* YT badge */
.vcard-yt-badge      { position: absolute; top: 7px; left: 7px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.6); border-radius: 5px; padding: 3px 7px; }
.vcard-yt-badge span { font-size: .58rem; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .03em; }

/* Card body */
.vcard-body    { padding: 13px 13px 15px; }
.vcard-cat     { display: inline-flex; align-items: center; gap: 4px; font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 6px; }
.vcard-cat-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.vcard-title   { font-size: .84rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.vcard-meta    { display: flex; align-items: center; gap: 6px; }
.vcard-flag    { font-size: .9rem; line-height: 1; }
.vcard-from    { font-size: .72rem; font-weight: 600; color: var(--muted); }

/* Category colour classes (cycled by category_id % 4) */
.cat-0 .vcard-cat { color: #0369a1; } .cat-0 .vcard-cat-dot { background: #0369a1; }
.cat-1 .vcard-cat { color: #6d28d9; } .cat-1 .vcard-cat-dot { background: #6d28d9; }
.cat-2 .vcard-cat { color: #065f46; } .cat-2 .vcard-cat-dot { background: #065f46; }
.cat-3 .vcard-cat { color: #b45309; } .cat-3 .vcard-cat-dot { background: #b45309; }

/* ── LOAD MORE ───────────────────────────────────────────── */
.cvr-load-more-wrap { text-align: center; margin-top: 32px; }
.cvr-load-more      { font-size: .88rem; font-weight: 700; color: var(--navy); background: #fff; border: 1.5px solid var(--border); border-radius: 100px; padding: 11px 36px; cursor: pointer; transition: border-color var(--tr), background var(--tr), color var(--tr); font-family: inherit; }
.cvr-load-more:hover { border-color: var(--navy); background: var(--navy-lt); }
.cvr-load-more:disabled { opacity: .6; cursor: not-allowed; }

/* ── MODAL ───────────────────────────────────────────────── */
.cvr-modal          { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cvr-modal-bd       { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cvr-modal-box      { position: relative; z-index: 1; background: #fff; border-radius: 16px; overflow: hidden; width: 100%; max-width: 780px; box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.cvr-modal-close    { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.65); border: none; color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--tr); font-family: inherit; }
.cvr-modal-close:hover { background: rgba(0,0,0,.88); }
.cvr-modal-video-wrap { position: relative; padding-top: 56.25%; background: #000; }
.cvr-modal-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.cvr-modal-info     { padding: 16px 20px 20px; }
.cvr-modal-title    { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.cvr-modal-meta     { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cvr-modal-country  { font-size: .84rem; font-weight: 600; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.cvr-modal-cat-badge { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--navy); background: var(--navy-lt); border-radius: 100px; padding: 3px 11px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .vcard-body  { padding: 10px 11px 13px; }
  .vcard-title { font-size: .8rem; }
  .cvr-modal-box { border-radius: 10px; }
  .cvr-modal-title { font-size: .92rem; }
}
