/* ─── Variables ────────────────────────────────────────────────── */
:root {
  --gold: #D4AF37;
  --gold-light: #F4E5C2;
  --gold-dark: #B8941F;
  --black: #0A0A0F;
  --navy: #0F1419;
  --navy-light: #1C2630;
  --white: #FFFFFF;
  --gray: #8B8B8B;
  --gray-light: #E8E8E8;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--black); color: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── Layout ─────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: var(--navy); }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 700; }
.logo-momo { color: var(--gold); }
.logo-in { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: var(--gray); transition: color .2s; }
.nav-link:hover { color: var(--gold); }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: 8px; font-weight: 500; font-size: .95rem;
  border: none; cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: rgba(212,175,55,0.1); }
.btn-google { background: var(--white); color: #333; border: 1px solid var(--gray-light); }
.btn-google:hover { background: #f5f5f5; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── Gold Text ─────────────────────────────────────────────────── */
.gold-text { color: var(--gold); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,175,55,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212,175,55,0.05) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; padding: 60px 0; }
.hero-badge {
  display: inline-block; background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold); padding: 6px 16px; border-radius: 100px; font-size: .85rem; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1.15; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.15rem; color: var(--gray); max-width: 540px; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: .85rem; color: var(--gray); }

/* ─── Section Header ─────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--gray); font-size: 1.05rem; }

/* ─── Steps ──────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.step-card {
  background: var(--navy); border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius); padding: 40px 32px; position: relative; overflow: hidden;
}
.step-card:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-4px); transition: all .3s; }
.step-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.step-num { font-size: 3.5rem; font-weight: 700; color: rgba(212,175,55,0.1); position: absolute; top: 16px; right: 24px; line-height: 1; }
.step-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; color: var(--gold); }
.step-card p { color: var(--gray); line-height: 1.7; }

/* ─── Features ───────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 32px;
}
.feature-card:hover { background: rgba(212,175,55,0.05); border-color: rgba(212,175,55,0.2); transition: all .3s; }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: .95rem; line-height: 1.7; }

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(15,20,25,0) 100%); }
.cta-content { text-align: center; }
.cta-content h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; }
.cta-content p { color: var(--gray); margin-bottom: 40px; font-size: 1.1rem; line-height: 1.8; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.app-download { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.app-download span { color: var(--gray); font-size: .9rem; }
.store-badges { display: flex; gap: 12px; }
.badge-placeholder { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 8px; font-size: .85rem; color: var(--gray); }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer { background: var(--navy); border-top: 1px solid rgba(212,175,55,0.1); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.footer-desc { color: var(--gray); font-size: .9rem; line-height: 1.7; }
.footer h4 { font-size: .95rem; font-weight: 600; margin-bottom: 16px; color: var(--gold); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul li a { color: var(--gray); font-size: .9rem; transition: color .2s; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--gray); font-size: .85rem; }
.footer-warning { color: rgba(255,165,0,0.7) !important; }

/* ─── Auth ───────────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px 40px; }
.auth-card { background: var(--navy); border: 1px solid rgba(212,175,55,0.15); border-radius: 16px; padding: 48px; width: 100%; max-width: 440px; }
.auth-header { text-align: center; margin-bottom: 36px; }
.auth-header .logo { display: inline-block; font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-header p { color: var(--gray); font-size: .95rem; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.divider span { color: var(--gray); font-size: .85rem; white-space: nowrap; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; margin-bottom: 8px; color: var(--gray-light); }
.form-input {
  width: 100%; padding: 12px 16px; border-radius: 8px; font-size: .95rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white); outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--gold); }
.auth-footer { text-align: center; margin-top: 24px; color: var(--gray); font-size: .9rem; }
.auth-footer a { color: var(--gold); }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* ─── Dashboard ──────────────────────────────────────────────────── */
.dashboard-page { padding: 100px 0 60px; min-height: 100vh; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.dash-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.dash-subtitle { color: var(--gray); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.dash-stat-card { background: var(--navy); border: 1px solid rgba(212,175,55,0.15); border-radius: var(--radius); padding: 24px; text-align: center; }
.dash-stat-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.dash-stat-num { font-size: 2rem; font-weight: 700; color: var(--gold); display: block; }
.dash-stat-label { font-size: .85rem; color: var(--gray); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-card { background: var(--navy); border: 1px solid rgba(212,175,55,0.1); border-radius: var(--radius); padding: 24px; }
.dash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-card-header h2 { font-size: 1.1rem; font-weight: 600; }
.link-gold { color: var(--gold); font-size: .9rem; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray); }
.empty-hint { font-size: .85rem; margin-top: 8px; }
.diary-item { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.diary-item:last-child { border-bottom: none; }
.diary-date { font-size: .8rem; color: var(--gold); margin-bottom: 6px; }
.diary-content { font-size: .9rem; color: var(--gray-light); margin-bottom: 6px; line-height: 1.6; }
.diary-score { font-size: .8rem; color: var(--gray); }
.post-item { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.post-item:last-child { border-bottom: none; }
.post-meta { display: flex; gap: 8px; margin-bottom: 6px; }
.post-platform { background: rgba(212,175,55,0.1); color: var(--gold); font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.post-status { font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.status-published { background: rgba(16,185,129,0.1); color: #34d399; }
.status-draft { background: rgba(139,139,139,0.1); color: var(--gray); }
.post-title { font-size: .95rem; margin-bottom: 4px; }
.post-date { font-size: .8rem; color: var(--gray); }

/* ─── Dashboard Layout (Sidebar) ─────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; padding-top: 64px; }
.dash-sidebar {
  width: 220px; min-height: calc(100vh - 64px); background: var(--navy);
  border-right: 1px solid rgba(212,175,55,0.1); padding: 24px 0;
  display: flex; flex-direction: column; position: sticky; top: 64px; height: calc(100vh - 64px);
  flex-shrink: 0;
}
.sidebar-brand { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 16px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; flex: 1; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; color: var(--gray); font-size: .9rem; transition: all .2s;
}
.sidebar-link:hover { background: rgba(212,175,55,0.08); color: var(--white); }
.sidebar-link.active { background: rgba(212,175,55,0.12); color: var(--gold); font-weight: 500; }
.sidebar-footer { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 16px; }
.sidebar-logout { color: var(--gray); font-size: .85rem; transition: color .2s; }
.sidebar-logout:hover { color: #f87171; }

.dash-main { flex: 1; padding: 32px; overflow-y: auto; }
.dash-main-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-main-header h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }

/* ─── Quick Actions ──────────────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.quick-action {
  background: var(--navy); border: 1px solid rgba(212,175,55,0.1); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.quick-action:hover { border-color: rgba(212,175,55,0.4); transform: translateY(-2px); }
.qa-icon { font-size: 1.8rem; }
.qa-label { font-size: .85rem; color: var(--gray); }

/* ─── Diary Grid ─────────────────────────────────────────────────── */
.diary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.diary-card {
  background: var(--navy); border: 1px solid rgba(212,175,55,0.1); border-radius: var(--radius);
  padding: 20px; transition: all .2s;
}
.diary-card:hover { border-color: rgba(212,175,55,0.3); transform: translateY(-2px); }
.diary-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.diary-card-date { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--gray); }
.diary-mood { font-size: 1.2rem; }
.score-badge { font-size: .8rem; padding: 3px 10px; border-radius: 100px; font-weight: 500; }
.score-high { background: rgba(16,185,129,0.15); color: #34d399; }
.score-mid { background: rgba(212,175,55,0.15); color: var(--gold); }
.score-low { background: rgba(139,139,139,0.1); color: var(--gray); }
.diary-card-summary { font-size: .9rem; color: var(--gold); margin-bottom: 8px; font-style: italic; }
.diary-card-preview { font-size: .88rem; color: var(--gray-light); line-height: 1.6; margin-bottom: 12px; }
.diary-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.diary-tag { font-size: .75rem; background: rgba(212,175,55,0.08); color: var(--gold); padding: 2px 8px; border-radius: 4px; }

/* ─── Empty State ────────────────────────────────────────────────── */
.empty-state-full { text-align: center; padding: 80px 20px; color: var(--gray); }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state-full h3 { font-size: 1.2rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.empty-state-full p { line-height: 1.7; }

/* ─── Pagination ─────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.page-btn {
  padding: 8px 14px; border-radius: 6px; font-size: .85rem;
  background: var(--navy); border: 1px solid rgba(255,255,255,0.1); color: var(--gray); transition: all .2s;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }

/* ─── Marketing Content ──────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px; border-radius: 100px; font-size: .85rem;
  background: rgba(255,255,255,0.05); color: var(--gray); border: 1px solid rgba(255,255,255,0.08); transition: all .2s;
}
.filter-tab:hover { border-color: rgba(212,175,55,0.3); color: var(--white); }
.filter-tab.active { background: rgba(212,175,55,0.12); color: var(--gold); border-color: rgba(212,175,55,0.3); }
.content-list { display: flex; flex-direction: column; gap: 16px; }
.content-card {
  background: var(--navy); border: 1px solid rgba(212,175,55,0.1); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s;
}
.content-card:hover { border-color: rgba(212,175,55,0.25); }
.content-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.content-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.platform-badge { font-size: .75rem; background: rgba(212,175,55,0.1); color: var(--gold); padding: 3px 10px; border-radius: 4px; }
.status-pill { font-size: .75rem; padding: 3px 10px; border-radius: 100px; }
.status-published { background: rgba(16,185,129,0.1); color: #34d399; }
.status-draft { background: rgba(139,139,139,0.1); color: var(--gray); }
.status-archived { background: rgba(99,102,241,0.1); color: #a5b4fc; }
.content-date { font-size: .8rem; color: var(--gray); }
.content-actions { display: flex; gap: 8px; }
.btn-action { padding: 5px 12px; border-radius: 6px; font-size: .8rem; border: none; cursor: pointer; transition: all .2s; }
.btn-publish { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.btn-publish:hover { background: rgba(16,185,129,0.3); }
.btn-archive { background: rgba(99,102,241,0.1); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.2); }
.btn-archive:hover { background: rgba(99,102,241,0.2); }
.btn-delete { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.btn-delete:hover { background: rgba(239,68,68,0.2); }
.content-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.content-body { font-size: .9rem; color: var(--gray-light); line-height: 1.7; margin-bottom: 12px; }
.content-hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag { font-size: .8rem; color: var(--gold); background: rgba(212,175,55,0.08); padding: 2px 8px; border-radius: 4px; }

/* ─── Chat Interface ─────────────────────────────────────────────── */
.chat-layout { display: flex; flex-direction: column; padding: 0 !important; height: calc(100vh - 64px); }
.chat-header {
  display: flex; align-items: center; gap: 14px; padding: 20px 28px;
  border-bottom: 1px solid rgba(212,175,55,0.1); background: var(--navy); flex-shrink: 0;
}
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.chat-header h2 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.chat-status { font-size: .8rem; color: #34d399; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.ai { justify-content: flex-start; }
.chat-bubble {
  max-width: 70%; padding: 12px 16px; border-radius: 16px; font-size: .92rem; line-height: 1.7;
}
.chat-msg.user .chat-bubble { background: var(--gold); color: var(--black); border-radius: 16px 16px 4px 16px; }
.chat-msg.ai .chat-bubble { background: var(--navy-light); border: 1px solid rgba(212,175,55,0.15); border-radius: 16px 16px 16px 4px; }
.chat-bubble.streaming { min-width: 60px; }
.thinking { color: var(--gray); font-style: italic; }
.typing-dots span { animation: typing 1.2s infinite; opacity: 0; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100%{opacity:0} 30%{opacity:1} }
.chat-input-area {
  padding: 16px 28px 20px; border-top: 1px solid rgba(212,175,55,0.1);
  background: var(--navy); flex-shrink: 0;
}
.chat-input-wrapper { display: flex; gap: 12px; align-items: flex-end; }
.chat-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(212,175,55,0.2);
  border-radius: 12px; padding: 12px 16px; color: var(--white); font-size: .95rem;
  resize: none; outline: none; min-height: 46px; max-height: 120px; line-height: 1.5;
  font-family: 'Noto Sans KR', sans-serif;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn {
  width: 46px; height: 46px; border-radius: 12px; background: var(--gold); border: none;
  cursor: pointer; color: var(--black); display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--gold-dark); transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-hint { font-size: .78rem; color: var(--gray); margin-top: 8px; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-title { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 20px; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .diary-grid { grid-template-columns: 1fr; }
  .chat-bubble { max-width: 85%; }
}
