/* ============================================================
   노코드 ai 블로그 포스트 스타일
   Professional, clean, sophisticated design
   ============================================================ */

/* ========== 기본 배경/글꼴 오버라이드 ========== */
body.single-post {
  background: #0F172A !important;
  color: #E2E8F0 !important;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.8;
}

body.single-post .wp-site-blocks {
  background: #0F172A;
}

/* ========== 헤더 다크 모드 + 로고 스타일 ========== */
body.single-post header {
  background: rgba(11, 15, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  color: #94A3B8 !important;
}

body.single-post footer {
  background: #0B0F1A !important;
  color: #94A3B8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.single-post header a,
body.single-post footer a {
  color: #A78BFA !important;
}

/* 사이트 타이틀 (노코드 ai) 로고 스타일 */
body.single-post .wp-block-site-title {
  margin: 0 !important;
}

body.single-post .wp-block-site-title a {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px !important;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-decoration: none !important;
  transition: opacity 0.3s !important;
}

body.single-post .wp-block-site-title a:hover {
  opacity: 0.85;
}

/* 네비게이션 링크 스타일 */
body.single-post .wp-block-navigation a {
  color: #94A3B8 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: color 0.3s !important;
}

body.single-post .wp-block-navigation a:hover {
  color: #F1F5F9 !important;
}

body.single-post .wp-block-group {
  color: #E2E8F0;
}

/* ========== 글 제목 ========== */
body.single-post h1.wp-block-post-title {
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 800 !important;
  color: #F1F5F9 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin: 0 auto 32px !important;
}

/* ========== Featured Image ========== */
body.single-post .wp-block-post-featured-image {
  max-width: 900px;
  margin: 0 auto 48px !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.single-post .wp-block-post-featured-image img {
  border-radius: 16px;
}

/* ========== 본문 컨테이너 ========== */
body.single-post .wp-block-post-content {
  max-width: 800px;
  margin: 0 auto;
}

/* ========== .nc-article 스타일 ========== */
.nc-article {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #CBD5E1;
}

.nc-article p {
  margin-bottom: 20px;
  color: #CBD5E1;
}

.nc-article strong {
  color: #F1F5F9;
  font-weight: 700;
}

.nc-article a {
  color: #A78BFA;
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.3);
  text-underline-offset: 3px;
  transition: all 0.3s;
}

.nc-article a:hover {
  color: #8B5CF6;
  text-decoration-color: #8B5CF6;
}

/* ========== 본문 내 이미지 ========== */
.nc-featured-img {
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nc-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ========== 리드 문단 ========== */
.nc-lead {
  font-size: 1.2rem !important;
  color: #94A3B8 !important;
  border-left: 3px solid #8B5CF6;
  padding-left: 20px;
  margin-bottom: 40px !important;
  line-height: 1.9;
}

/* ========== 목차(TOC) ========== */
.nc-toc {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 48px;
  backdrop-filter: blur(10px);
}

.nc-toc-title {
  font-size: 0.85rem !important;
  font-weight: 700;
  color: #A78BFA !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px !important;
}

.nc-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nc-toc li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nc-toc li:last-child {
  border-bottom: none;
}

.nc-toc a {
  color: #94A3B8 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: color 0.3s, padding-left 0.3s;
  display: block;
}

.nc-toc a:hover {
  color: #F1F5F9 !important;
  padding-left: 8px;
}

.nc-toc a::before {
  content: '→ ';
  color: #8B5CF6;
  margin-right: 8px;
}

/* ========== h2 제목 ========== */
.nc-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #F1F5F9;
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
  letter-spacing: -0.3px;
}

.nc-article h2:first-of-type {
  margin-top: 0;
}

/* ========== h3, h4 제목 ========== */
.nc-article h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #E2E8F0;
  margin: 36px 0 16px;
}

.nc-article h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E2E8F0;
  margin: 0 0 8px;
}

/* ========== 리스트 ========== */
.nc-article ul, .nc-article ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.nc-article li {
  margin-bottom: 12px;
  color: #CBD5E1;
}

.nc-article li strong {
  color: #F1F5F9;
}

/* ========== 하이라이트 박스 ========== */
.nc-highlight-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
}

.nc-highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  border-radius: 16px 16px 0 0;
}

.nc-highlight-box p {
  margin: 0 !important;
  color: #E2E8F0 !important;
}

