/* Dashboard styles — matches PagePilot landing page theme */

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px 60px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Three-column dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.dash-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dash-section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.sub-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.97); }
.btn-cyan { background: var(--accent-cyan); color: #0f1629; }
.btn-amber { background: rgba(255,184,0,0.15); color: var(--accent-amber); border: 1px solid rgba(255,184,0,0.2); }
.btn-ghost { background: transparent; color: var(--fg-muted); border: 1px solid var(--border); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* Add topic form */
.add-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-form input,
.add-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  resize: none;
  width: 100%;
}
.add-form input:focus,
.add-form textarea:focus {
  border-color: rgba(0,229,204,0.4);
}
.add-form textarea { height: 72px; }
.form-actions { display: flex; gap: 8px; }

/* Item list */
.item-list { display: flex; flex-direction: column; gap: 12px; }

/* Item cards */
.item-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item-topic {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.item-meta {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Draft specific */
.draft-card { }
.draft-topic-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  font-weight: 500;
}
.draft-content {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Schedule cards */
.posted-card {
  opacity: 0.7;
}
.posted-time {
  color: var(--accent-cyan) !important;
  font-size: 11px;
}

/* Empty state */
.empty-state {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  padding: 24px 0;
  font-style: italic;
}

/* Utility */
.hidden { display: none !important; }

/* Mobile */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard-container { padding: 80px 16px 40px; }
}