/**
 * Infinity Classes - Ultra-Premium Blog Reader & Discussion Stylesheet
 * High-End Typography, Reading Progress Bar, Social Share & Comment Interactions
 */

/* ==========================================================================
   1. READING PROGRESS BAR
   ========================================================================== */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 99999;
    pointer-events: none;
}

.reading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #F97316 0%, #EA580C 50%, #EF4444 100%);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   2. HERO & EDITORIAL HEADER
   ========================================================================== */
.article-hero-section {
    position: relative;
    background: #0B0F17;
    color: #FFFFFF;
    padding: 3rem 0 3.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 450px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(11, 15, 23, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.article-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.cat-badge-matric   { background: rgba(59, 130, 246, 0.15); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.cat-badge-science  { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-badge-arts     { background: rgba(168, 85, 247, 0.15); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }
.cat-badge-pattern  { background: rgba(244, 63, 94, 0.15);  color: #FB7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.cat-badge-topper   { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.cat-badge-default  { background: rgba(249, 115, 22, 0.15); color: #FB923C; border: 1px solid rgba(249, 115, 22, 0.3); }

.article-main-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.85rem;
    line-height: 1.3;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .article-main-title {
        font-size: 2.35rem;
    }
}

.article-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: #94A3B8;
    font-weight: 500;
}

.article-meta-bar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .article-meta-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.article-quick-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94A3B8;
    font-weight: 600;
}

.metric-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   3. SOCIAL SHARING GROUP (TOP & IN-CONTENT)
   ========================================================================= */
.article-share-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.share-strip-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
}

.share-btn-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-social-share {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-social-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.share-wa {
    background: #25D366;
    color: #FFFFFF;
}
.share-wa:hover {
    background: #20bd5a;
    color: #FFFFFF;
}

.share-tg {
    background: #0088CC;
    color: #FFFFFF;
}
.share-tg:hover {
    background: #0077b3;
    color: #FFFFFF;
}

.share-fb {
    background: #1877F2;
    color: #FFFFFF;
}
.share-fb:hover {
    background: #1464cc;
    color: #FFFFFF;
}

.share-tw {
    background: #111827;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.share-tw:hover {
    background: #000000;
    color: #FFFFFF;
}

.share-copy {
    background: rgba(255, 255, 255, 0.12);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.share-copy:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}
.share-copy.copied {
    background: #10B981;
    color: #FFFFFF;
    border-color: #10B981;
}

/* ==========================================================================
   4. FEATURED BANNER & KEY TAKEAWAYS
   ========================================================================== */
.article-banner-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.banner-badge-overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
}

.takeaways-callout-card {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border: 1px solid #FDBA74;
    border-left: 5px solid #F97316;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.08);
}

.takeaways-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.takeaways-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.takeaways-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #7C2D12;
    font-weight: 600;
}

.takeaways-list li i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   5. EDITORIAL PROSE TYPOGRAPHY
   ========================================================================== */
.article-prose-container {
    background: #FFFFFF;
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
    font-family: 'Poppins', 'Mukta', sans-serif;
    color: #1E293B;
    line-height: 1.85;
    font-size: 1.05rem;
}

@media (min-width: 768px) {
    .article-prose-container {
        padding: 3rem 2.5rem;
        font-size: 1.1rem;
    }
}

.article-prose-container .lead-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 500;
    margin-bottom: 1.75rem;
}

.article-prose-container h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0F172A;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid #F97316;
    letter-spacing: -0.01em;
}

.article-prose-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-prose-container p {
    margin-bottom: 1.35rem;
}

.article-prose-container ul,
.article-prose-container ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-prose-container li {
    margin-bottom: 0.65rem;
    line-height: 1.75;
}

.article-prose-container strong {
    color: #0F172A;
    font-weight: 700;
}

.article-prose-container .article-callout-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin: 2rem 0;
    font-size: 1rem;
    color: #92400E;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.06);
}

