/* ============================================================
   MINDSTATZ — site.css
   Additions for the Hostinger build: member modals, library,
   video detail view. Builds on the tokens in styles.css.
   ============================================================ */

[hidden] { display: none !important; }

.burger { background: none; border: none; }
.nav-btn { padding: 0.45rem 1.2rem; font-size: 0.65rem; }
.grid-note { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 2rem; font-size: 0.85rem; }

/* ── Cards ─────────────────────────────────────────────────── */
.clip-card { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; }
.clip-card .media-fill, .clip-card img, .clip-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-fill {
  background: radial-gradient(ellipse at 30% 30%, rgba(107,63,160,0.35), transparent 60%),
              radial-gradient(ellipse at 75% 80%, rgba(201,168,76,0.18), transparent 55%),
              var(--bg-elevated);
}
.clip-card .hover-trailer { opacity: 0; transition: opacity 0.3s; }
.clip-card:hover .hover-trailer { opacity: 1; }
.clip-badge.owned { background: rgba(79,212,138,0.14); border: 1px solid rgba(79,212,138,0.45); color: #8fe0b0; }
.clip-price { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-light); margin-left: auto; }
.clip-row { display: flex; align-items: baseline; gap: 0.75rem; }
.clip-card .clip-overlay { z-index: 2; }
.clip-card .clip-badge, .clip-card .play-btn-overlay { z-index: 3; }

/* ── Library ───────────────────────────────────────────────── */
.library-list { display: grid; gap: 1rem; }
.lib-item {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem;
}
.lib-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; }
.lib-thumb img, .lib-thumb .media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--text-primary); }
.lib-meta { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.2rem; }
.lib-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.lib-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.62rem; }
.lib-empty { text-align: center; color: var(--text-secondary); padding: 2rem; border: 1px dashed var(--border); border-radius: var(--radius-md); }

/* ── Modals ────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8,8,8,0.9); backdrop-filter: blur(14px); overflow-y: auto;
}
.modal-box {
  position: relative; width: 100%; max-width: 420px; margin: auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem; box-shadow: var(--glow-violet);
}
.modal-wide { max-width: 860px; padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.modal-close {
  position: absolute; top: 0.75rem; right: 0.9rem; z-index: 5; background: rgba(8,8,8,0.55); border: none;
  color: var(--text-secondary); font-size: 1.5rem; line-height: 1; width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer;
}
.modal-close:hover { color: var(--gold); }
.modal-head { text-align: center; margin-bottom: 1.5rem; }
.modal-head .nav-logo { font-size: 1.4rem; display: block; }
.modal-head h3 { font-size: 1.7rem; }
.modal-sub { font-size: 0.82rem; margin-top: 0.4rem; }
.modal-links { text-align: center; margin-top: 1.1rem; font-size: 0.75rem; color: var(--text-muted); display: grid; gap: 0.4rem; }
.modal-links button { background: none; border: none; color: var(--gold); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-block { width: 100%; justify-content: center; }
.form-error { color: #f09595; font-size: 0.78rem; margin: 0 0 0.75rem; text-align: center; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.75rem; color: var(--text-secondary); margin: 0.25rem 0 1rem; line-height: 1.5; }
.check input { margin-top: 0.2rem; accent-color: var(--gold); }
#auth-form .form-group { margin-bottom: 0.75rem; }
.om-text { font-size: 0.88rem; margin-bottom: 1rem; }
.om-ref { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.om-ref code { color: var(--gold-light); user-select: all; }

/* Video detail */
.vm-media { position: relative; background: #000; min-height: 280px; }
.vm-media video, .vm-media img, .vm-media .media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-media video { object-fit: contain; background: #000; }
.vm-body { padding: 2.25rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.vm-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.vm-badges .clip-badge { position: static; }
.vm-body h3 { font-size: 1.9rem; }
.vm-meta { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.vm-desc { font-size: 0.88rem; white-space: pre-line; }
.vm-actions { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 1rem; }
.vm-actions .btn { justify-content: center; }
.vm-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-light); }

/* Player */
.player-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.vr-note { text-align: center; margin-top: 1.5rem; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-muted); }
#paywall-overlay .btn { margin: 0 auto 0.6rem; }

/* Contact honeypot */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

a:focus-visible, button:focus-visible, .clip-card:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

@media (max-width: 768px) {
  .modal-wide { grid-template-columns: 1fr; }
  .vm-media { min-height: 0; aspect-ratio: 16 / 9; }
  .lib-item { grid-template-columns: 110px minmax(0, 1fr); }
  .lib-actions { grid-column: 1 / -1; justify-content: stretch; }
  .lib-actions .btn { flex: 1; justify-content: center; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .hero-eyebrow, .hero h1, .hero p, .hero-actions, .scroll-hint, .reveal { opacity: 1 !important; transform: none !important; }
}

/* Narrow phones: one card per row so badges and titles don't collide */
.clip-row { flex-wrap: wrap; row-gap: 0.1rem; }
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
