/* ═══════════════════════════════════════════════
   DAARA — Dashboard Styles
   ═══════════════════════════════════════════════ */

.dashboard-page { background: var(--cream); }

/* ─── Welcome band ─── */
.dashboard-welcome {
  background: linear-gradient(150deg, var(--warm-white) 0%, var(--sand) 70%, var(--blush) 100%);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.dashboard-welcome::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.1) 0%, transparent 55%);
}
/* Thread accent */
.dashboard-welcome::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--thread) 30%, var(--thread) 70%, transparent);
  opacity: 0.4;
}
.dashboard-welcome-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.dashboard-greeting {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.dashboard-welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--deep-slate);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.dashboard-phase {
  font-size: 0.9rem;
  color: var(--terracotta);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ─── Main grid ─── */
.dashboard-section {
  padding: 2.5rem 2rem 4rem;
}
.dashboard-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.4rem;
}

/* ─── Milestone today tile — full width ─── */
.tile {
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

/* Thread accent on tile left edge */
.tile::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--thread);
  opacity: 0;
  transition: opacity 0.25s;
}
.tile:hover::before { opacity: 0.35; }
.tile-milestone::before { opacity: 0.35; } /* always visible on milestone tile */

.tile-milestone {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, white 0%, var(--warm-white) 100%);
  border-color: rgba(192,57,43,0.15);
}

.tile-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tile-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--thread);
  flex-shrink: 0;
}

.tile-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--deep-slate);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  flex: 1;
}

.tile-desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 1.2rem;
  flex: 1;
}

.tile-prompt {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--deep-slate);
  line-height: 1.6;
  border-left: 2px solid var(--blush);
  padding-left: 0.9rem;
  margin-bottom: 1.4rem;
}

.tile-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}
.tile-cta::after { content: '→'; transition: transform 0.2s; }
.tile:hover .tile-cta::after { transform: translateX(3px); }

.tile-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

/* No milestone state */
.tile-empty {
  color: var(--slate);
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.65;
}

/* ─── Quick stats strip ─── */
.dashboard-stats {
  max-width: 960px;
  margin: 0 auto 1.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-chip {
  background: white;
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.stat-chip strong { color: var(--terracotta); font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .tile-milestone { grid-column: 1; }
  .dashboard-section { padding: 2rem 1.25rem 3rem; }
}