/* ==========================================================================
   6. ARTICLE ACTION BOX: DYNAMIC LIKE & RE-SHARE
   ========================================================================== */
.article-action-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.action-box-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .action-box-inner {
        flex-direction: row;
    }
}

.action-like-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-like-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.4rem;
    background: #FFF1F2;
    color: #E11D48;
    border: 2px solid #FECDD3;
    border-radius: 9999px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.btn-like-pill:hover {
    background: #FFE4E6;
    border-color: #FDA4AF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.18);
}

.btn-like-pill.active {
    background: #E11D48;
    color: #FFFFFF;
    border-color: #BE123C;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.35);
}

.btn-like-pill.active .like-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.like-heart-icon {
    font-size: 1.15rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-like-pill:hover .like-heart-icon {
    transform: scale(1.2);
}

.btn-like-pill.bouncing .like-heart-icon {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.4) rotate(-5deg); }
    50% { transform: scale(0.9) rotate(5deg); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-count-badge {
    background: #FFFFFF;
    color: #E11D48;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    border: 1px solid #FECDD3;
}

.action-share-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .action-share-wrapper {
        align-items: flex-end;
    }
}

.share-mini-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-mini-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ==========================================================================
   7. AUTHOR PROFILE BIO CARD
   ========================================================================== */
.author-bio-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.author-bio-flex {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .author-bio-flex {
        flex-direction: row;
        align-items: center;
    }
}

.author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    object-cover: cover;
    border: 3px solid #FFEDD5;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
    flex-shrink: 0;
}

.author-bio-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0F172A;
}

.author-bio-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #475569;
    font-family: 'Mukta', 'Poppins', sans-serif;
}

.author-bio-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-author-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-author-wa:hover {
    background: #D1FAE5;
    border-color: #6EE7B7;
    transform: translateY(-1px);
}

.btn-author-courses {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FDBA74;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-author-courses:hover {
    background: #FFEDD5;
    transform: translateY(-1px);
}

/* ==========================================================================
   8. COMMENTS & STUDENT DISCUSSION SECTION
   ========================================================================== */
.comments-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .comments-section {
        padding: 2.5rem 2rem;
    }
}

.comments-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #F1F5F9;
}

@media (min-width: 640px) {
    .comments-section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.comments-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid #FFEDD5;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 9999px;
    align-self: flex-start;
}

.add-comment-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.form-input-field,
.form-textarea-field {
    width: 100%;
    padding: 0.65rem 0.95rem;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    color: #0F172A;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.form-input-field:focus,
.form-textarea-field:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.btn-submit-comment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: #F97316;
    color: #FFFFFF;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-submit-comment:hover {
    background: #EA580C;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.btn-submit-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Comments Feed Items */
.comments-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.empty-comments-state {
    text-align: center;
    padding: 3rem 1rem;
    background: #F8FAFC;
    border: 1.5px dashed #CBD5E1;
    border-radius: 1rem;
}

.comment-item-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: border-color 0.2s ease;
}

.comment-item-card:hover {
    border-color: #CBD5E1;
}

.comment-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

.comment-author-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0F172A;
}

.comment-badge-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    background: #EFF6FF;
    color: #2563EB;
    border: 1px solid #DBEAFE;
    border-radius: 9999px;
}

.comment-time-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #94A3B8;
    margin-top: 0.15rem;
}

.comment-body-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #334155;
    margin-top: 0.75rem;
    padding-left: 0.25rem;
    font-family: 'Mukta', 'Poppins', sans-serif;
}

/* ==========================================================================
   9. RELATED ARTICLES & BACK TO ARCHIVE
   ========================================================================== */
.related-article-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.related-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #CBD5E1;
}

.btn-back-to-archive {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #0F172A;
    color: #FFFFFF;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-back-to-archive:hover {
    background: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.3);
    color: #FFFFFF;
}
