/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;700&display=swap');

/* 전체 스타일 */
body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  color: #333;
  transition: background 0.3s ease, color 0.3s ease;
}

/* 컨테이너 */
.container {
  max-width: 850px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
}

/* 제목 스타일 */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #555;
}

/* 본문 스타일 */
p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #444;
}

/* 카드형 스타일 */
.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 15px 0;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-3px);
}

.card a:hover {
  text-decoration: none; 
  color: inherit;
}

/* 강조 블록 */
blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: #555;
  border-left: 5px solid #0070f3;
  padding-left: 15px;
  margin: 20px 0;
}

/* 이미지 스타일 */
img {
  width: 100%;
  max-width: 700px;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 링크 스타일 */
a {
  color: #0070f3;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 버튼 스타일 */
.button {
  display: inline-block;
  padding: 12px 20px;
  background: #0070f3;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  transition: background 0.3s ease-in-out;
}

.button:hover {
  background: #0056b3;
}

/* 목록 스타일 */
ul {
  list-style-type: disc;
  padding-left: 20px;
}

li {
  margin-bottom: 10px;
}

/* 코드 블록 */
pre {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
}

/* 표 스타일 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

th {
  background: #0070f3;
  color: white;
}

/* 인용 */
.notion-quote {
  background-color: #fffefc;
  border: 1px solid #e0e0e0;
  border-left: 6px solid #19b394;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.notion-quote:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.notion-quote .quote-mark {
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  background-color: #19b394;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}



/* 다크 모드 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  .container {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0px 6px 15px rgba(255, 255, 255, 0.1);
  }

  .card {
    background: #222;
  }

  blockquote {
    color: #ccc;
  }

  a {
    color: #66b3ff;
  }

  th {
    background: #0056b3;
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    margin: 20px;
    padding: 20px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
  }
}



.notion-quote-grey {
  background-color: #f9f9f9; /* 옅은 회색 배경 */
  border-left: 4px solid #d3d3d3; /* 좌측 라인 강조 */
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
}

.notion-quote-grey strong {
  font-weight: 600;
  color: #222;
}

.notion-quote-grey code {
  background-color: #eaeaea;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'Courier New', monospace;
  color: #555;
}

.notion-quote-grey .quote-mark {
  position: absolute;
  top: -0.8rem;
  left: 1rem;
  background-color: #0056b3;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
/* Chat Bubble 스타일 */
.chat-bubble {
  position: relative;
  background-color: #fff;
  border: 2px solid #233a35; /* 테두리 */
  padding: 12px 20px;
  margin: 20px 0;
  font-family: 'euljiro';
  font-size: 16px;
  line-height: 1.6;
  border-radius: 16px; /* 둥근 모서리 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); /* 그림자 추가 */
  width: fit-content;
  max-width: 80%;
}

.chat-bubble .bubble-icon {
  font-size: 24px;
  color: #233a35; /* 파란색 */
  position: absolute;
  top: -16px;
  left: 10px;
}

.chat-bubble p {
  margin: 0;
  color: #333;
}

.chat-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #233a35; /* 삼각형 모양 */
}

@font-face {
  font-family: "yeonseuong";
  src: url("../font/BMYEONSUNG.ttf");
}

@font-face {
  font-family: "euljiro";
  src: url("../font/BMEULJIROTTF.ttf");
}


.notion-footer {
  background-color: #f9f9f9; /* 옅은 회색 배경 */
  border-top: 1px solid #e0e0e0; /* 상단 라인 */
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: #007aff; /* 노션 블루 */
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
}

/* 기본 헤더 스타일 */
.notion-header {
  width: 100%;
  background-color: white;
  padding: 0.3rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative; /* 고정하지 않고 자연스럽게 흐르도록 설정 */
}

/* 헤더 내부 컨테이너 */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* 로고 스타일 */
.logo a {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

/* 네비게이션 링크 (데스크탑 기준) */
.nav-links {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.nav-links::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background-color: #f5f5f5;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.nav-links a:hover {
  background-color: #19b394;
  color: white;
}

/* 모바일에서 헤더 구조 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}
