/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  background: #faf8f5;
  color: #2d2a28;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== COLOR PALETTE ===== */
:root {
  --sage: #9caf8c;
  --sage-light: #d4dfcb;
  --sage-pale: #edf3e8;
  --rose: #d4a5a5;
  --rose-light: #f0e0e0;
  --rose-pale: #faf2f2;
  --cream: #fdf9f3;
  --text: #2d2a28;
  --text-light: #8a8580;
  --gold: #c9a96e;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sage-pale); }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sage-light);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  color: var(--text-light); text-decoration: none; font-size: 0.82rem;
  letter-spacing: 0.06em; padding: 0.5rem 0.9rem;
  border-radius: 8px; transition: all 0.3s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--sage-pale); }
.nav-logo { height: 30px; width: auto; vertical-align: middle; border-radius: 4px; display: block; }
.logo-icon-sm { height: 52px; width: auto; border-radius: 8px; display: block; }
.logo-icon-lg { height: 64px; width: auto; border-radius: 10px; display: block; margin: 0 auto; }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--text); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-brand .heart { color: var(--rose); }
.nav-mobile-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--rose-pale) 0%, var(--cream) 60%);
}
.page-hero .tag {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 0.8rem;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400; color: var(--text); margin-bottom: 0.5rem;
}
.page-hero p { color: var(--text-light); font-weight: 300; max-width: 500px; margin: 0 auto; }

/* ===== SECTION ===== */
section { padding: 4rem 2rem; max-width: 960px; margin: 0 auto; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400; margin-bottom: 0.5rem;
}
.section-sub { color: var(--text-light); font-size: 0.95rem; font-weight: 300; margin-bottom: 2.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 0.7rem 1.8rem; border-radius: 30px;
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: all 0.3s; border: none; cursor: pointer;
}
.btn-primary { background: var(--rose); color: white; }
.btn-primary:hover { background: #c48a8a; transform: translateY(-1px); }
.btn-outline { 
  background: transparent; color: var(--text); 
  border: 1px solid var(--sage-light); 
}
.btn-outline:hover { border-color: var(--sage); background: var(--sage-pale); }
.btn-sage { background: var(--sage); color: white; }
.btn-sage:hover { background: #7f9570; transform: translateY(-1px); }

/* ===== TIMELINE CARDS (Homepage) ===== */
.timeline-grid {
  display: flex; flex-direction: column; gap: 1.5rem;
  max-width: 700px; margin: 0 auto;
}
.timeline-card {
  display: flex; align-items: stretch; gap: 1.5rem;
  background: white; border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  text-decoration: none; color: inherit;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
}
.timeline-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--sage-light);
}
.timeline-card::before {
  content: '';
  position: absolute; left: -1px; top: 20%; bottom: 20%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--rose), var(--sage));
}
.timeline-card-icon {
  font-size: 2.2rem; min-width: 60px; 
  display: flex; align-items: center; justify-content: center;
}
.timeline-card-content { flex: 1; }
.timeline-card-date {
  font-size: 0.78rem; color: var(--sage); font-weight: 500;
  letter-spacing: 0.02em; margin-bottom: 0.2rem;
}
.timeline-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 0.2rem;
}
.timeline-card-desc { font-size: 0.87rem; color: var(--text-light); }
.timeline-card-arrow {
  font-size: 1.2rem; color: var(--sage); 
  display: flex; align-items: center; opacity: 0.4;
  transition: opacity 0.3s;
}
.timeline-card:hover .timeline-card-arrow { opacity: 1; }

/* ===== ABOUT PAGE GRID ===== */
.about-profile {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
.profile-card {
  background: white; border-radius: 20px; padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  text-align: center;
}
.profile-card .avatar {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; font-size: 2.5rem;
}
.profile-card .avatar.aaron { background: var(--sage-pale); }
.profile-card .avatar.nasya { background: var(--rose-pale); }
.profile-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 400;
}
.profile-card .title-text { 
  font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem;
}
.profile-card .info-line {
  font-size: 0.88rem; margin-bottom: 0.3rem;
  color: var(--text-light);
}
.profile-card .info-line strong { color: var(--text); }

