/* ========== 공통 스타일 (Figma 34-2 메인 페이지) ========== */
:root {
  --sidebar-bg: #ffffff;
  --main-bg: #ffffff;
  --accent: #9f7aea;
  --accent-light: #E0CCFF;
  --text: #333333;
  --text-muted: #6b7280;
  --text-muted-light: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--text);
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 30px 0;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  max-width: 100vw;
  overflow: hidden;
}

/* ========== 사이드바 (Figma: 프로필·정보·연락처) ========== */
.sidebar {
  width: 280px;
  min-width: 260px;
  align-self: stretch;
  background: var(--sidebar-bg);
  margin: 0 0 80px 30px;
  padding: 0 20px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(229, 231, 235, 1);
}

.profile-wrap {
  width: 275px;
  box-sizing: border-box;
  padding: 0 20px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.profile-img {
  width: 215px;
  height: fit-content;
  display: block;
  margin: 0;
  padding: 10px 0;
  border: none;
  border-radius: 30px;
  object-fit: contain;
  background: none;
  background-image: none;
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 3px solid var(--sidebar-bg);
  border-radius: 50%;
}

.sidebar h1,
.sidebar-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sidebar .title,
.sidebar-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.sidebar hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.info-rows {
  width: 215px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.info-row .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-row .value,
.info-row span:last-child {
  text-align: right;
  color: var(--text);
}

.contact-block {
  margin-top: auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon,
.contact-item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.contact-meta,
.contact-item .meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-item a {
  color: var(--text);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ========== 메인 콘텐츠 (Figma 34-3: 박스로 감싼 영역) ========== */
.main {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  margin: 0 30px 80px 0;
  padding: 50px;
  background: #f8fafc;
  color: rgba(51, 51, 51, 1);
  border: 0.876356px solid rgba(229, 231, 235, 1);
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
  text-align: left;
}

.greeting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.greeting-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}

.greeting-bar {
  width: 360px;
  max-width: 100%;
  height: 50px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
}

.nav-tabs {
  display: flex;
  gap: 8px;
  margin-top: 200px;
  margin-bottom: 0;
}

.nav-tabs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-tabs a:hover {
  color: var(--text);
}

.nav-tabs a.active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.nav-tabs .tab-icon {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.nav-sep {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0 0 28px;
}

.content-area {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px 40px;
  background: var(--main-bg);
  min-height: 320px;
}

.content-panel {
  display: none;
}

.content-panel.is-visible {
  display: block;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.intro {
  position: relative;
  padding-left: 16px;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.intro::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ========== About Me (Figma 34-2 style) ========== */
#about.about-figma {
  max-width: 100%;
}

.about-figma .about-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.01em;
}

.about-heading-accent {
  color: var(--accent);
  margin-right: 6px;
}

.about-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-figma .about-body:last-of-type.about-goal {
  margin-bottom: 24px;
}

.about-goal {
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  margin-top: 18px;
  color: var(--text);
}

/* 두 개 카드 나란히 (Figma Information Cards) */
.about-cards-figma {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card-figma {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.about-card-figma-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

/* Figma 36-14: 제목 아래 얇은 구분선 */
.about-card-figma-divider {
  border: none;
  height: 0;
  border-top: 1px solid #e0e0e0;
  margin: 12px 0 16px;
}

.about-card-figma .about-edu,
.about-card-figma .about-cert-list {
  margin: 0;
  padding: 0;
}

/* Education 카드: disc 불릿 리스트 (Figma 36-14) */
.about-card-edu .about-edu {
  list-style: disc;
  padding-left: 1.5em;
}

.about-card-edu .about-edu-item {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-card-edu .about-edu-item:last-child {
  margin-top: 6px;
  margin-bottom: 0;
}

.about-card-edu .about-edu-org {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
  display: block;
  margin-bottom: 4px;
}

/* 하위 항목: 불릿 없이 텍스트 아래 들여쓰기 */
.about-card-edu .about-edu-sub {
  list-style: none;
  margin: 4px 0 0 1em;
  padding: 0;
  font-size: inherit;
  color: inherit;
  line-height: 1.6;
}

.about-card-edu .about-edu-sub li {
  position: static;
  padding-left: 0;
  margin-bottom: 2px;
}

.about-card-edu .about-edu-sub li::before {
  content: none;
}

.about-edu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-edu-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.about-edu-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.about-card-figma .about-edu-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.about-card-figma .about-edu-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-edu-org {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.about-edu-sub {
  list-style: none;
  margin: 0 0 0 16px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-edu-sub li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.about-edu-sub li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-cert {
  margin-bottom: 0;
}

.about-cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-cert-list li {
  margin: 0;
}

.about-cert-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ========== Projects ========== */
.projects {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  background: var(--main-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.project-card .ext-link {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.project-card .ext-link:hover {
  color: var(--accent);
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.project-card .description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text);
  background: #f3f4f6;
  border-radius: var(--radius-sm);
}

/* ========== Skills ========== */
#skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px 32px;
}

.skills-category {
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
}

.skills-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.skill-row .name {
  flex: 0 0 180px;
  font-size: 0.9rem;
  color: var(--text);
}

.skill-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ========== Writing ========== */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.writing-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-item:hover {
  background: #f9fafb;
}

.writing-item .icon-book {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.writing-item .content {
  flex: 1;
}

.writing-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.writing-item .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.writing-item .arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
}

.writing-item:hover .arrow {
  color: var(--accent);
}

/* ========== 1440×1024 데스크톱 전체 화면 맞춤 ========== */
@media (max-width: 1440px) and (max-height: 1024px) {
  body {
    overflow-y: auto;
    min-height: 100vh;
  }

  .sidebar {
    margin: 16px 0;
    height: calc(100vh - 32px);
    min-height: 0;
  }

  .main {
    margin: 16px 40px 16px 0;
    height: auto;
    min-height: calc(100vh - 32px);
    padding: 32px 40px 48px;
    overflow: visible;
    zoom: 0.9;
  }
}

/* ========== 반응형 ========== */
@media (max-width: 900px) {
  body {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    min-height: auto;
    margin: 0;
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
  }

  .profile-wrap {
    margin: 0 auto 20px;
  }

  .main {
    margin: 16px;
    height: auto;
    min-height: auto;
    padding: 32px 24px 48px;
  }

  .greeting-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .greeting-text {
    font-size: 2rem;
  }

  .greeting-bar {
    width: 100%;
    max-width: 320px;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .content-area {
    padding: 24px 20px 32px;
  }

  .about-cards-figma {
    grid-template-columns: 1fr;
  }
}
