/* ═══════════════════════════════════════════════════════════════
   그누보드5 블로그 플랫폼 — Unified Design System
   Theme: Warm Editorial · Cream + Slate + Amber accent
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --cream:      #faf8f4;
    --cream2:     #f3efe8;
    --ink:        #1c1917;
    --ink-soft:   #44403c;
    --ink-muted:  #78716c;
    --ink-faint:  #a8a29e;
    --accent:     #d97706;          /* amber-600 */
    --accent-lt:  #fef3c7;          /* amber-100 */
    --accent-dk:  #b45309;
    --blue:       #3b82f6;
    --blue-lt:    #eff6ff;
    --danger:     #dc2626;
    --danger-lt:  #fef2f2;
    --green:      #16a34a;
    --green-lt:   #f0fdf4;
    --surface:    #ffffff;
    --border:     #e7e5e4;
    --border-lt:  #f5f4f3;
    --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
    --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
    --shadow:     0 4px 20px rgba(0,0,0,.09);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
    --radius-xl:  20px;
    --radius-lg:  14px;
    --radius:     10px;
    --radius-sm:  6px;
    --ease:       cubic-bezier(.4,0,.2,1);
    --t:          .18s;
}

/* ── Reset ──────────────────────────────────────────────────── */
#blog-wrap *, #blog-wrap *::before, #blog-wrap *::after { box-sizing: border-box; }
#blog-wrap {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--ink);
    background: var(--cream);
    min-height: 100vh;
}
#blog-wrap a { color: var(--accent); text-decoration: none; }
#blog-wrap a:hover { opacity: .8; }
#blog-wrap button { font-family: inherit; cursor: pointer; }
#blog-wrap img { max-width: 100%; height: auto; }

/* ── Container ──────────────────────────────────────────────── */
.bl-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ════════════════════════════════════════════════════════════
   GLOBAL NAV BAR
════════════════════════════════════════════════════════════ */
.bl-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: static;
}
.bl-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.bl-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    text-decoration: none;
    flex-shrink: 0;
}
.bl-brand:hover { color: var(--ink); opacity: 1; }
.bl-brand-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}
.bl-nav-search {
    flex: 1;
    max-width: 320px;
    position: relative;
}
.bl-nav-search form { display: flex; }
.bl-nav-search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bl-nav-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217,119,6,.1);
    background: var(--surface);
}
.bl-nav-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--ink-faint); pointer-events: none;
}
.bl-nav-spacer { flex: 1; }
.bl-nav-actions { display: flex; align-items: center; gap: 10px; }

/* ════════════════════════════════════════════════════════════
   BUTTONS  (global)
════════════════════════════════════════════════════════════ */
.bl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--t) var(--ease);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}
.bl-btn svg { flex-shrink: 0; }
.bl-btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.bl-btn-primary:hover {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,119,6,.3);
}
.bl-btn-secondary {
    background: var(--surface);
    color: var(--ink-soft);
    border-color: var(--border);
}
.bl-btn-secondary:hover {
    background: var(--cream2);
    color: var(--ink);
    border-color: var(--ink-faint);
    transform: translateY(-1px);
}
.bl-btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--border);
}
.bl-btn-ghost:hover {
    background: var(--cream2);
    color: var(--ink);
}
.bl-btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: #fecaca;
}
.bl-btn-danger:hover {
    background: var(--danger-lt);
    border-color: var(--danger);
}
.bl-btn-sm { padding: 6px 13px; font-size: 12.5px; }
.bl-btn-xs { padding: 4px 10px; font-size: 11.5px; }

/* ════════════════════════════════════════════════════════════
   BADGES
════════════════════════════════════════════════════════════ */
.bl-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .01em;
}
.bl-badge-cat {
    background: var(--accent-lt);
    color: var(--accent-dk);
}
.bl-badge-cat::before { content: '#'; opacity: .6; margin-right: 1px; }
.bl-badge-private {
    background: #fef9c3;
    color: #854d0e;
}
.bl-badge-private::before { content: '🔒'; margin-right: 3px; font-size: 10px; }

/* ════════════════════════════════════════════════════════════
   LIST PAGE
════════════════════════════════════════════════════════════ */
.bl-hero {
    padding: 56px 0 44px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}
.bl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(217,119,6,.07) 0%, transparent 70%);
    pointer-events: none;
}
.bl-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.bl-hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    margin: 0 0 16px;
    line-height: 1.25;
}
.bl-hero-sub {
    font-size: 15px;
    color: var(--ink-muted);
    margin-bottom: 28px;
}

