/* ── GoCar Studio — Shared Styles ── */
:root {
  --bg:          #0a0a0d;
  --floor:       #0f0f14;
  --wall:        #141419;
  --wall-solid:  #1a1a22;
  --border:      #26263a;
  --text:        #e8e8f0;
  --muted:       #5a5a80;
  --accent:      #8B9B5A;
  --accent-dark: #6d7a46;
  --accent-glow: #8B9B5A22;
  --green:       #34d399;
  --yellow:      #fbbf24;
  --red:         #f87171;
  --blue:        #60a5fa;
  --ig:          #e91e63;
  --fb:          #1877f2;
  --card:        #141419;
  --radius:      12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  background: var(--floor);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav-logo-text em {
  color: var(--accent);
  font-style: normal;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  transition: all .15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--wall-solid);
}
.nav-links a.active { color: var(--accent); }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--floor);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
  z-index: 199;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all .15s;
}
.nav-drawer a:hover,
.nav-drawer a.active {
  color: var(--text);
  background: var(--wall-solid);
}
.nav-drawer a.active { color: var(--accent); }

/* ── Page ── */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 24px; margin-top: 3px; }

/* ── Buttons ── */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.btn-green  { background: #059669; }
.btn-green:hover { background: #047857; }
.btn-danger { background: transparent; border: 1px solid var(--border); color: var(--red); }
.btn-danger:hover { border-color: var(--red); background: #f8717115; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Status badges ── */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}
.badge-published { background: #34d39918; color: var(--green);  border: 1px solid #34d39930; }
.badge-approved  { background: #3b82f618; color: var(--blue);   border: 1px solid #3b82f630; }
.badge-pending   { background: #fbbf2418; color: var(--yellow); border: 1px solid #fbbf2430; }
.badge-rejected  { background: #f8717118; color: var(--red);    border: 1px solid #f8717130; }
.badge-ig        { background: #e91e6318; color: var(--ig);     border: 1px solid #e91e6330; }
.badge-fb        { background: #1877f218; color: var(--fb);     border: 1px solid #1877f230; }

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.stat-value.accent { color: var(--accent); }
.stat-value.green  { color: var(--green); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.blue   { color: var(--blue); }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ── Empty state ── */
.empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 52px 20px;
}

/* ── Copy box ── */
.copy-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 280px;
  overflow-y: auto;
  color: var(--text);
  box-sizing: border-box;
}
textarea.copy-box {
  white-space: pre;
  resize: vertical;
  outline: none;
  font-family: inherit;
  max-height: none;
  min-height: 220px;
}
textarea.copy-box:focus {
  border-color: var(--accent);
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: block; }

  .page { padding: 20px 14px 40px; }
  h1    { font-size: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 26px; }
}
