/* 1. 폰트 및 파스텔톤 컬러 설정 */
@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Fredoka:wght@400;600&display=swap');

:root {
  --bg-main: #f9faff;            
  --primary-pink: #ff85c0;       
  --primary-blue: #74c0fc;       
  --text-dark: #495057;          
  --text-soft: #868e96;          
  --bg-pastel-pink: #fff0f6;
  --bg-pastel-purple: #f3f0ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Gowun Dodum', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
}

/* 링크 밑줄 및 파란색 방지 */
a { text-decoration: none !important; color: inherit; }

/* 2. 상단 헤더 */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--primary-pink);
}

.main-nav a {
  margin-left: 20px;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover { color: var(--primary-pink); }

/* 3. 대문 섹션 (Hero) */
.hero {
  padding-top: 64px; 
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #fff5f5 0%, #f0f4ff 100%);
  position: relative;
}

.hero-image-wrap {
  width: 100%;
  max-height: 60vh; 
  overflow: hidden;
  line-height: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.hero-text {
  margin: -80px auto 40px; 
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 550px;
  padding: 40px 25px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  text-align: center;
  border: 1px solid white;
}

.hero-text h1 { font-family: 'Fredoka', sans-serif; font-size: 1.8rem; margin-bottom: 12px; }
.hero-text p { font-size: 14px; color: var(--text-soft); margin-bottom: 25px; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 50px;
  color: white;
  margin: 5px;
  transition: 0.3s;
}
.btn-primary { background: var(--primary-pink); }
.btn-secondary { background: var(--primary-blue); }
.btn:hover { transform: translateY(-3px); filter: brightness(1.05); }

/* 4. 작가 소개 & 전시 경력 섹션 (추가된 부분) */
.about-section {
  padding: 80px 24px;
  background-color: #ffffff; 
  border-bottom: 1px solid #f0f0f0;
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-bio {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-frame {
  width: 150px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--bg-pastel-pink);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.profile-frame img { width: 100%; height: 100%; object-fit: cover; }

.artist-name { font-family: 'Fredoka', sans-serif; font-size: 30px; color: var(--primary-pink); margin-bottom: 10px; }
.artist-desc { font-size: 15px; color: var(--text-dark); line-height: 1.7; margin-bottom: 20px; word-break: keep-all; }
.contact-info span { display: block; font-weight: bold; font-size: 14px; margin-bottom: 10px; }

.sns-links a { font-size: 13px; color: var(--primary-blue); margin-right: 15px; font-weight: bold; border-bottom: 1px solid var(--primary-blue); }

.about-history {
  padding-left: 40px;
  border-left: 2px solid var(--bg-pastel-purple);
}

.history-title { font-family: 'Fredoka', sans-serif; font-size: 20px; margin-bottom: 20px; color: var(--text-dark); }
.history-list { list-style: none; }
.history-list li { display: flex; margin-bottom: 12px; font-size: 14px; }
.history-list li .year { width: 55px; font-weight: bold; color: var(--primary-pink); flex-shrink: 0; }
.history-list li .event { color: var(--text-soft); }

/* 5. 작품 및 시리즈 섹션 */
.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 30px; }
.section-header h2 { font-family: 'Fredoka', sans-serif; font-size: 26px; color: var(--text-dark); }

/* 일러스트 그리드 */
.illustration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  transition: 0.3s;
}
.card:hover { transform: translateY(-8px); }
.illustration-grid .card { aspect-ratio: 1 / 1; }
.card img { width: 100%; height: 100%; object-fit: cover; }

/* 시리즈 카드 */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.series-card .card-body { padding: 25px; }
.series-card h3 { font-size: 20px; color: var(--primary-pink); margin-bottom: 8px; }
.tagline { color: var(--primary-blue); font-weight: bold; font-size: 13px; margin-bottom: 10px; display: block; }
.desc { font-size: 13px; color: var(--text-soft); }

/* 굿즈 이미지 */
.goods-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.goods-row img {
  width: 100% !important; height: 180px !important;
  object-fit: contain !important;
  background: #fff; border: 1px solid #f1f3f5; border-radius: 20px;
}

/* 6. 라이트박스 & 화살표 */
.lightbox {
  position: fixed; inset: 0; 
  background: rgba(255, 255, 255, 0.95); 
  display: none; justify-content: center; align-items: center; z-index: 2000;
}
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 20px; box-shadow: 0 10px 50px rgba(0,0,0,0.1); }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: white !important;
  color: var(--primary-pink) !important;
  border: none !important;
  width: 50px; height: 50px;
  border-radius: 50% !important;
  font-size: 24px !important;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
  transition: 0.3s !important;
  z-index: 2100;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: var(--primary-pink) !important; color: white !important; transform: scale(1.1);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* 7. 모바일 조정 */
@media (max-width: 900px) {
  .about-container { grid-template-columns: 1fr; gap: 40px; }
  .about-bio { flex-direction: column; text-align: center; }
  .about-history { padding-left: 0; border-left: none; border-top: 2px solid var(--bg-pastel-purple); padding-top: 30px; }
  .hero-image-wrap { max-height: 50vh; }
  .illustration-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}