/* Sidebar layout */
.bl-layout {
    display: grid;
    grid-template-columns: 256px 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 80px;
}
.bl-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.bl-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}
.bl-widget-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-lt);
}

/* Search widget */
.bl-widget-search {
    display: flex;
    gap: 8px;
}
.bl-widget-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--ink);
    background: var(--cream);
    outline: none;
    transition: border-color var(--t);
}
.bl-widget-search input:focus {
    border-color: var(--accent);
    background: var(--surface);
}

/* Category list */
.bl-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bl-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--ink-soft);
    transition: background var(--t);
    text-decoration: none;
}
.bl-cat-list a:hover { background: var(--cream2); color: var(--ink); }
.bl-cat-list a.is-active {
    background: var(--accent-lt);
    color: var(--accent-dk);
    font-weight: 600;
}
.bl-cat-list .bl-cat-cnt {
    font-size: 11.5px;
    color: var(--ink-faint);
    background: var(--cream2);
    border-radius: 20px;
    padding: 1px 7px;
}
.bl-cat-list a.is-active .bl-cat-cnt {
    background: rgba(217,119,6,.15);
    color: var(--accent-dk);
}

/* Author list */
.bl-author-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bl-author-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background var(--t);
}
.bl-author-list a:hover { background: var(--cream2); color: var(--ink); }
.bl-author-av {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bl-author-name { flex: 1; }
.bl-author-cnt { font-size: 11.5px; color: var(--ink-faint); }

/* Post grid */
.bl-post-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Post card */
.bl-post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t);
    position: relative;
    margin-bottom: 16px;
    animation: bl-fade-up .35s var(--ease) both;
}
@keyframes bl-fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bl-post-card:hover {
    box-shadow: var(--shadow);
    border-color: #d6d3d1;
    transform: translateY(-2px);
}
.bl-post-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.bl-post-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
    color: var(--ink);
    word-break: keep-all;
}
.bl-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t);
}
.bl-post-title a:hover { color: var(--accent); }
.bl-post-excerpt {
    font-size: 14.5px;
    color: var(--ink-muted);
    line-height: 1.75;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bl-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--ink-faint);
    flex-wrap: wrap;
}
.bl-post-meta-author {
    display: flex; align-items: center; gap: 6px;
    color: var(--ink-soft); font-weight: 500;
    text-decoration: none; transition: color var(--t);
}
.bl-post-meta-author:hover { color: var(--accent); }
.bl-post-meta-av {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: #fff; font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bl-post-meta-sep { color: var(--border); }
.bl-post-meta-item {
    display: flex; align-items: center; gap: 4px;
}
.bl-post-meta-item svg { opacity: .5; }

/* Empty state */
.bl-empty {
    text-align: center;
    padding: 72px 20px;
    color: var(--ink-muted);
}
.bl-empty-icon { font-size: 48px; margin-bottom: 16px; }
.bl-empty h3 { font-size: 18px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.bl-empty p  { font-size: 14px; margin-bottom: 24px; }

/* Pagination */
.bl-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0 8px;
}
.bl-pagination a,
.bl-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: all var(--t);
}
.bl-pagination a:hover {
    background: var(--cream2);
    border-color: var(--ink-faint);
    color: var(--ink);
}
.bl-pagination span.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}
.bl-pagination .is-prev-next { font-size: 12px; padding: 0 12px; }

/* ════════════════════════════════════════════════════════════
   WRITE / EDIT PAGE
════════════════════════════════════════════════════════════ */
.bl-write-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 44px 0 80px;
}
.bl-write-header {
    margin-bottom: 32px;
}
.bl-write-header h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}
.bl-write-header p {
    font-size: 14px;
    color: var(--ink-muted);
}
.bl-write-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 44px;
    box-shadow: var(--shadow-sm);
}
.bl-form-group {
    margin-bottom: 24px;
}
.bl-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
    letter-spacing: .01em;
}
.bl-form-label .req {
    color: var(--accent);
    margin-left: 3px;
}
.bl-form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
    background: var(--cream);
    outline: none;
    transition: border-color var(--t), box-shadow var(--t), background var(--t);
    -webkit-appearance: none;
}
.bl-form-control:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(217,119,6,.1);
}
.bl-form-control::placeholder { color: var(--ink-faint); }
.bl-form-hint {
    font-size: 12px;
    color: var(--ink-faint);
    margin-top: 6px;
}
.bl-form-hint a { color: var(--accent); }

