/* =====================================================
   P60 퍼스널코드 — 블로그 공통 스타일
   골드·오렌지 톤
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #0f0d08;
    --surface:      #1c1810;
    --surface2:     #161208;
    --border:       rgba(212, 148, 30, 0.22);
    --text:         #f0ead8;
    --text-muted:   #a09070;
    --accent:       #d4941e;
    --accent-light: #f5c842;
    --accent-dim:   rgba(212, 148, 30, 0.12);
    --link:         #f0b429;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    min-height: 100vh;
}

/* ── 헤더 ── */
.site-header {
    background: linear-gradient(135deg, #1e1508 0%, #0f0d08 100%);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header a.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.site-header .logo  { font-size: 24px; }
.site-header .brand { font-size: 15px; font-weight: 800; color: var(--accent-light); }
.site-header .back-btn {
    margin-left: auto;
    background: rgba(212, 148, 30, 0.15);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent-light);
    padding: 7px 15px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.site-header .back-btn:hover { background: rgba(212, 148, 30, 0.3); }

/* ── 레이아웃 ── */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 100px;
}

/* ── 아티클 헤더 ── */
.article-category {
    display: inline-block;
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 15px;
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.article-title {
    font-size: clamp(22px, 4.5vw, 32px);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f5c842, #e07b20);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

/* ── 본문 섹션 ── */
.section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
}
.section h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f0c070;
    margin: 20px 0 10px;
}
.section p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 14px;
}
.section p:last-child { margin-bottom: 0; }
.section ul, .section ol {
    padding-left: 22px;
    margin-bottom: 14px;
}
.section li {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 7px;
    line-height: 1.8;
}

/* ── 하이라이트 박스 ── */
.highlight-box {
    background: rgba(212, 148, 30, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.8;
}
.highlight-box strong { color: var(--accent-light); }

/* ── 인포 박스 ── */
.info-box {
    background: rgba(240, 180, 41, 0.07);
    border: 1px solid rgba(240, 180, 41, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 15px;
    color: #f0d080;
    line-height: 1.8;
}
.info-box strong { color: #f5e0a0; }

/* ── 비교 테이블 ── */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 18px 0;
    border-radius: 12px;
    overflow: hidden;
}
.compare-table th {
    background: rgba(212, 148, 30, 0.2);
    color: var(--accent-light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
}
.compare-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.compare-table td:first-child {
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── 이미지 플레이스홀더 ── */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, #1e1508, #161208);
    border: 1px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 15px;
    margin: 20px 0;
}
.img-placeholder .icon { font-size: 32px; opacity: 0.5; }
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ── CTA 버튼 ── */
.cta-wrap {
    text-align: center;
    margin: 40px 0 0;
}
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4941e, #e07b20);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(212, 148, 30, 0.4);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 148, 30, 0.55);
    text-decoration: none;
    color: #fff;
}
.cta-sub {
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-muted);
}

/* ── 태그 ── */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.tag {
    background: var(--accent-dim);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 15px;
    color: var(--text-muted);
}

/* ── 다음 포스팅 예고 ── */
.next-post {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.next-post .label {
    font-size: 15px;
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.next-post .title {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}
.next-post .arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--accent-light);
    flex-shrink: 0;
}

/* ── 링크 ── */
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 반응형 ── */
@media (max-width: 600px) {
    .container { padding: 32px 16px 80px; }
    .section   { padding: 20px 18px; }
    .compare-table th,
    .compare-table td { padding: 9px 10px; font-size: 13px; }
    .cta-btn { font-size: 15px; padding: 14px 28px; }
    .next-post { flex-direction: column; align-items: flex-start; }
    .next-post .arrow { display: none; }
}
