/* WIA Novel Serial — 진실(眞實) 연재 스타일 */

/* ===== 공통 ===== */
.novel-home,
.novel-toc-page,
.novel-chapter-page,
.novel-episode-single {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Noto Serif KR', 'Batang', Georgia, serif;
    color: #1a1a1a;
    line-height: 1.9;
}

/* ===== 히어로 ===== */
.novel-hero {
    position: relative;
    text-align: center;
    padding: 80px 20px 60px;
    margin: -20px -20px 40px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.novel-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.novel-hero-content {
    position: relative;
    z-index: 1;
}

.novel-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #d4af37;
    margin: 0 0 8px;
    letter-spacing: 0.15em;
    text-shadow: 0 2px 20px rgba(212, 175, 55, 0.3);
}

.novel-title-hanja {
    font-size: 1.6rem;
    color: rgba(212, 175, 55, 0.6);
    margin: 0 0 20px;
    letter-spacing: 0.3em;
}

.novel-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin: 0 0 16px;
    letter-spacing: 0.1em;
}

.novel-tagline {
    font-size: 0.95rem;
    color: #888;
    line-height: 1.8;
    margin: 0;
}

/* ===== 정보 바 ===== */
.novel-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.novel-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f0e8;
    border: 1px solid #e0d5c0;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #5a4a3a;
    letter-spacing: 0.05em;
}

.novel-badge.genre {
    background: #1a1a2e;
    color: #d4af37;
    border-color: #d4af37;
}

/* ===== 시놉시스 ===== */
.novel-synopsis {
    margin-bottom: 50px;
    padding: 30px;
    background: #fdfcfa;
    border-left: 4px solid #d4af37;
    border-radius: 0 8px 8px 0;
}

.novel-synopsis h2 {
    font-size: 1.3rem;
    color: #d4af37;
    margin: 0 0 16px;
    letter-spacing: 0.1em;
}

.novel-synopsis p {
    font-size: 0.95rem;
    margin: 0 0 12px;
    text-align: justify;
}

.novel-synopsis p:last-child {
    margin-bottom: 0;
}

/* ===== 목차(TOC) ===== */
.novel-chapters h2,
.novel-toc-page h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4af37;
}

.novel-toc-chapter {
    margin-bottom: 20px;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.novel-toc-chapter:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.novel-toc-chapter.upcoming {
    opacity: 0.55;
}

.novel-toc-ch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #f8f5f0;
    border-bottom: 1px solid #e8e0d0;
}

.novel-toc-ch-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #1a1a2e;
    flex: 0 0 auto;
}

.novel-toc-period {
    font-size: 0.82rem;
    color: #888;
    flex: 1;
}

.novel-toc-count {
    font-size: 0.8rem;
    color: #fff;
    background: #d4af37;
    padding: 2px 10px;
    border-radius: 12px;
    flex: 0 0 auto;
}

.novel-toc-chapter.upcoming .novel-toc-count {
    background: #ccc;
}

.novel-toc-episodes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.novel-toc-episodes li {
    border-bottom: 1px solid #f0ece4;
}

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

.novel-toc-episodes li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.15s, padding-left 0.15s;
}

.novel-toc-episodes li a:hover {
    background: #fdfcfa;
    padding-left: 28px;
    color: #d4af37;
}

.novel-empty {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
    font-style: italic;
}

/* ===== 챕터 에피소드 그리드 ===== */
.novel-chapter-page h2 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.novel-chapter-desc {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.novel-episode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.novel-episode-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fdfcfa;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.novel-episode-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.novel-episode-thumb {
    flex: 0 0 100px;
    border-radius: 6px;
    overflow: hidden;
}

.novel-episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novel-episode-info {
    flex: 1;
}

.novel-episode-num {
    display: inline-block;
    font-size: 0.75rem;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 4px;
}

.novel-episode-info h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: #1a1a2e;
}

.novel-episode-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

/* ===== 싱글 에피소드 뷰어 ===== */
.novel-episode-single {
    padding-top: 40px;
    padding-bottom: 60px;
}

.novel-ep-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e0d0;
}

.novel-ep-series {
    font-size: 0.8rem;
    color: #d4af37;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.novel-ep-chapter {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.novel-ep-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.4;
}

/* 본문 */
.novel-ep-content {
    font-size: 1.05rem;
    line-height: 2;
    text-align: justify;
    word-break: keep-all;
}

.novel-ep-content p {
    margin: 0 0 1.2em;
    text-indent: 0;
}

.novel-ep-content hr {
    border: none;
    text-align: center;
    margin: 2em 0;
}

.novel-ep-content hr::after {
    content: '✦';
    color: #d4af37;
    font-size: 1.2rem;
}

/* 이전/다음 내비게이션 */
.novel-ep-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e8e0d0;
    gap: 12px;
}

.novel-ep-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.novel-ep-nav a:hover {
    background: #d4af37;
    color: #1a1a2e;
}

.novel-ep-nav .nav-prev::before {
    content: '←';
}

.novel-ep-nav .nav-next::after {
    content: '→';
}

.novel-ep-nav .nav-toc {
    background: transparent;
    color: #1a1a2e;
    border: 1px solid #d4af37;
}

.novel-ep-nav .nav-toc:hover {
    background: #d4af37;
}

/* ===== 반응형 ===== */
@media (max-width: 600px) {
    .novel-title {
        font-size: 2.2rem;
    }

    .novel-title-hanja {
        font-size: 1.2rem;
    }

    .novel-hero {
        padding: 50px 16px 40px;
    }

    .novel-synopsis {
        padding: 20px;
    }

    .novel-ep-title {
        font-size: 1.4rem;
    }

    .novel-ep-content {
        font-size: 1rem;
        line-height: 1.85;
    }

    .novel-ep-nav {
        flex-direction: column;
    }

    .novel-ep-nav a {
        width: 100%;
        justify-content: center;
    }

    .novel-episode-card {
        flex-direction: column;
    }

    .novel-episode-thumb {
        flex: 0 0 auto;
        height: 120px;
    }
}