/* Title input — big */
.bl-title-input {
    font-size: 20px;
    font-family: 'Noto Serif KR', serif;
    font-weight: 600;
    padding: 14px 16px;
}

/* Publish toggle */
.bl-publish-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--t), background var(--t);
}
.bl-publish-toggle:has(input:checked) {
    border-color: var(--green);
    background: var(--green-lt);
}
.bl-publish-toggle input[type="checkbox"] { display: none; }
.bl-toggle-track {
    width: 40px; height: 22px; border-radius: 11px;
    background: var(--ink-faint);
    position: relative; flex-shrink: 0;
    transition: background var(--t);
}
.bl-publish-toggle:has(input:checked) .bl-toggle-track { background: var(--green); }
.bl-toggle-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff;
    transition: transform var(--t) var(--ease);
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.bl-publish-toggle:has(input:checked) .bl-toggle-thumb { transform: translateX(18px); }
.bl-toggle-label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.bl-toggle-label strong { color: var(--ink); }

/* Form divider */
.bl-form-divider {
    height: 1px;
    background: var(--border-lt);
    margin: 28px 0;
}
.bl-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border-lt);
}
.bl-form-actions .spacer { flex: 1; }

/* ════════════════════════════════════════════════════════════
   CATEGORIES PAGE
════════════════════════════════════════════════════════════ */
.bl-cats-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 44px 0 80px;
}
.bl-cats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.bl-cats-header h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.bl-cats-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}
.bl-cats-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}
.bl-cats-card-head {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bl-cats-table {
    width: 100%;
    border-collapse: collapse;
}
.bl-cats-table th {
    padding: 11px 20px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-faint);
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}
.bl-cats-table td {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border-lt);
    font-size: 14px;
    color: var(--ink-soft);
    vertical-align: middle;
}
.bl-cats-table tr:last-child td { border-bottom: none; }
.bl-cats-table tr:hover td { background: var(--cream); }
.bl-cats-table td strong { color: var(--ink); font-weight: 600; }
.bl-cats-table code {
    background: var(--cream2);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--ink-soft);
    font-family: 'Courier New', monospace;
}
.bl-cats-actions { display: flex; gap: 6px; align-items: center; }
.bl-no-data {
    text-align: center;
    padding: 48px 20px;
    color: var(--ink-muted);
    font-size: 14px;
}

/* Category form */
.bl-cat-form .bl-form-group { margin-bottom: 20px; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .bl-layout { grid-template-columns: 220px 1fr; gap: 28px; }
}
@media (max-width: 860px) {
    .bl-layout {
        grid-template-columns: 1fr;
    }
    .bl-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .bl-widget { flex: 1; min-width: 220px; }
    .bl-cats-layout { grid-template-columns: 1fr; }
    .bl-write-card { padding: 28px 24px; }
}
@media (max-width: 600px) {
    .bl-container { padding: 0 16px; }
    .bl-navbar-inner { padding: 0 16px; }
    .bl-hero { padding: 36px 0 28px; }
    .bl-hero-title { font-size: 26px; }
    .bl-post-card { padding: 20px; }
    .bl-post-title { font-size: 18px; }
    .bl-nav-search { display: none; }
    .bl-cats-table th, .bl-cats-table td { padding: 10px 14px; }
    .bl-write-wrap, .bl-cats-wrap { padding-top: 28px; }
}

/* ═══════════════════════════════════════════════════
   Post View (blog.view.php) 전용 스타일
   ═══════════════════════════════════════════════════ */
/* ─── Google Fonts ─────────────────────────────────────────── */
600;700&family=Noto+Sans+KR:wght@300;400;500;600&display=swap');

/* ─── Layout ────────────────────────────────────────────────── */
.pv-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ─── Article Card ──────────────────────────────────────────── */
.pv-article {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
    animation: pv-slide-up .4s ease both;
}
@keyframes pv-slide-up {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ─── Header ────────────────────────────────────────────────── */
.pv-header {
    padding: 44px 52px 32px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.pv-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dk));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pv-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.pv-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    background: var(--accent-lt);
    color: var(--accent);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: .02em;
    transition: background var(--transition);
}
.pv-category:hover { background: var(--accent-lt); text-decoration: none; }
.pv-category::before { content: '#'; opacity:.6; }

.pv-badge-private {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    background: #fff8e1;
    color: #b07a00;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}
.pv-badge-private::before { content: '🔒'; font-size: 10px; }

.pv-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 22px;
    letter-spacing: -.01em;
    word-break: keep-all;
}

