/* public/assets/style.css — FilmShare design system */

:root {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --bg-card: #181818;
  --border: #262626;
  --border-strong: #333;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --text-dim: #6b6b6b;
  --accent: #e8c468;        /* warm gold, cinema feel */
  --accent-hover: #f0d488;
  --accent-dim: #3a3220;
  --success: #4ade80;
  --warning: #fbbf24;
  --error: #f87171;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-user {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-footer .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #1a1408;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
}
.btn-danger {
  border-color: #5a2424;
  color: var(--error);
}
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-hover { transition: border-color 0.2s ease, transform 0.2s ease; }
.card-hover:hover { border-color: var(--accent-dim); transform: translateY(-2px); }

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-pending  { background: #3a3018; color: var(--warning); }
.badge-active   { background: #1e3a26; color: var(--success); }
.badge-rejected { background: #3a1e1e; color: var(--error); }
.badge-tier {
  background: var(--accent-dim);
  color: var(--accent);
  text-transform: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 {
  font-size: 3.2rem;
  max-width: 720px;
  margin: 0 auto 20px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
}

/* ---------- Film card ---------- */
.film-card { display: flex; flex-direction: column; gap: 12px; }
.film-card h3 { font-size: 1.1rem; }
.film-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.film-card .price {
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Auth ---------- */
.auth-wrap {
  max-width: 420px;
  margin: 80px auto;
}
.auth-card { padding: 36px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.alert-error { background: #2a1414; border: 1px solid #5a2424; color: var(--error); }
.alert-success { background: #142a1a; border: 1px solid #2a5a34; color: var(--success); }
.alert-info { background: #1a1a2a; border: 1px solid #2a2a5a; color: #9ab0ff; }

/* ---------- Video player ---------- */
.player-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.player-wrap video { width: 100%; display: block; max-height: 70vh; }

/* ---------- Admin table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover td { background: var(--bg-elev); }

/* ---------- Legal pages ---------- */
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 32px; }
.legal h2 { margin: 32px 0 12px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 20px; }

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty h3 { color: var(--text-muted); margin-bottom: 8px; }

/* ---------- Spinner ---------- */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Section header ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 48px 0 24px;
}
.section-head p { color: var(--text-muted); margin-top: 4px; }