.nc-accent {
  color: #A78BFA !important;
  font-weight: 700;
}

/* ========== 비교 테이블 ========== */
.nc-compare-table {
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.nc-compare-table thead {
  background: rgba(139, 92, 246, 0.15);
}

.nc-compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: #F1F5F9;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.nc-compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #CBD5E1;
}

.nc-compare-table tr:last-child td {
  border-bottom: none;
}

.nc-compare-table tbody tr {
  transition: background 0.3s;
}

.nc-compare-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.nc-compare-table td strong {
  color: #F1F5F9;
}

/* ========== Step-by-Step ========== */
.nc-steps {
  margin: 32px 0;
}

.nc-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  align-items: flex-start;
}

.nc-step:last-child {
  border-bottom: none;
}

.nc-step-num {
  min-width: 72px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  padding: 0 16px;
  flex-shrink: 0;
}

.nc-step-content {
  flex: 1;
}

.nc-step-content h4 {
  margin-bottom: 8px;
  color: #F1F5F9;
}

.nc-step-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #94A3B8;
}

/* ========== 인포 그리드 ========== */
.nc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.nc-info-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.nc-info-item:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.nc-info-item h4 {
  font-size: 1.05rem;
  margin-bottom: 12px !important;
  color: #F1F5F9;
}

.nc-info-item p {
  font-size: 0.9rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.7;
}

/* ========== 타임라인 ========== */
.nc-timeline {
  margin: 32px 0;
  padding-left: 32px;
  border-left: 2px solid rgba(139, 92, 246, 0.3);
}

.nc-timeline-item {
  position: relative;
  padding: 0 0 36px 24px;
}

.nc-timeline-item:last-child {
  padding-bottom: 0;
}

.nc-timeline-dot {
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8B5CF6;
  border: 3px solid #0F172A;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.nc-timeline-content h4 {
  font-size: 1.05rem;
  color: #F1F5F9;
  margin-bottom: 8px;
}

.nc-timeline-content p {
  font-size: 0.92rem;
  color: #94A3B8;
  margin: 0;
}

/* ========== 체크리스트 ========== */
.nc-checklist {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 32px 0;
}

.nc-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s;
}

.nc-checklist label:last-child {
  border-bottom: none;
}

.nc-checklist label:hover {
  color: #F1F5F9;
}

.nc-checklist input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.3s;
}

.nc-checklist input[type="checkbox"]:checked {
  background: #8B5CF6;
  border-color: #8B5CF6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ========== CTA 인라인 ========== */
.nc-cta-inline {
  text-align: center;
  padding: 48px 32px;
  margin: 48px 0 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.nc-cta-inline::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.06), transparent 70%);
}

.nc-cta-inline p {
  position: relative;
  font-size: 1.15rem;
  font-weight: 600;
  color: #E2E8F0 !important;
  margin-bottom: 20px !important;
}

.nc-cta-inline a {
  position: relative;
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, #8B5CF6, #3B82F6);
  border-radius: 50px;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none !important;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nc-cta-inline a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* ========== 반응형 ========== */
@media (max-width: 768px) {
  .nc-step {
    flex-direction: column;
    gap: 12px;
  }

  .nc-step-num {
    min-width: auto;
    align-self: flex-start;
  }

  .nc-compare-table {
    overflow-x: auto;
  }

  .nc-info-grid {
    grid-template-columns: 1fr;
  }

  .nc-highlight-box,
  .nc-checklist,
  .nc-toc {
    padding: 20px 24px;
  }

  .nc-cta-inline {
    padding: 36px 24px;
  }
}

/* ========== 기타 요소 정리 ========== */
body.single-post .wp-block-post-terms {
  color: #64748B;
}

body.single-post .wp-block-post-terms a {
  color: #A78BFA;
}

body.single-post .wp-block-post-date,
body.single-post .wp-element-caption {
  color: #64748B;
}

/* 코멘트/네비게이션 정리 */
body.single-post .wp-block-comments,
body.single-post .wp-block-post-navigation-link {
  color: #94A3B8;
}

body.single-post .wp-block-post-navigation-link a {
  color: #A78BFA;
}

/* Written by 영역 숨김 (불필요) */
body.single-post .wp-block-post-author-name,
body.single-post .wp-block-post-author-biography,
body.single-post .wp-block-post-date {
  color: #64748B;
}
