/* ============================================================
   The Notary Master — style.css
   Dark, authoritative, gold-accented findom aesthetic
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #080808;
  --dark:       #0e0e0e;
  --surface:    #141414;
  --surface2:   #1c1c1c;
  --border:     #2a2a2a;
  --gold:       #c9a84c;
  --gold-light: #e4c97e;
  --gold-dim:   #7a5f28;
  --red:        #8b1a1a;
  --red-bright: #c0392b;
  --cream:      #f0e6d2;
  --muted:      #888;
  --text:       #d4d0c8;
  --white:      #f5f5f5;

  /* Role colours */
  --visitor-col: #555;
  --owned-col:   #7c3aed;
  --owner-col:   #c9a84c;
  --admin-col:   #c0392b;

  --font-display: 'Cinzel', serif;
  --font-body:    'Raleway', sans-serif;
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ── Layout ───────────────────────────────────────────────── */
.page-wrap { min-height: calc(100vh - 68px); }
.container  { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container--sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 1.5rem; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 2rem; height: 64px; gap: 2rem;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold) !important; white-space: nowrap;
}
.brand-seal { font-size: 1.4rem; color: var(--gold); }

.nav-links {
  display: flex; list-style: none; gap: 0.2rem; flex: 1;
}
.nav-links a {
  color: var(--muted); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 0.8rem; border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--gold); background: rgba(201,168,76,0.06); }

.nav-right {
  display: flex; align-items: center; gap: 0.75rem; margin-left: auto;
}

.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-dim); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; overflow: hidden;
  border: 2px solid var(--gold-dim);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-role { font-size: 0.7rem; }

.nav-toggle { display: none; background: none; border: none; color: var(--gold); font-size: 1.4rem; cursor: pointer; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); letter-spacing: 0.08em;
  font-size: 0.85rem; padding: 0.7rem 1.6rem; border-radius: var(--radius);
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--transition); white-space: nowrap;
}
.btn--primary  { background: var(--gold); color: var(--black); font-weight: 700; }
.btn--primary:hover { background: var(--gold-light); color: var(--black); }
.btn--ghost    { background: transparent; color: var(--gold); border: 1px solid var(--gold-dim); }
.btn--ghost:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }
.btn--danger   { background: var(--red); color: var(--white); }
.btn--danger:hover { background: var(--red-bright); }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.78rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Role badges ──────────────────────────────────────────── */
.role-badge {
  font-family: var(--font-display); font-size: 0.65rem;
  padding: 0.25rem 0.6rem; border-radius: 20px;
  letter-spacing: 0.1em; font-weight: 600;
}
.role-badge--visitor { background: rgba(85,85,85,0.2);  color: var(--visitor-col); border: 1px solid var(--visitor-col); }
.role-badge--owned   { background: rgba(124,58,237,0.15); color: #a78bfa;           border: 1px solid #7c3aed; }
.role-badge--owner   { background: rgba(201,168,76,0.15); color: var(--gold);       border: 1px solid var(--gold-dim); }
.role-badge--admin   { background: rgba(192,57,43,0.15);  color: #e57373;           border: 1px solid var(--red); }

/* ── Forms ────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--gold);
  text-align: center; margin-bottom: 0.5rem;
}
.form-subtitle { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--white);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 0.9rem 1.2rem; border-radius: var(--radius);
  font-size: 0.9rem; margin-bottom: 1.2rem;
}
.alert--error   { background: rgba(139,26,26,0.2);  border: 1px solid var(--red);  color: #f1a1a1; }
.alert--success { background: rgba(34,97,51,0.2);   border: 1px solid #276939;     color: #7dce94; }
.alert--info    { background: rgba(201,168,76,0.1); border: 1px solid var(--gold-dim); color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 4rem;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,168,76,0.06), transparent),
              var(--black);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; height: 1px; width: 40px; background: var(--gold-dim);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--white); margin-bottom: 1.2rem;
  text-shadow: 0 0 60px rgba(201,168,76,0.15);
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

/* ── Blog ─────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

.post-card { display: flex; flex-direction: column; }
.post-card__cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; background: var(--surface2); }
.post-card__meta  { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.5rem; display: flex; gap: 1rem; align-items: center; }
.post-card__title { font-size: 1.15rem; color: var(--white); margin-bottom: 0.6rem; line-height: 1.3; }
.post-card__excerpt { font-size: 0.9rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.post-card__visibility { font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 4px; }
.vis--public  { background: rgba(34,97,51,0.2); color: #7dce94; }
.vis--owned   { background: rgba(124,58,237,0.15); color: #a78bfa; }
.vis--owner   { background: rgba(201,168,76,0.15); color: var(--gold); }
.vis--admin   { background: rgba(192,57,43,0.15); color: #e57373; }

/* ── Profile ──────────────────────────────────────────────── */
.profile-header {
  display: flex; gap: 2rem; align-items: flex-start;
  padding: 2.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 2rem;
}
.profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--gold-dim); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.5rem; color: var(--black);
  overflow: hidden; border: 3px solid var(--gold-dim);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); }
.profile-username { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* X connect panel */
.x-connect-panel {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.x-connect-panel h3 { font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.x-logo { font-weight: 900; font-size: 1.1rem; }
.x-connected { display: flex; align-items: center; gap: 1rem; }
.x-avatar { width: 44px; height: 44px; border-radius: 50%; }

/* ── Admin table ──────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-display); font-size: 0.75rem;
  letter-spacing: 0.1em; color: var(--gold);
}
.data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--surface2); }

/* ── Dividers & misc ──────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--muted); font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.page-header {
  padding: 7rem 1.5rem 3rem; text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold); }
.page-header p  { color: var(--muted); margin-top: 0.6rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem; margin-top: 4rem;
}
.footer-inner { max-width: 1140px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); color: var(--gold); margin-bottom: 1rem;
}
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ── Rich text (blog content) ─────────────────────────────── */
.prose h2, .prose h3 { color: var(--gold); margin: 2rem 0 0.75rem; }
.prose p  { margin-bottom: 1rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.3rem; }
.prose blockquote {
  border-left: 3px solid var(--gold-dim); padding-left: 1.2rem;
  color: var(--muted); font-style: italic; margin: 1.5rem 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--dark); border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
  }
  .nav-toggle { display: block; }
  .profile-header { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ── Suspension & verify banners ──────────────────────────── */
.suspension-banner {
  background: #3b0a0a; border-bottom: 2px solid var(--red-bright);
  color: #f1a1a1; padding: 0.75rem 1.5rem;
  text-align: center; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  flex-wrap: wrap; position: sticky; top: 0; z-index: 300;
}
.suspension-banner a { color: #f1a1a1; font-weight: 600; }

.verify-banner {
  background: rgba(201,168,76,0.1); border-bottom: 1px solid var(--gold-dim);
  color: var(--gold); padding: 0.6rem 1.5rem;
  text-align: center; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  flex-wrap: wrap;
}
.verify-banner a { color: var(--gold); font-weight: 600; text-decoration: underline; }

/* Suspended body — blur out content */
body.is-suspended .page-wrap > *:not(.suspension-banner) {
  pointer-events: none;
  filter: blur(3px);
  user-select: none;
}
