/* ═══ ResumeForge AI — Dashboard Styles ═══ */
@import './variables.css';

.dashboard-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px var(--space-lg) var(--space-3xl);
}

/* ═══ Header ═══ */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.dash-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
}

/* ═══ Stats ═══ */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.stat-icon {
  font-size: 28px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══ Upgrade CTA ═══ */
.upgrade-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.upgrade-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.upgrade-cta h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.upgrade-cta p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ═══ Section ═══ */
.dash-section {
  margin-bottom: var(--space-xl);
}

.dash-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.dash-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
}

/* ═══ Resume List ═══ */
.resume-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.resume-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}

.resume-item-main {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
  flex: 1;
}

.resume-item-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.resume-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.resume-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-dim);
}

.resume-item-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ═══ Loading / Empty / Error ═══ */
.dash-loading {
  text-align: center;
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* ═══ Mobile ═══ */
@media (max-width: 640px) {
  .resume-item {
    flex-direction: column;
    align-items: stretch;
  }
  .resume-item-actions {
    justify-content: flex-end;
  }
  .dash-header {
    flex-direction: column;
  }
}