/* Preferences Grid */
.prefs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.pref-card {
  background: white; border-radius: 16px; padding: 1.3rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.pref-card .emoji { font-size: 1.5rem; display: block; margin-bottom: 0.4rem; }
.pref-card h4 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; }
.pref-card .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pref-card .tag {
  font-size: 0.75rem; padding: 0.15rem 0.6rem;
  border-radius: 20px; background: var(--sage-pale);
  color: #5a6e4e;
}
.pref-card .tag.pink { background: var(--rose-pale); color: #b07a7a; }
.pref-card .tag.gold { background: #f8f0e0; color: #9a7e4a; }
.pref-card .tag.red { background: #ffe0e0; color: #b06060; }
.pref-card .tag.orange { background: #ffe8d0; color: #a08040; }

/* ===== MEMORIES PAGE ===== */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.memory-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s;
}
.memory-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.memory-card-img {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.memory-card-img.aaron-nasya { 
  background: linear-gradient(135deg, var(--sage-pale), var(--rose-pale));
}
.memory-card-img.nature { background: linear-gradient(135deg, #d4e2d4, #e0f0e0); }
.memory-card-img.food { background: linear-gradient(135deg, #faf0e0, #fff5e8); }
.memory-card-img.fun { background: linear-gradient(135deg, #f0e8f8, #faf0ff); }
.memory-card-body { padding: 1.3rem; }
.memory-card-body .date {
  font-size: 0.75rem; color: var(--rose); font-weight: 500;
  letter-spacing: 0.05em;
}
.memory-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600; margin: 0.2rem 0;
}
.memory-card-body p { font-size: 0.85rem; color: var(--text-light); }

/* ===== TIMELINE DETAIL PAGE ===== */
.detail-hero {
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.detail-hero .big-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
}
.detail-hero .date { 
  color: var(--sage); font-size: 0.95rem; font-weight: 500;
  margin-top: 0.3rem;
}
.detail-content {
  max-width: 680px; margin: 0 auto; padding: 0 2rem 4rem;
}
.detail-content p {
  font-size: 1.02rem; color: var(--text-light); margin-bottom: 1.2rem;
  line-height: 1.9;
}
.detail-content .highlight-box {
  background: linear-gradient(135deg, var(--cream), white);
  border-radius: 16px; padding: 2rem;
  border: 1px solid rgba(156, 175, 140, 0.2);
  margin: 2rem 0;
}
.detail-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem;
}
.detail-nav a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--sage); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color 0.3s;
}
.detail-nav a:hover { color: var(--text); }
.detail-nav .prev { padding-left: 1rem; }
.detail-nav .next { padding-right: 1rem; }

/* ===== TIMELINE CONNECTOR LINE (homepage) ===== */
.timeline-connector {
  text-align: center;
  color: var(--sage-light);
  font-size: 1.5rem;
  line-height: 0.5;
  letter-spacing: 0.3em;
}

/* ===== TABLE ===== */
.table-wrap {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
table { width: 100%; border-collapse: collapse; }
th { 
  text-align: left; padding: 0.9rem 1.3rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-light); font-weight: 500;
  background: var(--sage-pale); border-bottom: 1px solid var(--sage-light);
}
td { padding: 0.8rem 1.3rem; border-bottom: 1px solid #f0eee8; font-size: 0.88rem; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 500; white-space: nowrap; color: var(--sage); }
td:last-child { color: var(--text-light); }

/* ===== FOOTER ===== */
footer {
  text-align: center; padding: 3rem 2rem;
  color: var(--text-light); font-size: 0.8rem;
  border-top: 1px solid var(--sage-light); background: var(--cream);
}
footer .heart { color: var(--rose); }
footer .sub { font-size: 0.75rem; color: var(--text-light); margin-top: 0.3rem; }

/* ===== PLACEHOLDER IMAGE ===== */
.placeholder-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  nav { padding: 0 1rem; }
  .nav-brand { font-size: 1rem; }
  .nav-links a { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
  section { padding: 3rem 1.2rem; }
  .about-profile { grid-template-columns: 1fr; }
  .timeline-card { gap: 1rem; padding: 1.2rem; }
  .timeline-card-icon { font-size: 1.8rem; min-width: 45px; }
  .prefs-grid { grid-template-columns: 1fr 1fr; }
  .memory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-links a { font-size: 0.7rem; padding: 0.3rem 0.4rem; }
  .prefs-grid { grid-template-columns: 1fr; }
}

/* ===== RESTAURANT DIARY ===== */
.restaurant-hero {
  background: linear-gradient(135deg, #2d2a28 0%, #4a4540 100%);
  color: white;
}
.restaurant-hero .tag { color: var(--gold); }
.restaurant-hero h1 { color: white; }
.restaurant-hero p { color: rgba(255,255,255,0.6); }

.restaurant-stats {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.restaurant-stat {
  text-align: center;
}
.restaurant-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; display: block;
  color: var(--gold);
}
.restaurant-stat .lbl {
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.resto-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.resto-filters .filter-btn {
  padding: 0.4rem 1.2rem; border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
  background: transparent; border: 1px solid var(--sage-light);
  color: var(--text-light); cursor: pointer;
  transition: all 0.3s;
}
.resto-filters .filter-btn:hover,
.resto-filters .filter-btn.active {
  background: var(--sage); color: white; border-color: var(--sage);
}

.resto-grid {
  display: grid; gap: 1.5rem;
}
.resto-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex; gap: 0;
  transition: all 0.4s;
}
.resto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.resto-card-visual {
  width: 200px; min-height: 200px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.resto-card-visual.japanese { background: linear-gradient(135deg, #f0e0d0, #faf0e8); }
.resto-card-visual.western { background: linear-gradient(135deg, #e8e0f0, #f5f0fa); }
.resto-card-visual.indonesian { background: linear-gradient(135deg, #d4e2d4, #e8f0e0); }
.resto-card-visual.dessert { background: linear-gradient(135deg, #faf0e0, #fff5e8); }
.resto-card-visual.other { background: linear-gradient(135deg, #e8f0f0, #f0f5f5); }
.resto-card-body { padding: 1.5rem; flex: 1; }
.resto-card-body .resto-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600; margin-bottom: 0.15rem;
}
.resto-card-body .resto-date {
  font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.3rem;
}
.resto-card-body .resto-cat {
  font-size: 0.72rem; padding: 0.15rem 0.5rem;
  border-radius: 12px; background: var(--sage-pale);
  color: #5a6e4e; display: inline-block; margin-bottom: 0.5rem;
}
.resto-card-body .resto-food {
  font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.5rem;
}
.resto-card-body .resto-food strong { color: var(--text); }

.resto-card-body .resto-notes {
  font-size: 0.82rem; color: var(--text-light); font-style: italic;
  margin-bottom: 0.5rem;
}

/* ===== STAR RATING ===== */
.stars {
  display: inline-flex; gap: 2px;
  font-size: 1.1rem; line-height: 1;
}
.stars .star {
  position: relative; display: inline-block;
  width: 1.1rem; height: 1.1rem;
}
.stars .star::before {
  content: '★';
  position: absolute; left: 0; top: 0;
  color: #e0ddd5;
}
.stars .star.filled::before {
  color: var(--gold);
}
.stars .star.half::before {
  color: var(--gold);
}
.stars .star.half::after {
  content: '★';
  position: absolute; left: 0; top: 0;
  width: 50%; overflow: hidden;
  color: var(--gold);
}
.stars .star.half-fill::before {
  content: '';
}
.stars .star.half-fill::after {
  content: '★';
  position: absolute; left: 0; top: 0;
  width: 50%; overflow: hidden;
  color: var(--gold);
}

/* Simpler half-star approach */
.stars-rating {
  unicode-bidi: bidi-override;
  direction: rtl;
  text-align: left;
  font-size: 1.3rem;
}
.stars-rating span {
  display: inline-block;
  position: relative;
  width: 1.3rem;
  color: #e0ddd5;
  cursor: pointer;
  transition: color 0.2s;
}
.stars-rating span::before {
  content: '★';
  position: absolute; left: 0;
}
.stars-rating span.half::before {
  width: 50%; overflow: hidden;
}

.static-stars {
  display: inline-flex;
  font-size: 1rem;
  gap: 1px;
}
.static-stars .s {
  color: #e0ddd5;
}
.static-stars .s.f {
  color: var(--gold);
}
.static-stars .s.h {
  position: relative;
  color: #e0ddd5;
}
.static-stars .s.h::after {
  content: '★';
  position: absolute; left: 0; top: 0;
  width: 50%; overflow: hidden;
  color: var(--gold);
}

.resto-score {
  display: flex; align-items: center; gap: 0.5rem;
}
.resto-score .score-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--gold);
}

.resto-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f0eee8;
}

/* Photo placeholder in resto card */
.resto-photos {
  display: flex; gap: 0.4rem; margin-top: 0.5rem;
}
.resto-photos .photo-thumb {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  background: var(--sage-pale);
  cursor: pointer;
  transition: transform 0.3s;
}
.resto-photos .photo-thumb:hover {
  transform: scale(1.1);
}

/* ===== TIMELINE REFINEMENTS ===== */
.timeline-node {
  transform-origin: center top;
}
.timeline-node .node-number {
  position: absolute;
  top: -0.5rem; right: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 4rem; font-weight: 600;
  color: rgba(0,0,0,0.03);
  line-height: 1;
  pointer-events: none;
}

/* ===== ABOUT PAGE - PREMIUM ===== */
.profile-section {
  display: flex; gap: 3rem;
  margin-bottom: 3rem;
}
.profile-large {
  flex: 1;
  background: white;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s;
}
.profile-large:hover {
  transform: translateY(-3px);
}
.profile-large .avatar-wrap {
  width: 100px; height: 100px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}
.profile-large .avatar-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-large h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 400;
}
.profile-large .sub {
  font-size: 0.85rem; color: var(--text-light);
  margin-bottom: 1rem;
}
.profile-large .detail-line {
  font-size: 0.88rem; color: var(--text-light);
  padding: 0.3rem 0; border-bottom: 1px solid #f5f3ef;
}
.profile-large .detail-line:last-child { border-bottom: none; }
.profile-large .detail-line strong { color: var(--text); }

/* Timeline sidebar on about */
.timeline-side {
  max-width: 300px; flex-shrink: 0;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.timeline-side h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--rose);
}

/* Premium panel sections */
.panel {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 400;
  margin-bottom: 0.3rem;
}
.panel .panel-sub {
  font-size: 0.88rem; color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Refined pref tags - more elegant */
.pref-elegant {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.pref-elegant .pill {
  font-size: 0.82rem;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  background: var(--sage-pale);
  color: #4a5e3e;
  transition: all 0.2s;
}
.pref-elegant .pill:hover { background: var(--sage); color: white; }
.pref-elegant .pill.pink { background: var(--rose-pale); color: #9a6a6a; }
.pref-elegant .pill.pink:hover { background: var(--rose); color: white; }
.pref-elegant .pill.gold { background: #f8f0e0; color: #8a6e3a; }
.pref-elegant .pill.gold:hover { background: var(--gold); color: white; }
.pref-elegant .pill.red { background: #ffe0e0; color: #a05050; }

/* Two column layout for preferences */
.pref-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.pref-item {
  display: flex; gap: 0.8rem; align-items: flex-start;
}
.pref-item .emoji {
  font-size: 1.3rem; min-width: 1.8rem;
}
.pref-item .label {
  font-size: 0.78rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pref-item .value {
  font-size: 0.9rem; color: var(--text);
}

@media (max-width: 700px) {
  .profile-section { flex-direction: column; }
  .timeline-side { max-width: 100%; }
  .pref-two { grid-template-columns: 1fr; }
  .resto-card { flex-direction: column; }
  .resto-card-visual { width: 100%; min-height: 120px; }
  .panel { padding: 1.5rem; }
}
