/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
/*  font-family: Arial, Helvetica, sans-serif; */
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.6;
  color: #333;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.special-logo-container {
  display: flex;
  justify-content: center;
  padding: 10px 0; /* 위아래 여백 */
  width: 100%;
}

.special-logo-container svg {
  width: 600px;
  max-width: 90%; /* 모바일 대응 */
  height: auto;
  opacity: 0.3;

  /* [핵심] invert로 검정을 밝게 만들고, sepia로 색조를 부여한 뒤 순환 */
  filter: invert(50%) sepia(1) saturate(500%) hue-rotate(0deg);
  animation: logoRainbow 8s linear infinite;
}

@keyframes logoRainbow {
  from {
    filter: invert(50%) sepia(1) saturate(500%) hue-rotate(0deg);
  }
  to {
    filter: invert(50%) sepia(1) saturate(500%) hue-rotate(360deg);
  }
}


.site-header {
  width: 100%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid #000;
}

.menu-bar a {
  text-align: center;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  transition: opacity 0.3s ease;
  padding: 0 8px;
  font-family: 'Times New Roman', Times, serif;
}

.menu-bar a:first-child {
  padding-left: 4px;
}

.menu-bar a:last-child {
  padding-right: 4px;
}

.menu-bar a:hover {
  color: #2fff00;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
  padding: 2px 8px 2px;
  background: #fff;
}

