/* ---------- 기본 ---------- */
body {
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: "SUIT", -apple-system, sans-serif;
}

body.light {
  background-color: #ffffff;
  color: #000000;
  --card: #ffffff;
  --border: rgba(49, 51, 56, 0.18);
  --text: #222222;
  --sub: #444444;
  --muted: #7c828a;
}

body.dark {
  background-color: #121212;
  color: #f5f5f5;
  --card: #1b1b1b;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --sub: #cccccc;
  --muted: #bbbbbb;
}

/* ---------- 컨테이너 ---------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* ---------- 버튼 공통 ---------- */
#theme-toggle,
#language-toggle,
.links a {
  width: 54px;
  height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

#theme-toggle {
  border: none; /* 기본 버튼 테두리 제거 */
  cursor: pointer;
  font-family: inherit;
}

#language-toggle {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 버튼: 모드별 ---------- */
body.light #theme-toggle,
body.light #language-toggle,
body.light .links a {
  color: #333;
  background-color: #f0f0f0;
}

body.light #theme-toggle:hover,
body.light #language-toggle:hover,
body.light .links a:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

body.dark #theme-toggle,
body.dark #language-toggle,
body.dark .links a {
  color: #fff;
  background-color: #555;
}

body.dark #theme-toggle:hover,
body.dark #language-toggle:hover,
body.dark .links a:hover {
  background-color: #666;
  transform: translateY(-2px);
}

/* ---------- 링크 영역 ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.links {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- 헤더 ---------- */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.text-section {
  flex: 1 1 60%;
}

.text-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.text-section p {
  margin-top: 0;
}

.photo-section {
  flex: 1 1 30%;
  text-align: right;
}

.profile-photo {
  width: 160px;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- 공통 섹션 ---------- */
section {
  margin-top: 2rem;
}

section h2 {
  font-size: 1.2rem;
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.3s ease;
}

body.light section h2 {
  border-top: 1px solid #ccc;
}

body.dark section h2 {
  border-top: 1px solid #444;
}

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 1rem;
}

strong {
  font-weight: 600;
}

/* ---------- Entry Block ---------- */
.entry-block {
  margin-bottom: 1.15rem;
  transition: border-color 0.3s ease;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.entry-title {
  font-weight: 600;
  font-size: 1.05rem;
}

body.light .entry-title {
  color: #222;
}

body.dark .entry-title {
  color: #fff;
}

body.light .entry-period {
  color: #888;
}

body.dark .entry-period {
  color: #bbb;
}

.entry-description {
  font-size: 1rem;
  line-height: 1.6;
}

body.light .entry-description {
  color: #444;
}

body.dark .entry-description {
  color: #ccc;
}

.project-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
@media (max-width: 780px){
  .project-grid{ grid-template-columns: 1fr; }
}

/* 카드 자체 톤(조금 더 깔끔) */
.project-card{
  margin: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 18px 18px 26px;
  /* box-shadow: 0 6px 18px rgba(0,0,0,0.06); */
  transition: transform .18s ease, border-color .4s ease, box-shadow .2s ease;
}

.project-card:hover{
  transform: translateY(-6px);
  border-color: var(--border);
}

.project-title{
  font-family: "SUIT", "Pretendard", system-ui, sans-serif;
  font-weight: 700;
  margin: 0;
  font-weight: 550;     
  font-size: 1.06rem;
  letter-spacing: -0.3px;
  color: var(--text);
}

.project-period{
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--muted);        
}

.project-desc{
  margin: 10px 0 12px;
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 1.65;
}

.project-tag{
  font-size: 0.82rem;
  font-weight: 600;
  margin: 12px 6px 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  color: rgba(60, 69, 83, 0.9);
  background: rgba(93, 96, 104, 0.07);
  border: 1px solid rgba(16, 16, 17, 0.14);
}

.project-links a{
  text-decoration: none;
  font-weight: 650;
  margin: 12px 6px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.project-links a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-tags{ margin-top: 12px; }
.project-links{ margin-top: 12px; }

body.dark .project-card{
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}
body.dark .project-tag{
  color: rgba(207,224,255,0.95);
  background: rgba(37,99,235,0.14);
  border-color: rgba(37,99,235,0.22);
}

.skills-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 780px){
  .skills-grid{ grid-template-columns: 1fr; }
}

.skill-card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.skill-title{
  font-weight: 750;
  letter-spacing: -0.2px;
  margin: 0 0 10px 0;
  color: var(--text);
}

.skill-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.skill-chip{
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: rgba(37,99,235,0.92);
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.14);
}

body.dark .skill-card{
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

body.dark .skill-chip{
  color: rgba(207,224,255,0.95);
  background: rgba(37,99,235,0.14);
  border-color: rgba(37,99,235,0.22);
}

#honors{
  list-style: none;
  padding-left: 0;
}
#honors li{
  margin-bottom:20px;          /* li에 padding 있으면 제거 */
}

.muted-link{
  font-family: "SUIT", "Pretendard", system-ui, sans-serif;
  font-weight: 300;
  color: #7c828a;          /* 회색 */
  text-decoration: none;   /* 밑줄 제거 */
}
.muted-link:hover{
  color: #7a8290;          /* 살짝 진한 회색(선택) */
  text-decoration: none;
}

/* 한 줄 정렬 */
.badge-line{
  display:flex;
  align-items:center;         /* ✅ 수직 가운데 정렬 */
  justify-content: flex-start;
  gap: 14px;
}

/* 왼쪽 로고 줄 */
.badge-row{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* 로고 박스 크기 통일 */
.tech-logo{
  width: 60px;                /* ✅ 높이랑 맞추기 */
  height: 60px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}

.tech-logo img{
  width: 32px;
  height: 32px;
  display:block;
}



.footer{
  margin-top: 60px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: #9CA3AF;
  font-size: 0.9rem;
  text-align: center;        
}

.tech-item{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tech-label{
  font-size: 0.78rem;
  color: #9CA3AF;
  font-weight: 650;
  line-height: 1;
}


.boj-item{
  padding-top: 30px;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.boj-label{

  font-size: 0.78rem;
  color: #9CA3AF;
  font-weight: 650;
  line-height: 1;
}


.boj-mark{

  overflow:hidden;                 /* ✅ 여기서 잘림 */
  border-radius: 14px;
}

.boj-mark img{
  width: auto;
  display:block;
}
