/* ============================================================
   Dashboard — user's logged-in home (4.1)
   Tokens come from styles.css. Nav + mobile menu styles come
   from humidor.css.
   ============================================================ */

/* body background is set in humidor.css (shared porcelaine marble). */

/* --- Welcome banner (4.1 a, b) --- */
.welcome-banner {
  text-align: center;
  padding: clamp(72px, 10vw, 130px) 24px clamp(36px, 5vw, 64px);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(360px, 60vw, 680px);
  height: clamp(360px, 60vw, 680px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(201, 162, 99, 0.06) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.welcome-banner .eyebrow { font-size: 10px; }

.welcome-banner h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(38px, 5.5vw, 60px);
  letter-spacing: 0.04em;
  color: #f7efe1;
  margin: 16px 0 12px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-sub {
  color: var(--muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 15px;
  max-width: 460px;
  margin: 12px auto 0;
}

.welcome-divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 28px auto 0;
  opacity: 0.65;
}

/* --- Tier badge (4.1 b) ---
   The artwork will be swapped in later; for now the badge is color-coded
   via the --tier-color custom property set per tier in welcome.js. */
.dash-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border: 1px solid var(--tier-color, var(--gold));
  color: var(--tier-color, var(--gold));
  background: rgba(0, 0, 0, 0.18);
  vertical-align: middle;
  white-space: nowrap;
}
.dash-tier-badge .dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier-color, var(--gold));
  box-shadow: 0 0 8px currentColor;
}

/* --- Main --- */
.dashboard-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 48px) 100px;
}

.dashboard-section { display: flex; flex-direction: column; gap: 22px; }

.dashboard-section .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201, 162, 99, 0.15);
}
.dashboard-section .titles { display: flex; flex-direction: column; gap: 6px; }
.dashboard-section .eyebrow { font-size: 10px; }
.dashboard-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 36px);
  color: #f7efe1;
  letter-spacing: 0.03em;
}

/* --- Purchase list (4.1 c) --- */
.purchase-names-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.purchase-row {
  border-bottom: 1px solid rgba(201, 162, 99, 0.08);
}

.purchase-name {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  color: #f7efe1;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, padding-left 0.2s ease;
}

.purchase-name:hover {
  color: var(--gold);
  padding-left: 14px;
}

.purchase-name .chevron {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--gold);
  width: 28px;
  text-align: center;
  transition: transform 0.2s ease;
}

.purchase-row.expanded .purchase-name {
  color: var(--gold);
  padding-left: 14px;
}

.purchase-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 28px;
  padding: 6px 14px 26px;
  animation: dash-fade-in 0.28s ease;
}

@keyframes dash-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.purchase-details .d dt {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.purchase-details .d dd {
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted-2);
  list-style: none;
}

@media (max-width: 1080px) {
  .purchase-details { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
  .welcome-banner h1 { gap: 14px; }
}