.language-switcher .lang-link {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.language-switcher .lang-link:hover {
  color: #2fff00;
}

.language-switcher .lang-link.active {
  color: #000;
  font-weight: 600;
}

.language-switcher .lang-link:not(:last-child)::after {
  content: " | ";
  color: #ccc;
  margin-left: 0.3rem;
}

/* ========================================
   ARTICLE NAVIGATION (Side Strips)
   ======================================== */
.nav-side {
  position: fixed;
  top: 70px;
  width: 20px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 1000;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #2fff00;
}

.nav-left {
  left: 0;
}

.nav-right {
  right: 0;
}

.nav-side:hover {
  width: 60px;
}

.nav-side .nav-arrow {
  display:inline;
  color:#000;
  transform: scaleY(2); 
}

/* ========================================
   HOME PAGE
   ======================================== */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.article-single {
  flex: 1;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* ========================================
   ARTICLE CARD
   ======================================== */
.article-card {
  margin-bottom: 6rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
  font-family: 'Times New Roman', Times, serif;
}

.article-card .article-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.article-content {
  line-height: 1.8;
  text-align: left;
}

.article-content p,
.article-content .block-text,
.article-content div {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.18rem;
  line-height: 1.8;
  margin: 1.5rem 0;
  color: #333;
}

.article-content figure {
  width: 100%;
  margin: 2rem auto;
}

.article-content img {
  width: 100%;
  height: auto;
  display: block;

  /* --- 효과를 위해 추가할 속성들 --- */
  transition: transform 0.1s ease-out, opacity 0.1s ease-out; /* 변화를 부드럽게 */
  will-change: transform, opacity; /* 브라우저 성능 최적화 */
  
  /* 자바스크립트 미작동 시 기본값 (줌아웃 상태) */
  transform: scale(var(--zoom, 0.7)); 
  opacity: var(--opacity, 0.7);

  /* 사파리에서 잔상을 줄여주는 설정 */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.article-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  display: block;
}

figcaption {
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
  font-family: 'Times New Roman', Times, serif;
}

/* Project Information Section */
.project-info-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.project-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-info-item strong {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

.project-info-item p {
  font-size: 16px;
  font-family: 'Times New Roman', Times, serif;
  margin: 0;
  line-height: 1.6;
}

/* ========================================
   ARCHIVE PAGE
   ======================================== */
.archive {
  margin: 0 auto;
  padding: 8px;
}

.intro {
  margin-bottom: 1rem;
  font-size: 16px;
  text-align: center;
}

.archive-list {
  list-style: none;
}

.article-item {
  text-align: center;
}

.article-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.article-item a:hover {
  color:#2fff00
}

.article-title {
  flex: 1;
  text-align: left;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.1rem;
}

.article-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #999;
  white-space: nowrap;
}

.media-count,
.word-count {
  font-size: 14px;
}

.article-date {
  color: #999;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-left: 16px;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0 auto;
  padding: 1rem;
  max-width: 90%;
}

.profile-content p,
.profile-content .block-text,
.profile-content div {
  font-size: 16px;
  line-height: 1.4;
  margin: 1rem 0;
  padding: 1rem;
  color: #333;
}

.profile-content figure,
.profile-content .block-image {
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  padding: 0;
  text-align: center;
  grid-column: 1 / -1;
}

.profile-content img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.profile-content figcaption {
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
  padding: 0;
}

.profile-statement {
  font-family: 'Times New Roman', Times, serif;
  font-size: 24px !important;
  font-style: italic;
  line-height: 1.6;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
  color: #111;
  grid-column: 1 / -1;
}

.statement-bold {
  font-weight: bold;
}

.statement-black {
  background: #000;
  color: #fff;
  font-style: italic;
}

.statement-yellow {
  background: #2fff00;
  font-style: italic;
}

.statement-underline {
  text-decoration: underline;
}

.profile-content h2 {
  grid-column: 1 / -1; /* 2단 그리드 전체를 가로지름 */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
  padding: 0 1rem; /* 좌우 여백 맞춤 */
  color: #333;
  border-bottom: 1px solid #eee; /* 소제목 아래 얇은 선으로 구분 */
  padding-bottom: 0.5rem;
}

/* 부모: 큰 틀 잡기 */
.profile-content ul {
  margin: 1rem 4rem;
  list-style-type: disc;
  
  /* 1. ul 자체는 부모 그리드에서 2칸을 다 차지해서 넓게 씀 */
  grid-column: span 2; 

  /* 2. [중요] ul 내부를 다시 그리드로 만듦 */
  display: grid;
  grid-template-columns: 1fr 1fr; /* 내부를 2칸으로 나눔 */
  column-gap: 2rem; /* 좌우 간격 */
  row-gap: 0.5rem;  /* 위아래 간격 */
}

/* 자식: ul 안에서 배치 */
.profile-content li {
  font-size: 19px;
  line-height: 1.2;
  color: #333;
  
  /* 3. [삭제] grid-column: span 2; 가 있으면 혼자 다 차지하니 뺍니다 */
  /* 아무것도 안 적으면 자동으로 1칸만 차지해서 2단 배치가 됩니다. */
}

/* Member Profile */
.member-profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.member-profile-image {
  width: 150px;
  height: 150px;
}

.member-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-profile-details {
  text-align: center;
  width: 100%;
}

.member-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.member-position {
  font-style: italic;
  color: #666;
  font-size: 14px;
}

.member-bio {
  font-family: 'Times New Roman', Times, serif;
  font-size: 12px;
  line-height: 1.7;
}

.member-link a,
.member-cv-file a {
  color: #000;
  text-decoration: underline;
  transition: color 0.3s;
}

.member-link a:hover,
.member-cv-file a:hover {
  color: #2fff00;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact {
  margin: 0 auto;
  padding: 3rem 2rem;
  max-width: 600px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  text-align: center;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-item p,
.contact-item div {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
}

.contact-item a {
  color: #333;
  text-decoration: none;
  transition: opacity 0.3s;
  font-family: 'Times New Roman', Times, serif;
  font-size: 18px;
}

.contact-item a:hover {
  color:#2fff00;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid #eee;
  margin-top: 4rem;
  color: #666;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .menu-bar {
    padding: 2px 0;
  }

  .menu-bar a {
    font-size: 14px;
    padding: 0 4px;
  }

  .menu-bar a:first-child {
    padding-left: 4px;
  }

  .menu-bar a:last-child {
    padding-right: 4px;
  }

  .language-switcher {
    justify-content: center;
    padding: 2px 0;
    gap: 0.3rem;
  }

  .language-switcher .lang-link {
    font-size: 0.85rem;
  }

  .nav-side {
    width: 40px;
  }

  .nav-side:hover {
  width: 40px;
}

  .article-single {
    padding: 1rem;
  }

  .article-card h2 {
    font-size: 1.5rem;
  }

  .article-card p {
    font-size: 0.95rem;
  }

  .article-card .article-date {
    font-size: 0.85rem;
  }

  .project-info-grid {
    gap: 8px;
  }

  .archive {
    padding: 4px;
  }

  .article-item a {
    gap: 4px;
    flex-direction: row;
    align-items: flex-start;
  }

  .article-title {
    font-size: 0.9rem;  /* 글씨 더 작게 */
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .member-profile-image {
    width: 120px;
    height: 120px;
  }

  .member-name {
    font-size: 1.5rem;
  }

  .contact {
    padding: 2rem 1rem;
  }
}