/* ARTICLE HERO */
.article-hero {
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.blob-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.15);
    top: -200px;
    right: -100px;
}
.blob-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: 0;
    left: -100px;
}
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--clr-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb-custom a {
    color: var(--clr-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb-custom a:hover {
    color: var(--clr-white-soft);
}
.breadcrumb-custom .sep {
    color: var(--clr-grid-line);
}
.breadcrumb-custom .current {
    color: var(--clr-white-soft);
}
.article-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--clr-primary-2);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.article-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--clr-on-surface);
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}
.article-hero-excerpt {
    font-size: 1rem;
    color: var(--clr-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 0;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--clr-muted);
}
.meta-item i {
    font-size: 0.85rem;
}
.author-block {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--clr-primary), #4f46e5);
}
.author-info .name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-white-soft);
}
.author-info .role {
    font-size: 0.72rem;
    color: var(--clr-muted);
}
/* HERO IMAGE */
.hero-image-wrap {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.12));
    border-radius: 20px 20px 0 0;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}
.hero-image-wrap .main-icon {
    font-size: 8rem;
    opacity: 0.2;
    color: var(--clr-primary-2);
}
.hero-image-wrap .stat-float {
    position: absolute;
    background: var(--clr-surface-elevated);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
}
.hero-image-wrap .stat-float.f1 {
    top: 30px;
    right: 40px;
}
.hero-image-wrap .stat-float.f2 {
    bottom: 30px;
    left: 40px;
}
.stat-float .sf-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--clr-on-surface);
}
.stat-float .sf-label {
    font-size: 0.72rem;
    color: var(--clr-muted);
}
/* ARTICLE LAYOUT */
.article-layout {
    padding: 40px 0 80px;
    position: relative;
    z-index: 1;
}
/* ARTICLE CONTENT */
.article-content {
    font-size: 0.95rem;
    color: var(--clr-white-soft);
    line-height: 1.95;
}
.article-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--clr-on-surface);
    margin: 2rem 0 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-border);
}
.article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-on-surface);
    margin: 1.5rem 0 0.8rem;
}
.article-content p {
    margin-bottom: 1.2rem;
}
.article-content strong {
    color: var(--clr-on-surface);
    font-weight: 700;
}
.article-content ul,
.article-content ol {
    padding-right: 20px;
    margin-bottom: 1.2rem;
}
.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.article-content blockquote {
    background: rgba(99, 102, 241, 0.07);
    border-right: 3px solid var(--clr-primary);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 1.5rem 0;
    color: var(--clr-white-soft);
    font-style: italic;
    font-size: 1rem;
}
.article-content blockquote cite {
    display: block;
    font-size: 0.8rem;
    color: var(--clr-muted);
    margin-top: 8px;
    font-style: normal;
}
.callout {
    border-radius: 14px;
    padding: 20px 24px;
    margin: 1.5rem 0;
}
.callout.info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.callout.warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.callout.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.callout-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.callout.info .callout-title {
    color: var(--clr-primary-2);
}
.callout.warning .callout-title {
    color: var(--clr-amber-text);
}
.callout.success .callout-title {
    color: var(--clr-green-text);
}
.callout p {
    font-size: 0.875rem;
    color: var(--clr-white-soft);
    margin: 0;
    line-height: 1.7;
}
.stat-card-inline {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}
.stat-card-inline .val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--clr-on-surface);
    line-height: 1;
}
.stat-card-inline .label {
    font-size: 0.78rem;
    color: var(--clr-muted);
    margin-top: 6px;
}
/* PROGRESS BARS */
.progress-item {
    margin-bottom: 14px;
}
.progress-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 6px;
}
.progress-label-row .name {
    color: var(--clr-white-soft);
}
.progress-label-row .val {
    font-weight: 700;
    color: var(--clr-on-surface);
}
.progress-track {
    height: 8px;
    background: var(--clr-grid-line);
    border-radius: 50px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 50px;
}
/* TAGS & SHARE */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--clr-border);
}
.tag-pill {
    background: var(--clr-white-hover);
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
    border-radius: 8px;
    font-size: 0.78rem;
    padding: 5px 12px;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-pill:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--clr-primary-2);
}
.share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1.5rem;
    padding: 16px 20px;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 14px;
}
.share-label {
    font-size: 0.82rem;
    color: var(--clr-muted);
    font-weight: 600;
}
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
    background: var(--clr-white-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.share-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--clr-primary-2);
    border-color: rgba(99, 102, 241, 0.3);
}
/* AUTHOR BOX */
.author-box {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 28px;
    margin-top: 2rem;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.author-box-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--clr-primary), #4f46e5);
}
.author-box-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--clr-on-surface);
    margin-bottom: 2px;
}
.author-box-role {
    font-size: 0.78rem;
    color: var(--clr-primary-2);
    margin-bottom: 8px;
}
.author-box-bio {
    font-size: 0.85rem;
    color: var(--clr-muted);
    line-height: 1.7;
    margin: 0;
}
/* RELATED ARTICLES */
.related-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}
.related-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}
.related-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-body {
    padding: 16px;
}
.related-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-on-surface);
    line-height: 1.5;
    margin-bottom: 8px;
}
.related-meta {
    font-size: 0.75rem;
    color: var(--clr-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
/* SIDEBAR */
.sidebar-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--clr-on-surface);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i {
    color: var(--clr-primary-2);
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 4px;
}
.toc-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 8px;
    transition: all 0.2s;
    border-right: 2px solid transparent;
}
.toc-list a:hover,
.toc-list a.active {
    color: var(--clr-primary-2);
    background: rgba(99, 102, 241, 0.08);
    border-right-color: var(--clr-primary);
}
.toc-list a .toc-num {
    font-size: 0.7rem;
    color: var(--clr-primary);
    font-weight: 700;
    min-width: 16px;
}
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--clr-border);
}
.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.trending-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.3);
    min-width: 28px;
    line-height: 1;
}
.trending-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--clr-white-soft);
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
}
.trending-title:hover {
    color: var(--clr-on-surface);
}
.trending-meta {
    font-size: 0.72rem;
    color: var(--clr-muted);
    margin-top: 3px;
}
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    z-index: 9999;
    transition: width 0.1s;
}
