/* Dashboard — mobile-first responsive layout */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  min-height: 100vh;
}

.dashboard {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

/* ─── Cards ─── */

.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.75rem;
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}

/* ─── Progress ─── */

.progress__skill {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}

.progress__level {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.progress__bar-container {
  background: #e8ecf1;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.progress__bar {
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  height: 100%;
  border-radius: 8px;
  width: 0%;
  transition: width 0.6s ease;
}

.progress__xp-label {
  font-size: 0.8rem;
  color: #999;
  text-align: right;
}

/* ─── Streak ─── */

.card--streak {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.streak__flame {
  font-size: 2rem;
}

.streak__count {
  font-size: 2rem;
  font-weight: 800;
  color: #e17055;
}

.streak__label {
  font-size: 0.9rem;
  color: #666;
}

/* ─── Quick Actions ─── */

.actions__list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn--primary {
  background: #6c5ce7;
  color: #fff;
}

.btn--secondary {
  background: #e8ecf1;
  color: #333;
}

/* ─── Recent Activity ─── */

.activity__list {
  list-style: none;
}

.activity__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.activity__item:last-child {
  border-bottom: none;
}

.activity__summary {
  font-size: 0.9rem;
  color: #333;
  flex: 1;
}

.activity__meta {
  font-size: 0.75rem;
  color: #999;
  white-space: nowrap;
}

.activity__empty {
  font-size: 0.9rem;
  color: #999;
  text-align: center;
  padding: 1rem 0;
}

/* ─── Loading Skeleton ─── */

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.skeleton--greeting { height: 80px; }
.skeleton--progress { height: 140px; }
.skeleton--streak { height: 60px; }
.skeleton--actions { height: 50px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty State ─── */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-state__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state__text {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ─── Error State ─── */

.error-state {
  text-align: center;
  padding: 3rem 1rem;
}

.error-state__message {
  color: #e17055;
  margin-bottom: 1rem;
}

/* ─── Responsive ─── */

@media (min-width: 480px) {
  .dashboard {
    padding: 2rem;
  }
}
