/* =========================================================
   SINGLE — Single post & page styles, entry content, nav
   ========================================================= */

/* --- Reading Progress Bar --- */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 9999;
    transition: width .1s ease;
}

/* --- Single Post Header --- */
.single-post-header { margin-bottom: 24px; }
.single-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--navy-dark);
}
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--gray);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.single-meta span { display: flex; align-items: center; gap: 6px; }

/* --- Featured Image --- */
.featured-image {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.featured-image img { width: 100%; height: auto; }
.featured-caption {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
    padding: 10px 16px;
    font-style: italic;
}

/* --- Entry Content --- */
.entry-content {
    font-size: 17px;
    line-height: 1.85;
    color: #222;
}
.entry-content p { margin-bottom: 20px; }
.entry-content h2 { margin: 32px 0 16px; font-size: 1.7rem; color: var(--navy-dark); }
.entry-content h3 { margin: 26px 0 12px; font-size: 1.35rem; color: var(--navy-dark); }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--light-gray);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Modern List Styling (UL & OL) --- */
.entry-content ul, 
.entry-content ol {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}
.entry-content ul li, 
.entry-content ol li {
    position: relative;
    margin-bottom: 14px;
    line-height: 1.7;
    color: #334155;
}

/* Custom UL Bullets */
.entry-content ul li {
    padding-left: 32px;
}
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
    transition: transform 0.2s ease;
}
.entry-content ul li:hover::before {
    transform: scale(1.2);
    background-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

/* Custom OL Numbers */
.entry-content ol {
    counter-reset: tso-counter;
}
.entry-content ol li {
    counter-increment: tso-counter;
    padding-left: 42px;
}
.entry-content ol li::before {
    content: counter(tso-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #e0edff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}
.entry-content ol li:hover::before {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.2);
}

/* Nested Lists Adjustment */
.entry-content ul ul, 
.entry-content ol ol, 
.entry-content ul ol, 
.entry-content ol ul {
    margin: 12px 0 12px 10px;
}

/* --- Post Tags --- */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.post-tags a {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: 20px;
    transition: all .2s ease;
}
.post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* --- Post Navigation (Prev/Next) --- */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 30px 0;
}
.post-nav-item {
    display: block;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .25s ease;
}
.post-nav-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--primary);
}
.post-nav-next { text-align: right; }
.post-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.post-nav-item h4,
.post-nav-item .post-nav-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    color: var(--navy-dark);
    font-weight: 600;
    display: block;
}

/* --- Related Posts --- */
.related-posts { margin: 40px 0; }

/* --- Breadcrumbs --- */
.breadcrumbs {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span.sep { margin: 0 6px; }

/* --- Responsive --- */
@media (max-width: 860px) {
    .single-title { font-size: 1.7rem; }
    .entry-content { font-size: 16px; }
    .entry-content h2 { font-size: 1.4rem; }
    .entry-content h3 { font-size: 1.2rem; }
}
@media (max-width: 600px) {
    .single-title { font-size: 1.4rem; }
    .single-meta { gap: 12px; font-size: 13px; }
    .post-navigation { grid-template-columns: 1fr; }
    
    /* Compact Breadcrumbs for Mobile */
    .breadcrumbs {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 11.5px;
        margin-bottom: 16px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }
}