.pv-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13.5px;
    color: var(--ink-muted);
    flex-wrap: wrap;
}
.pv-meta-author {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-soft);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}
.pv-meta-author:hover { color: var(--accent); text-decoration: none; }
.pv-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dk));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.pv-meta-sep { color: var(--border); }
.pv-meta-date, .pv-meta-views {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pv-meta-icon {
    width: 14px;
    height: 14px;
    opacity: .55;
}

/* ─── Content ───────────────────────────────────────────────── */
.pv-content {
    padding: 44px 52px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--ink-soft);
    font-family: 'Noto Serif KR', serif;
    font-weight: 400;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.pv-content p         { margin: 0 0 1.4em; }
.pv-content p:last-child { margin-bottom: 0; }
.pv-content h1, .pv-content h2 {
    font-family: 'Noto Serif KR', serif;
    color: var(--ink);
    margin: 2em 0 .7em;
    font-weight: 700;
}
.pv-content h1 { font-size: 1.7em; border-bottom: 2px solid var(--border); padding-bottom: .4em; }
.pv-content h2 { font-size: 1.35em; border-bottom: 1px solid var(--border); padding-bottom: .3em; }
.pv-content h3 { font-size: 1.15em; font-family: 'Noto Sans KR', sans-serif; font-weight: 600; color: var(--ink); margin: 1.6em 0 .5em; }
.pv-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    margin: 28px auto;
    box-shadow: var(--shadow);
}
.pv-content a          { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pv-content a:hover    { opacity: .8; }
.pv-content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    background: var(--accent-lt);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-soft);
    font-style: italic;
}
.pv-content code {
    background: #f0f0f8;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #c0392b;
}
.pv-content pre {
    background: #1e1e2e;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}
.pv-content pre code { background: none; color: #cdd6f4; padding: 0; font-size: 14px; }
.pv-content ul, .pv-content ol { padding-left: 1.6em; margin: 0 0 1.4em; }
.pv-content li         { margin-bottom: .5em; }
.pv-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.pv-content table th { background: var(--bg); font-family: 'Noto Sans KR', sans-serif; font-weight: 600; font-size: 13px; padding: 10px 14px; border: 1px solid var(--border); color: var(--ink); }
.pv-content table td { padding: 10px 14px; border: 1px solid var(--border); }
.pv-content table tr:nth-child(even) td { background: #fafafe; }

/* ─── Reactions ─────────────────────────────────────────────── */
.pv-reactions {
    padding: 28px 52px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.pv-reactions-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.pv-reaction-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pv-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-soft);
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.pv-reaction-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity var(--transition);
}
.pv-reaction-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217,119,6,.15);
}
.pv-reaction-btn.active {
    background: var(--accent-lt);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.pv-reaction-emoji { font-size: 19px; line-height: 1; }
.pv-reaction-label { font-size: 12.5px; font-family: 'Noto Sans KR', sans-serif; }
.pv-reaction-count {
    background: var(--border);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.6;
    min-width: 22px;
    text-align: center;
}
.pv-reaction-btn.active .pv-reaction-count { background: rgba(217,119,6,.25); }

.pv-reaction-login {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-muted);
}
.pv-reaction-login a { color: var(--accent); text-decoration: none; font-weight: 500; }
.pv-reaction-login a:hover { text-decoration: underline; }

/* ─── Footer ────────────────────────────────────────────────── */
.pv-footer {
    padding: 20px 52px 36px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.pv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.pv-btn-edit {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.pv-btn-edit:hover {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,119,6,.3);
}
.pv-btn-delete {
    background: transparent;
    color: var(--danger);
    border-color: #ffd0d4;
}
.pv-btn-delete:hover {
    background: #fef2f3;
    border-color: var(--danger);
    transform: translateY(-1px);
}
.pv-btn-list {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--border);
    margin-left: auto;
}
.pv-btn-list:hover {
    background: var(--bg);
    color: var(--ink);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ─── Comments ──────────────────────────────────────────────── */
.pv-comments {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: pv-slide-up .4s .1s ease both;
}
.pv-comments-header {
    padding: 28px 52px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pv-comments-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
}
.pv-comment-badge {
    background: var(--accent);
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

.pv-comment-list { padding: 0 52px; }
.pv-no-comments {
    text-align: center;
    padding: 48px 0;
    color: var(--ink-muted);
    font-size: 14.5px;
}
.pv-no-comments::before { content: '💬'; display: block; font-size: 32px; margin-bottom: 10px; }

/* ─── 댓글 아이템 공통 ─────────────────────────────────────── */
.pv-comment-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    animation: pv-slide-up .3s ease both;
}
.pv-comment-item:last-child { border-bottom: none; }

/* ─── 답글 들여쓰기 ────────────────────────────────────────── */
.pv-comment-reply {
    margin-top: 0;
    padding: 16px 0 16px 20px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid var(--accent-lt);
    margin-left: 42px;
    background: #fafafe;
    animation: pv-slide-up .25s ease both;
}
.pv-comment-reply:last-child { border-bottom: none; }
.pv-reply-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: .03em;
}
.pv-reply-arrow svg { opacity: .7; }

