/* GramPulse Dashboard Styles — uses same design tokens as theme.css */

:root {
  --bg: #0d0d14;
  --surface: #16161f;
  --surface-2: #1e1e2a;
  --fg: #f0ede8;
  --fg-muted: #8b8a96;
  --accent-1: #f05a24;
  --accent-2: #a855f7;
  --accent-3: #7c3aed;
  --border: rgba(240, 237, 232, 0.08);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 40px 20px;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }

.dashboard-container { max-width: 900px; margin: 0 auto; }

h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.subtitle { color: var(--fg-muted); font-size: 0.95rem; margin-bottom: 40px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.nav-back { margin-bottom: 40px; }
.nav-back a { color: var(--fg-muted); text-decoration: none; font-size: 0.875rem; }
.nav-back a:hover { color: var(--fg); }

.username-form { display: flex; gap: 12px; align-items: center; }
.username-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--fg);
  font-size: 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.username-form input:focus { border-color: var(--accent-1); }
.username-form input::placeholder { color: var(--fg-muted); }

.btn-primary {
  background: var(--accent-1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: opacity 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.stat-value { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; }
.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat.pending .stat-value { color: var(--accent-2); }
.stat.posted .stat-value { color: #22c55e; }
.stat.failed .stat-value { color: var(--accent-1); }

.post-list { display: flex; flex-direction: column; gap: 8px; }
.post-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.875rem;
}
.post-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.post-status-dot.pending { background: var(--accent-2); }
.post-status-dot.posted  { background: #22c55e; }
.post-status-dot.failed   { background: var(--accent-1); }

.post-caption { flex: 1; line-height: 1.5; }
.post-time { color: var(--fg-muted); font-size: 0.75rem; white-space: nowrap; }

.error-msg {
  background: rgba(240, 90, 36, 0.12);
  border: 1px solid rgba(240, 90, 36, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--accent-1);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.steps-3grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.step-num { font-size: 1.5rem; font-weight: 800; font-family: 'Syne', sans-serif; color: var(--accent-1); margin-bottom: 8px; }
.step-title { font-weight: 600; margin-bottom: 4px; }
.step-body { color: var(--fg-muted); font-size: 0.875rem; }

.next-post-note { margin-top: 16px; font-size: 0.875rem; color: var(--fg-muted); }
.next-post-note strong { color: var(--accent-2); }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .username-form { flex-direction: column; }
  .btn-primary { width: 100%; text-align: center; }
  .steps-3grid { grid-template-columns: 1fr; }
}