/* =============================================================================
   campistry_video_tutorials.css — Video Tutorials
   Built on campistry-unified.css (load order: unified, then this file).
   Reuses the Help Center's .hc-header shell for a consistent look.
   ============================================================================= */
html, body { overflow-x: hidden; background: var(--slate-25, #FCFCFD); }

/* ==================== HEADER (shared shell, Help Center-style) ==================== */
.hc-header {
    height: 58px;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 1px 0 rgba(15,23,42,.06), 0 8px 24px -16px rgba(15,23,42,.12);
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
}
.hc-back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .77rem; font-weight: 600; color: var(--slate-400);
    text-decoration: none; padding: 5px 9px;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.hc-back-btn:hover { color: var(--slate-700); background: var(--slate-100); }
.hc-header-logo { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; overflow: hidden; }
.hc-header-logo img { height: 28px; width: auto; display: block; }
.hc-header-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--slate-900); white-space: nowrap; }
.hc-header-right { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
.vt-help-link {
    font-size: .78rem; font-weight: 600; color: var(--slate-600);
    background: var(--slate-100); border-radius: var(--radius-sm);
    padding: 7px 11px; text-decoration: none; transition: background .15s;
}
.vt-help-link:hover { background: var(--slate-200); }

/* ==================== LAYOUT ==================== */
.vt-main { max-width: 1100px; margin: 0 auto; padding: 0 32px 100px; }

.vt-hero { text-align: center; padding: 48px 0 28px; }
.vt-hero h1 {
    font-family: var(--font-display); font-weight: 600; font-size: 2.1rem;
    color: var(--slate-900); margin: 0 0 10px;
}
.vt-hero h1 em { font-style: italic; color: #147D91; }
.vt-hero p { color: var(--slate-500); font-size: .98rem; max-width: 480px; margin: 0 auto; }

/* ==================== FILTER CHIPS ==================== */
.vt-filter-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    padding-bottom: 32px;
}
.vt-chip {
    font-size: .8rem; font-weight: 600; color: var(--slate-600);
    background: var(--slate-100); border: 1px solid transparent;
    border-radius: var(--radius-full); padding: 7px 16px;
    cursor: pointer; transition: all .15s;
}
.vt-chip:hover { background: var(--slate-200); }
.vt-chip.is-active {
    background: color-mix(in srgb, var(--chip-c, #147D91) 12%, white);
    border-color: var(--chip-c, #147D91);
    color: var(--chip-c, #147D91);
}

/* ==================== GRID ==================== */
.vt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 860px) { .vt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .vt-grid { grid-template-columns: 1fr; } }

.vt-card {
    display: flex; flex-direction: column; text-align: left;
    background: #fff; border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg); overflow: hidden;
    cursor: pointer; padding: 0; font-family: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.vt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(15,23,42,.18);
    border-color: var(--slate-300);
}
.vt-card-thumb {
    position: relative; display: block; width: 100%; aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--chip-c, #147D91), color-mix(in srgb, var(--chip-c, #147D91) 60%, #0F172A));
    background-size: cover; background-position: center;
}
.vt-card-play {
    position: absolute; inset: 0; margin: auto;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex; align-items: center; justify-content: center;
    color: var(--slate-900);
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.vt-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.vt-card-tag {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: var(--chip-c, #147D91); width: fit-content;
}
.vt-card-title { font-weight: 600; font-size: .98rem; color: var(--slate-900); }
.vt-card-desc { font-size: .83rem; color: var(--slate-500); line-height: 1.45; }

/* ==================== EMPTY STATE ==================== */
.vt-empty { text-align: center; padding: 60px 20px; color: var(--slate-400); }
.vt-empty svg { margin-bottom: 10px; }
.vt-empty h3 { color: var(--slate-700); font-size: 1rem; margin: 0 0 6px; }
.vt-empty p { font-size: .88rem; margin: 0; }

/* ==================== MODAL ==================== */
/* display:flex must be gated on :not([hidden]) — author CSS always wins
   over the browser's own [hidden] { display:none }, so an unconditional
   display:flex here shows the modal even with the hidden attribute set,
   and makes closeModal() (which only toggles that attribute) a no-op. */
.vt-modal { display: none; }
.vt-modal:not([hidden]) { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.vt-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.72); backdrop-filter: blur(4px); }
.vt-modal-panel {
    position: relative; background: #fff; border-radius: var(--radius-lg);
    max-width: 880px; width: 100%; overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
}
.vt-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(15,23,42,.55); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.vt-modal-close:hover { background: rgba(15,23,42,.8); }
.vt-modal-video { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.vt-video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.vt-video-frame.is-active { display: block; }
.vt-modal-info { padding: 16px 20px 20px; }
.vt-modal-info h2 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 6px; color: var(--slate-900); }
.vt-modal-info p { font-size: .88rem; color: var(--slate-500); margin: 0 0 8px; line-height: 1.5; }
.vt-modal-vimeo-link { font-size: .8rem; font-weight: 600; color: #147D91; text-decoration: none; }
.vt-modal-vimeo-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .vt-main { padding: 0 16px 60px; }
    .hc-header { padding: 0 14px; gap: 8px; }
    .hc-header-logo img { height: 22px; }
}
