/* ══════════════════════════════════════════════
   TLL Novel Index Page — Master Post Styles
   يتحمل في الفرونت إند فقط على المقال المجمع
══════════════════════════════════════════════ */

/* ── Wrapper ────────────────────────────────── */
.tll-novel-index {
    direction: rtl;
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Hero strip ─────────────────────────────── */
.tll-ni-hero {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--card, #1c1c26);
    border: 1px solid var(--border, #2a2a38);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
}

.tll-ni-cover {
    width: 120px;
    min-width: 120px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    object-fit: cover;
    aspect-ratio: 2/3;
}

.tll-ni-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.tll-ni-title {
    font-size: 22px !important;
    font-weight: 700;
    color: var(--text, #e0e0f0) !important;
    margin: 0 !important;
    line-height: 1.4;
}

.tll-ni-author {
    font-size: 14px;
    color: var(--muted, #888);
    margin: 0;
}
.tll-ni-author strong {
    color: var(--purple, #7c5cbf);
}

.tll-ni-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(124,92,191,.15);
    border: 1px solid rgba(124,92,191,.3);
    color: #b39ddb;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-top: 4px;
}
.tll-ni-count::before { content: '📚'; }

/* ── Chapter List ───────────────────────────── */
.tll-ni-list {
    background: var(--card, #1c1c26);
    border: 1px solid var(--border, #2a2a38);
    border-radius: 14px;
    overflow: hidden;
}

.tll-ni-list-title {
    font-size: 15px !important;
    font-weight: 700;
    color: var(--text, #e0e0f0) !important;
    margin: 0 !important;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--border, #2a2a38);
    background: rgba(124,92,191,.06);
}

.tll-ni-chapters {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Single chapter row ─────────────────────── */
.tll-ni-chapter {
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background .15s;
}
.tll-ni-chapter:last-child { border-bottom: none; }
.tll-ni-chapter:hover {
    background: rgba(124,92,191,.08);
}

.tll-ni-ch-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    text-decoration: none !important;
    color: inherit !important;
}
.tll-ni-ch-link:hover { text-decoration: none !important; }

/* Chapter number bubble */
.tll-ni-ch-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(124,92,191,.18);
    border: 1px solid rgba(124,92,191,.3);
    color: #b39ddb;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Chapter label (title + subtitle) */
.tll-ni-ch-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tll-ni-ch-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #e0e0f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tll-ni-ch-subtitle {
    font-size: 12px;
    color: var(--muted, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow */
.tll-ni-ch-arrow {
    color: var(--purple, #7c5cbf);
    font-size: 16px;
    flex-shrink: 0;
    transition: transform .15s;
}
.tll-ni-chapter:hover .tll-ni-ch-arrow {
    transform: translateX(-4px);
}

/* ── Chapter footer link (end of each chapter post) ── */
.tll-chapter-footer {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(124,92,191,.1);
    border: 1px solid rgba(124,92,191,.25);
    border-right: 3px solid var(--purple, #7c5cbf);
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
}
.tll-chapter-footer a {
    color: var(--purple, #7c5cbf);
    text-decoration: none;
}
.tll-chapter-footer a:hover {
    text-decoration: underline;
    color: #9b7de0;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 600px) {
    .tll-ni-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
    }
    .tll-ni-cover { width: 100px; }
    .tll-ni-meta { align-items: center; }
    .tll-ni-ch-subtitle { display: none; }
    .tll-ni-ch-link { padding: 12px 16px; gap: 10px; }
    .tll-ni-list-title { padding: 14px 16px; }
}
