/* pages.css — Styles for /merch, /live, /directory, /news, /faq pages */

.page-header { margin-bottom: 3rem; }
.section-label { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 55ch; line-height: 1.7; }

/* Page wrapper */
.directory-page, .live-page, .news-page, .merch-page, .faq-page { padding: 5rem 3rem; }
.directory-inner, .live-inner, .news-inner, .merch-inner, .faq-inner { max-width: 1100px; margin: 0 auto; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; padding: 0.75rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: 0.875rem; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--accent-warm); }
.btn-view { display: inline-block; background: var(--fg); color: var(--bg); padding: 0.5rem 1rem; border-radius: 5px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.btn-view:hover { opacity: 0.8; }
.btn-trigger { background: var(--accent-warm); color: #fff; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; border: none; cursor: pointer; transition: background 0.2s; }
.btn-trigger:hover { background: var(--accent); }
.btn-trigger:disabled { opacity: 0.6; cursor: not-allowed; }

/* Empty state */
.empty-state { padding: 4rem; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ─── Directory ─────────────────────────────────────────────────────────────── */
.directory-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2.5rem; }
.directory-actions { display: flex; gap: 1rem; align-items: center; }
.directory-actions .btn-primary { margin-top: 1rem; }
.search-bar { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.875rem 1.25rem; margin-bottom: 3rem; color: var(--muted); }
.search-bar input { flex: 1; background: transparent; border: none; outline: none; font-size: 0.95rem; color: var(--fg); }
.directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.member-card { background: var(--bg); padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start; transition: background 0.2s; }
.member-card:hover { background: var(--surface); }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.member-avatar-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.member-username { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.member-bio { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin: 0.75rem 0; }
.member-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.member-connected { font-size: 0.75rem; color: var(--muted); }

/* ─── Live Streams ───────────────────────────────────────────────────────────── */
.streams-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 4rem; }
.stream-card { background: var(--bg); padding: 2rem 2.5rem; display: flex; align-items: center; gap: 2rem; transition: background 0.2s; }
.stream-card:hover { background: var(--surface); }
.stream-status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; flex-shrink: 0; min-width: 80px; }
.stream-status.live { color: #22c55e; }
.stream-status.offline { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stream-info { flex: 1; min-width: 0; }
.stream-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.stream-url { font-size: 0.85rem; color: var(--accent); text-decoration: none; word-break: break-all; }
.stream-url:hover { text-decoration: underline; }
.stream-viewers { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }
.stream-open-btn { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); padding: 0.6rem 1.25rem; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--fg); text-decoration: none; flex-shrink: 0; transition: all 0.2s; }
.stream-open-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Autoclipper */
.autoclipper-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; }
.autoclipper-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.autoclipper-desc { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.autoclipper-cta { margin-bottom: 1.5rem; }
.clip-queue { margin-top: 1.5rem; }
.clip-queue-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.clip-job { padding: 1rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.clip-job:last-child { border-bottom: none; }
.clip-job-info { font-size: 0.875rem; line-height: 1.6; }
.clip-status { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: var(--surface); border: 1px solid var(--border); padding: 0.25rem 0.75rem; border-radius: 20px; }

/* ─── News ───────────────────────────────────────────────────────────────────── */
.news-post-form { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2rem; margin-bottom: 3rem; display: flex; flex-direction: column; gap: 1rem; }
.news-post-form.hidden { display: none; }
.form-input, .form-textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.875rem 1rem; font-family: inherit; font-size: 0.95rem; color: var(--fg); outline: none; transition: border-color 0.2s; }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 150px; resize: vertical; }
.news-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.news-article { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.news-title { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
.news-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.news-body { font-size: 1rem; line-height: 1.8; color: var(--fg); max-width: 70ch; }
.news-images { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.news-image { max-width: 400px; border-radius: 6px; border: 1px solid var(--border); }

/* ─── Merch ───────────────────────────────────────────────────────────────────── */
.coming-soon { text-align: center; padding: 5rem 0; }
.coming-soon h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.coming-soon p { color: var(--muted); font-size: 1.1rem; }
.merch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.merch-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.2s; }
.merch-card:hover { border-color: var(--accent); }
.merch-image-wrap { height: 260px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.merch-image { width: 100%; height: 100%; object-fit: cover; }
.merch-info { padding: 1.75rem; }
.merch-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.merch-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.merch-footer { display: flex; justify-content: space-between; align-items: center; }
.merch-price { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.merch-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; background: var(--surface); border: 1px solid var(--border); padding: 0.25rem 0.75rem; border-radius: 20px; color: var(--muted); }
.merch-legal { font-size: 0.8rem; color: var(--muted); text-align: center; }
.merch-legal a { color: var(--muted); text-decoration: underline; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq-inner { max-width: 800px; margin: 0 auto; padding: 5rem 3rem; }
.faq-label { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.faq-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1rem; }
.faq-sub { font-size: 1.05rem; color: var(--muted); max-width: 55ch; line-height: 1.7; margin-bottom: 4rem; }
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; background: none; border: none; cursor: pointer; text-align: left; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600; color: var(--fg); gap: 1rem; }
.faq-question:hover { color: var(--accent); }
.faq-chevron { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.faq-question.open .faq-chevron, .faq-question.open + .faq-answer { }
.faq-answer { display: none; padding: 0 0 1.5rem; font-size: 0.95rem; color: var(--muted); line-height: 1.7; max-width: 60ch; }
.faq-answer.open { display: block; }

/* Error message */
.error-msg { color: #dc2626; font-size: 0.875rem; margin-top: 0.5rem; }

/* Auth pages */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 4rem 3rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 3rem; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.auth-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.875rem 1rem; font-family: inherit; font-size: 0.95rem; color: var(--fg); outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.auth-input:focus { border-color: var(--accent); }
.auth-submit { width: 100%; justify-content: center; }
.auth-alt { text-align: center; font-size: 0.875rem; color: var(--muted); margin-top: 1.5rem; }
.auth-alt a { color: var(--accent); text-decoration: none; font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* Dashboard */
.dashboard-page { padding: 5rem 3rem; }
.dashboard-inner { max-width: 1100px; margin: 0 auto; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.dash-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.dash-card-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.dash-profile-info { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.dash-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.5rem; }
.dash-links { display: flex; flex-direction: column; gap: 0.75rem; }
.dash-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--fg); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.dash-link:hover { border-color: var(--accent); color: var(--accent); }
.dash-form { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }

/* Responsive */
@media (max-width: 768px) {
  .directory-page, .live-page, .news-page, .merch-page, .faq-page { padding: 4rem 1.5rem; }
  .faq-inner { padding: 4rem 1.5rem; }
  .directory-header { flex-direction: column; gap: 1rem; }
  .directory-actions { align-self: flex-start; }
  .member-card { flex-direction: column; }
  .stream-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .stream-open-btn { width: 100%; justify-content: center; }
}