
/*
==================================================
 CourseSuggest Premium Post Styles
 Part 2A - Foundation
==================================================
*/

/* ---------- Variables ---------- */
:root{
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --secondary:#0f172a;
    --bg:#f8fafc;
    --card:#ffffff;
    --border:#e5e7eb;
    --text:#334155;
    --muted:#64748b;
    --radius:18px;
    --shadow:0 10px 30px rgba(15,23,42,.08);
    --transition:.3s ease;
}

body.tpl-post{
    background:var(--bg);
    color:var(--text);
    font-family:Inter,Segoe UI,Arial,sans-serif;
    line-height:1.8;
}

/* ---------- Progress ---------- */

#readingProgress{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:4px;
    z-index:9999;
    background:rgba(0,0,0,.05);
}

.reading-progress-bar{
    width:0;
    height:100%;
    background:linear-gradient(90deg,var(--primary),#60a5fa);
}

/* ---------- Hero ---------- */

.post-hero{
    background:#fff;
    padding:60px 0 50px;
    border-bottom:1px solid var(--border);
}

.post-breadcrumb{
    margin-bottom:25px;
    font-size:.92rem;
}

.post-breadcrumb a{
    color:var(--muted);
    text-decoration:none;
    transition:var(--transition);
}

.post-breadcrumb a:hover{
    color:var(--primary);
}

.post-breadcrumb span{
    margin:0 8px;
    color:#94a3b8;
}

.post-meta{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:16px;
    color:var(--muted);
    margin-bottom:18px;
    font-size:.95rem;
}

.meta-item i{
    color:var(--primary);
    margin-right:6px;
}

.meta-divider{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#cbd5e1;
}

.post-title{
    font-size:3rem;
    line-height:1.2;
    font-weight:800;
    color:var(--secondary);
    margin-bottom:18px;
}

.post-description{
    max-width:850px;
    font-size:1.2rem;
    color:var(--muted);
    margin-bottom:35px;
}

.featured-image{
    overflow:hidden;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.featured-image img{
    width:100%;
    display:block;
}

/* ---------- Main ---------- */

.article-section{
    padding:60px 0;
}

.article-card{
    background:#fff;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    overflow:hidden;
}

.article-content{
    padding:50px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4{
    color:var(--secondary);
    font-weight:700;
    margin:2.4rem 0 1rem;
    line-height:1.3;
}

.article-content h2{
    font-size:2rem;
    padding-bottom:12px;
    border-bottom:2px solid #eef2ff;
}

.article-content h3{
    font-size:1.55rem;
}

.article-content p{
    font-size:1.08rem;
    margin-bottom:1.4rem;
}

.article-content a{
    color:var(--primary);
    text-decoration:none;
}

.article-content a:hover{
    text-decoration:underline;
}

.article-content img{
    max-width:100%;
    height:auto;
    display:block;
    margin:35px auto;
    border-radius:14px;
    box-shadow:var(--shadow);
}

.article-content ul,
.article-content ol{
    margin:0 0 1.5rem 1.4rem;
}

.article-content li{
    margin-bottom:.6rem;
}

.article-footer{
    padding:0 50px 40px;
}

.article-stats{
    color:var(--muted);
    font-size:.95rem;
}

/* ---------- Floating Share ---------- */

.share-floating{
    position:sticky;
    top:120px;
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
}

.share-floating h6{
    font-size:.8rem;
    color:var(--muted);
}

.share-floating a{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    color:var(--secondary);
    box-shadow:var(--shadow);
    text-decoration:none;
    transition:var(--transition);
}

.share-floating a:hover{
    background:var(--primary);
    color:#fff;
    transform:translateY(-3px);
}

/* ---------- Utilities ---------- */

hr{
    border-color:var(--border);
}

.btn-primary{
    background:var(--primary);
    border-color:var(--primary);
    border-radius:12px;
    padding:.8rem 1.4rem;
}

.btn-primary:hover{
    background:var(--primary-dark);
    border-color:var(--primary-dark);
}

@media(max-width:991px){

.post-title{
    font-size:2.2rem;
}

.article-content{
    padding:35px;
}

.share-floating{
    display:none;
}

}

@media(max-width:767px){

.post-hero{
    padding:40px 0;
}

.post-title{
    font-size:1.8rem;
}

.post-description{
    font-size:1rem;
}

.article-content{
    padding:24px;
}

.article-content h2{
    font-size:1.55rem;
}

.article-content h3{
    font-size:1.3rem;
}

}