.pv-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.pv-comment-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-dk), var(--accent));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.pv-comment-reply .pv-comment-avatar {
    width: 26px; height: 26px; font-size: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dk));
}
.pv-comment-author { font-weight: 600; font-size: 14px; color: var(--ink); }
.pv-comment-date   { font-size: 12px; color: var(--ink-muted); }
.pv-comment-edited { font-size: 11px; color: var(--ink-muted); font-style: italic; }

/* ─── 댓글 액션 버튼 묶음 ──────────────────────────────────── */
.pv-comment-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.pv-cmt-btn {
    background: none;
    border: none;
    color: var(--ink-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}
.pv-cmt-btn:hover { color: var(--accent); background: var(--accent-lt); }
.pv-cmt-btn.pv-cmt-del:hover { color: var(--danger); background: #fef2f3; }
.pv-cmt-btn svg { opacity: .7; flex-shrink: 0; }

.pv-comment-body {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    padding-left: 42px;
    word-break: keep-all;
    overflow-wrap: break-word;
}
.pv-comment-reply .pv-comment-body { padding-left: 34px; }

/* ─── 인라인 수정 폼 ───────────────────────────────────────── */
.pv-edit-form {
    margin-top: 10px;
    padding-left: 42px;
    display: none;
}
.pv-comment-reply .pv-edit-form { padding-left: 34px; }
.pv-edit-form.is-open { display: block; }
.pv-edit-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--ink);
    background: var(--surface);
    resize: vertical;
    min-height: 80px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(217,119,6,.08);
    margin-bottom: 8px;
    display: block;
    transition: border-color var(--transition);
}
.pv-edit-actions { display: flex; gap: 6px; }

/* ─── 인라인 답글 폼 ───────────────────────────────────────── */
.pv-reply-form-wrap {
    margin-top: 0;
    margin-left: 42px;
    display: none;
    border-left: 3px solid var(--accent);
    padding: 14px 16px;
    background: var(--accent-lt);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 4px;
}
.pv-reply-form-wrap.is-open { display: block; }
.pv-reply-form-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pv-reply-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid rgba(217,119,6,.3);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--ink);
    background: var(--surface);
    resize: vertical;
    min-height: 72px;
    outline: none;
    margin-bottom: 8px;
    display: block;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.pv-reply-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.pv-reply-actions { display: flex; gap: 6px; }

/* ─── 공통 소형 버튼 ───────────────────────────────────────── */
.pv-btn-xs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.pv-btn-xs-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.pv-btn-xs-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(217,119,6,.3);
}
.pv-btn-xs-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--border);
}
.pv-btn-xs-ghost:hover { background: var(--bg); color: var(--ink); }

/* ─── 댓글 전체 폼 ─────────────────────────────────────────── */
.pv-comment-form {
    padding: 28px 52px 36px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}
.pv-comment-form-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 14px;
}
.pv-comment-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 14.5px;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--ink);
    background: var(--surface);
    resize: vertical;
    min-height: 110px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    margin-bottom: 12px;
    display: block;
}
.pv-comment-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.pv-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}
.pv-comment-submit:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(217,119,6,.35);
}

.pv-login-notice {
    text-align: center;
    padding: 36px 0;
    color: var(--ink-muted);
    font-size: 14px;
}
.pv-login-notice a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pv-login-notice a:hover { text-decoration: underline; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 720px) {
    .pv-inner { padding: 24px 0 60px; }
    .pv-header, .pv-content, .pv-reactions, .pv-footer,
    .pv-comments-header, .pv-comment-list, .pv-comment-form { padding-left: 20px; padding-right: 20px; }
    .pv-title  { font-size: 24px; }
    .pv-content { font-size: 16px; }
    .pv-comment-body { padding-left: 0; }
    .pv-comment-reply .pv-comment-body { padding-left: 0; }
    .pv-comment-reply { margin-left: 16px; }
    .pv-reply-form-wrap { margin-left: 0; }
    .pv-edit-form { padding-left: 0; }
    .pv-btn-list { margin-left: 0; }
}
