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

/* ── Variables ── */
:root {
  --bg:        #F5F1EB;
  --bg2:       #EDE7DC;
  --bg3:       #E8DFD0;
  --border:    #D3D1C7;
  --text:      #2C2C2A;
  --muted:     #5F5E5A;
  --hint:      #888780;
  --faint:     #B4B2A9;
  --amber:     #D4A96A;
  --amber-dark:#854F0B;
  --teal:      #5CAEAD;
  --mono:      'JetBrains Mono', monospace;
  --sans:      'Pretendard', 'Noto Sans KR', sans-serif;
}

body { background: var(--bg); color: var(--text); font-family: var(--sans); min-height: 100vh; }

/* ── Nav ── */
.nav { border-bottom: 0.5px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; gap: 0; }
.nav-link { font-family: var(--mono); font-size: 13px; color: var(--hint); text-decoration: none; padding: 1rem 1.2rem; border-bottom: 2px solid transparent; transition: color 0.15s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--text); }
.nav-tool { font-family: var(--mono); font-size: 12px; color: var(--amber-dark); text-decoration: none; padding: 6px 14px; border: 0.5px solid var(--amber); border-radius: 20px; background: #FAEEDA44; transition: background 0.15s; }
.nav-tool:hover { background: #FAEEDA; }

/* ── Main ── */
.main { max-width: 900px; margin: 0 auto; padding: 2.5rem 2rem; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; margin-bottom: 2rem; }
.crumb-dir { font-family: var(--mono); font-size: 12px; padding: 5px 14px; background: var(--bg3); color: var(--muted); border-radius: 4px 0 0 4px; }
.crumb-arr { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 10px solid var(--bg3); }
.crumb-root { font-family: var(--mono); font-size: 12px; padding: 5px 14px; background: var(--amber); color: #412402; margin-left: -2px; }
.crumb-arr2 { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 10px solid var(--amber); }
.crumb-sub { font-family: var(--mono); font-size: 12px; padding: 5px 14px; background: var(--amber); color: #412402; margin-left: -2px; }

/* ── Hero ── */
.hero-title { font-family: var(--mono); font-size: 2.6rem; font-weight: 500; color: var(--text); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.hero { display: flex; gap: 2.5rem; margin-bottom: 2rem; align-items: flex-start; }
.profile-img { width: 110px; height: 110px; border-radius: 50%; border: 2px solid var(--border); background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; flex-shrink: 0; cursor: pointer; transition: border-color 0.2s; overflow: hidden; }
.profile-img:hover { border-color: var(--amber); }
.profile-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-info { flex: 1; }
.status-line { font-family: var(--mono); font-size: 13px; color: var(--hint); margin-bottom: 10px; }
.active-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #639922; flex-shrink: 0; }
.active-text { font-family: var(--mono); font-size: 13px; color: #3B6D11; font-weight: 500; }
.info-row { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--hint); margin-bottom: 6px; }
.icons-row { display: flex; gap: 10px; margin-top: 14px; }
.icon-btn { width: 40px; height: 40px; background: var(--bg2); border: 0.5px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--hint); text-decoration: none; font-size: 14px; transition: background 0.15s; }
.icon-btn:hover { background: var(--amber); color: #412402; }

/* ── Terminal Box ── */
.terminal-box { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 10px; padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.term-prompt { font-family: var(--mono); font-size: 13px; color: #B47A3C; margin-bottom: 10px; }
.term-input { width: 100%; background: var(--bg); border: 0.5px solid var(--border); border-radius: 6px; padding: 9px 14px; font-family: var(--mono); font-size: 13px; color: var(--text); outline: none; }
.term-input::placeholder { color: var(--faint); }
.term-input:focus { border-color: var(--amber); }

/* ── Section Tags ── */
.section-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 14px; border-radius: 4px 0 0 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 1rem; position: relative; }
.section-tag::after { content: ''; position: absolute; right: -10px; top: 0; width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.section-tag.edu  { background: var(--bg3); } .section-tag.edu::after  { border-left: 10px solid var(--bg3); }
.section-tag.lang { background: #FAEEDA;   } .section-tag.lang::after { border-left: 10px solid #FAEEDA; }
.section-tag.skills { background: #EAF3DE; } .section-tag.skills::after { border-left: 10px solid #EAF3DE; }
.section-gap { margin-bottom: 2.5rem; }
.sub-cmd { font-family: var(--mono); font-size: 12px; color: #B47A3C; margin: 14px 0 8px; }

/* ── Cards ── */
.card { background: var(--bg2); border: 0.5px solid var(--border); border-radius: 10px; padding: 1.1rem 1.4rem; margin-bottom: 10px; }
.row-card { display: flex; justify-content: space-between; align-items: center; }
.card-title { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--text); }
.card-sub { font-family: var(--mono); font-size: 12px; color: var(--hint); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-family: var(--mono); font-size: 11px; border: 0.5px solid var(--border); background: var(--bg); color: var(--hint); }
.badge.native { background: #EAF3DE; color: #3B6D11; border-color: #C0DD97; }
.badge.toeic   { background: #E6F1FB; color: #185FA5; border-color: #B5D4F4; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.skill-chip { display: flex; align-items: center; gap: 7px; padding: 7px 12px; background: var(--bg); border: 0.5px solid var(--border); border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--text); }
.skill-chip:hover { background: var(--bg2); }

/* ── Footer ── */
.footer { text-align: center; padding: 2rem; font-family: var(--mono); font-size: 12px; color: var(--faint); border-top: 0.5px solid var(--border); margin-top: 2rem; }

/* ── Modal ── */
.pw-err { font-family: var(--mono); font-size: 11px; color: #A32D2D; margin-bottom: 8px; display: none; }
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(44,44,42,0.35); z-index: 100; align-items: center; justify-content: center; }
.modal-bg.open { display: flex; }
.modal { background: var(--bg); border: 0.5px solid var(--border); border-radius: 14px; padding: 1.5rem; width: 300px; display: flex; flex-direction: column; gap: 10px; }
.modal-title { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); }
.mlabel { font-family: var(--mono); font-size: 11px; color: var(--hint); }
.minput { width: 100%; background: #fff; border: 0.5px solid var(--border); border-radius: 8px; padding: 9px 12px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none; }
.minput:focus { border-color: var(--amber); }
.mrow { display: flex; gap: 8px; }
.mcancel { flex: 1; background: var(--bg2); border: 0.5px solid var(--border); border-radius: 8px; padding: 9px; font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; }
.madd { flex: 1; background: var(--text); border: none; border-radius: 8px; padding: 9px; font-family: var(--mono); font-size: 12px; color: var(--bg); cursor: pointer; }
.madd:hover { background: #444441; }

/* ── Experience Page ── */
.page-title { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.page-sub { font-family: var(--mono); font-size: 12px; color: var(--hint); margin-bottom: 1.8rem; }
.sec-label { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: 0.05em; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.sec-label::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }
.exp-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2rem; }
.exp-card { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; }
.exp-card:hover .exp-main { background: #FAFAF8; }
.exp-main { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 1rem; padding: 14px 16px; transition: background 0.15s; }
.exp-period { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.exp-title { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.exp-sub { font-family: var(--mono); font-size: 11px; color: var(--hint); }
.exp-badges { display: flex; gap: 5px; align-items: center; }
.ebadge { font-family: var(--mono); font-size: 10px; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.ebadge.work    { background: #FAEEDA; color: #854F0B; }
.ebadge.club    { background: #E1F5EE; color: #0F6E56; }
.ebadge.project { background: #EEEDFE; color: #534AB7; }
.ebadge.current { background: #EAF3DE; color: #3B6D11; }
.chevron { font-size: 10px; color: var(--faint); transition: transform 0.2s; display: inline-block; margin-left: 6px; }
.exp-card.open .chevron { transform: rotate(90deg); }
.exp-detail { border-top: 0.5px solid #F1EFE8; padding: 14px 16px 16px; display: none; background: #FAFAF8; }
.exp-card.open .exp-detail { display: block; }
.dl { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.04em; margin-bottom: 5px; }
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.bullet-list li { font-family: var(--mono); font-size: 12px; color: var(--text); padding-left: 14px; position: relative; line-height: 1.6; }
.bullet-list li::before { content: '$'; position: absolute; left: 0; color: var(--faint); font-size: 10px; top: 2px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.etag { font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 6px; }
.etag.b { background: #E6F1FB; color: #185FA5; }
.etag.g { background: #EAF3DE; color: #3B6D11; }
.etag.a { background: #FAEEDA; color: #854F0B; }
.etag.p { background: #EEEDFE; color: #534AB7; }
.etag.gray { background: var(--bg3); color: var(--muted); }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.award-card { background: #fff; border: 0.5px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.award-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.award-icon.gold   { background: #FAEEDA; }
.award-icon.silver { background: #F1EFE8; }
.award-icon.bronze { background: #EAF3DE; }
.award-title  { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.award-detail { font-family: var(--mono); font-size: 10px; color: var(--hint); }

/* ── Projects Page ── */
.yr-tabs { display: flex; margin-bottom: 1.2rem; }
.yr-tab { font-family: var(--mono); font-size: 12px; padding: 7px 18px; border: 0.5px solid var(--border); background: var(--bg2); color: var(--hint); cursor: pointer; transition: all 0.15s; }
.yr-tab:first-child { border-radius: 8px 0 0 8px; }
.yr-tab:last-child  { border-radius: 0 8px 8px 0; }
.yr-tab:not(:first-child) { border-left: none; }
.yr-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); z-index: 1; }
.yr-tab:hover:not(.active) { background: var(--border); color: var(--text); }
.yr-count { font-size: 10px; margin-left: 5px; opacity: 0.6; }
.proj-body { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.proj-card { background: #fff; border: 0.5px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: all 0.15s; margin-bottom: 6px; }
.proj-card:hover { border-color: var(--hint); }
.proj-card.active { border-color: var(--text); }
.proj-card-title { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.proj-arrow { font-size: 10px; color: var(--faint); transition: transform 0.15s; }
.proj-card.active .proj-arrow { transform: translateX(3px); color: var(--text); }
.proj-desc-short { font-family: var(--mono); font-size: 10px; color: var(--hint); line-height: 1.5; margin-bottom: 7px; }
.ptag { font-family: var(--mono); font-size: 9px; padding: 2px 6px; border-radius: 6px; background: var(--bg3); color: var(--muted); }
.ptag.b { background: #E6F1FB; color: #185FA5; }
.ptag.g { background: #EAF3DE; color: #3B6D11; }
.ptag.a { background: #FAEEDA; color: #854F0B; }
.ptag.p { background: #EEEDFE; color: #534AB7; }
.detail-panel { background: #fff; border: 0.5px solid var(--border); border-radius: 12px; padding: 1.6rem; min-height: 400px; }
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 380px; gap: 12px; }
.detail-empty-icon { font-family: var(--mono); font-size: 32px; color: var(--border); }
.detail-empty-text { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.detail-yr    { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-bottom: 6px; }
.detail-title { font-family: var(--mono); font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.detail-tags  { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1.4rem; }
.divider { border: none; border-top: 0.5px solid #F1EFE8; margin: 1.2rem 0; }
.dv { font-family: var(--mono); font-size: 12px; color: var(--text); line-height: 1.7; margin-bottom: 1.2rem; }
.links-row { display: flex; gap: 10px; margin-top: 0.8rem; }
.det-link { font-family: var(--mono); font-size: 12px; padding: 7px 16px; border-radius: 8px; text-decoration: none; cursor: pointer; }
.det-link.gh   { background: var(--text); color: var(--bg); }
.det-link.demo { background: var(--bg2); border: 0.5px solid var(--border); color: var(--text); }
.det-link:hover { opacity: 0.85; }
