/* ============================================================
   MY LIVING LEGACY — Design System
   Audience: 50+  |  Tone: Warm, trusted, heritage
   Palette: Deep forest + warm gold + cream + soft blush
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Core palette */
  --forest:    #1E3A2F;   /* deep evergreen — primary brand */
  --gold:      #C9973A;   /* warm antique gold — accent */
  --gold-lt:   #E8C27A;   /* light gold — hover / glow */
  --cream:     #F7F2EA;   /* warm cream — page background */
  --cream-dk:  #EDE6D8;   /* slightly deeper cream — card bg */
  --blush:     #F0E8DC;   /* very soft warm blush — alt bg */
  --charcoal:  #2C2C2C;   /* body text */
  --mid:       #6B6560;   /* secondary text */
  --border:    #D8CEBC;   /* subtle borders */
  --white:     #FFFFFF;

  /* Nav height */
  --nav-h: 64px;

  /* Type */
  --display: 'Playfair Display', Georgia, serif;
  --body:    'Inter', system-ui, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Shadow */
  --shadow-card: 0 2px 12px rgba(30,58,47,0.10);
  --shadow-hover: 0 6px 24px rgba(30,58,47,0.18);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--charcoal);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────────────── */
.mll-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--forest);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.mll-nav .logo {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--gold-lt);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mll-nav .logo span {
  color: var(--white);
  opacity: 0.6;
  font-weight: 300;
  font-size: 0.85rem;
  margin-left: 8px;
  font-family: var(--body);
}

.nav-right {
  display: flex; align-items: center; gap: 20px;
}

.nav-right a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--gold-lt); }

.nav-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ── PAGE WRAPPER ────────────────────────────────── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── PAGE HEADER BAND ────────────────────────────── */
.page-header {
  background: var(--forest);
  padding: 36px 48px 32px;
  color: var(--white);
}
.page-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.page-header h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.page-header p {
  margin-top: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  max-width: 540px;
}

/* ── CONTENT AREA ────────────────────────────────── */
.content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* ── CARD ────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover {
  background: #163025;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #b8852e;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn-outline:hover {
  background: var(--forest);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--mid);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* ── FORM ELEMENTS ───────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-label .hint {
  font-weight: 400;
  color: var(--mid);
  font-size: 0.8rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(30,58,47,0.08);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

/* ── GRID ROW ─────────────────────────────────────── */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

@media (max-width: 640px) {
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .content-area { padding: 24px 16px 60px; }
  .page-header { padding: 24px 20px; }
  .mll-nav { padding: 0 20px; }
}

/* ── SECTION DIVIDER ─────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
  margin-bottom: 14px;
  margin-top: 32px;
}

/* ── COMING SOON BADGE ───────────────────────────── */
.badge-soon {
  display: inline-block;
  background: var(--blush);
  color: var(--mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 8px;
}

/* ── MIC BUTTON ──────────────────────────────────── */
.mic-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.mic-btn:hover { background: var(--gold); transform: scale(1.05); }
.mic-btn.recording {
  background: #C0392B;
  animation: pulse-mic 1.4s ease-in-out infinite;
}
@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(192,57,43,0); }
}
.mic-btn svg { pointer-events: none; }

/* ── STATUS STRIP ────────────────────────────────── */
.status-strip {
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.status-strip.info  { background: #EAF1EC; color: var(--forest); border: 1px solid #C5DBC9; }
.status-strip.warn  { background: #FDF3E3; color: #7D5A1E; border: 1px solid #F0D9A8; }
.status-strip.error { background: #FDECEA; color: #7D2020; border: 1px solid #F0AAAA; }

/* ── BACK LINK ───────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mid);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--forest); }

/* ── PHOTO GRID ──────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.photo-slot {
  aspect-ratio: 1;
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
  color: var(--mid);
  font-size: 0.8rem;
  gap: 8px;
}
.photo-slot:hover { border-color: var(--gold); color: var(--gold); background: #FDF8F0; }

/* ── UPLOAD ZONE ─────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
  margin-top: 12px;
}
.upload-zone:hover { border-color: var(--gold); background: #FDF8F0; }
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.5; }
.upload-zone p { color: var(--mid); font-size: 0.9rem; }
.upload-zone strong { color: var(--forest); }

/* ── FOOTER ──────────────────────────────────────── */
.mll-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.45);
  text-align: center;
  font-size: 0.8rem;
  padding: 20px;
}
.mll-footer a { color: var(--gold-lt); text-decoration: none; }
