@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --primary-color: #333333;
  --secondary-color: #666666;
  --accent-color: #a48a6d;
  
  /* Background variations */
  --bg-base: #FDFBF2;
  --bg-about-universe: #FBF7E9;
  --bg-about-me: #F8F3E1;
  --bg-writing: #F5EFD7;
  --bg-photography: #F2EACE;
  --bg-video: #EFE6C5;
  --bg-board: #ECE2BC;

  --white: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  
  /* Fonts */
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  font-weight: 300; /* ?μ? κΈ?¨μ²΄λ‘?κΉλ??κ°μ‘° */
  letter-spacing: -0.03em; /* ?κ°??μ€μ¬???μ­νκ³??λ???λ λΆ??*/
  word-spacing: -0.01em;
  background-color: var(--bg-base);
  color: var(--primary-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease;
}

/* Background classes for pages */
body.page-about-universe { background-color: var(--bg-about-universe); }
body.page-about-me { background-color: var(--bg-about-me); }
body.page-writing { background-color: var(--bg-writing); }
body.page-photography { background-color: var(--bg-photography); }
body.page-video { background-color: var(--bg-video); }
body.page-board { background-color: var(--bg-board); }

/* Ensure Korean text uses the same main font */
.ko-text {
  font-family: var(--font-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-item {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item > a {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  padding: 14px 20px;
  display: block;
  font-size: 13px;
  text-transform: none;
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: rgba(0,0,0,0.02);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 60px;
}

.hero h1 {
  font-weight: 300;
  font-size: 46px;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.hero p {
  color: var(--secondary-color);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
}

/* Home Grid Layout */
.home-section {
  margin-bottom: 80px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* Card Styles */
.card {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 30px;
}

.card-category {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.card-title {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 15px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

.card-excerpt {
  color: var(--secondary-color);
  font-size: 14px;
  margin-bottom: 20px;
}

.card-meta {
  font-size: 12px;
  color: #999;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  text-align: center;
  color: var(--secondary-color);
  font-size: 13px;
  margin-top: 80px;
}

.legal-notice {
  font-size: 11px;
  color: #aaa;
  margin-top: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Page specific styles */
.page-header {
  padding: 80px 0 50px;
  text-align: center;
}

.page-header h1 {
  font-weight: 300;
  font-size: 40px;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.page-header p {
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 300;
}

/* Board specific */
.board-table {
  width: 100%;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.board-table th, .board-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.board-table th {
  background-color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 13px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.board-table tr:last-child td {
  border-bottom: none;
}

.board-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Writing Post style */
.post-single {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 50px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 50px;
}

.post-single img {
  margin: 40px 0;
  border-radius: 8px;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.handwriting-img {
  max-width: 600px;
  margin: 30px auto;
  border: 1px solid var(--border-color);
  padding: 15px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  border-radius: 4px;
  transform: rotate(-1deg);
}

/* Video Thumbnails */
.video-card .card-img-wrapper {
  position: relative;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-card:hover .play-icon {
  background-color: var(--accent-color);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
}


/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-menu a {
    font-size: 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    padding: 60px 0 40px;
  }
  .page-header h1 {
    font-size: 32px;
  }
  footer .container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .legal-notice {
    text-align: center;
  }
}
