/* public/styles.css - Naver Blog Exact Replica Styling */
@import url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/nanumsquare.css');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Naver Blog Simulation Container */
#naver-preview-content {
  font-family: 'NanumSquare', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  letter-spacing: -0.5px;
  word-break: keep-all;
  word-wrap: break-word;
  color: #222222;
  line-height: 1.85;
}

/* Paragraph: Matches Naver SmartEditor ONE spacing and kerning */
.naver-body-p {
  font-size: 16px;
  line-height: 1.85;
  color: #222222;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  word-break: keep-all;
  word-wrap: break-word;
}

/* Chapter Heading */
.naver-chapter-title {
  font-size: 20px;
  font-weight: 800;
  color: #111111;
  margin-top: 36px;
  margin-bottom: 8px;
  line-height: 1.45;
  letter-spacing: -0.5px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Chapter Subtitle */
.naver-chapter-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
  line-height: 1.6;
}

/* Naver Native Blockquote Callout Box */
.naver-quote-box {
  position: relative;
  border-left: 5px solid #03c75a;
  background-color: #f8fafc;
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.85;
  letter-spacing: -0.5px;
  margin: 24px 0;
  word-break: keep-all;
}

.naver-quote-quote {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 5px solid #3b82f6;
  margin: 20px 0;
  line-height: 1.8;
  letter-spacing: -0.5px;
}

/* Image Wrapper */
.naver-image-wrapper {
  margin: 24px auto;
  text-align: center;
}

.naver-image-caption {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* Naver Table Styling */
.naver-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  letter-spacing: -0.4px;
}

.naver-table th {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.naver-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
  line-height: 1.65;
}

.naver-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* FAQ Block */
.naver-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  background: white;
  overflow: hidden;
}

.naver-faq-q {
  font-weight: 700;
  color: #03c75a;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: -0.4px;
}

.naver-faq-a {
  padding: 14px 16px;
  color: #334155;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: -0.4px;
  background-color: #ffffff;
}

/* Hide scrollbar for clean mobile horizontal touch scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Zero-Flicker (FOUC Prevention) for Authenticated Sessions */
html.is-authenticated #auth-gate-screen,
html.is-authenticated #header-guest-controls {
  display: none !important;
}
html.is-authenticated #header-auth-controls {
  display: flex !important;
}
html.is-authenticated #header-nav-tabs,
html.is-authenticated #main-workspace-container {
  display: block !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
