/* --- TABLE OF CONTENTS ---
 * File: article.css
 *
 * 1. Reading Progress Indicator
 * 2. Article Layout (wider, less padding)
 * 3. Fixed Floating Share Bar (true position:fixed)
 * 4. Article Hero
 * 5. Content Body Typography
 * 6. Premium Highlight Box
 * 7. Interactive FAQ Accordion
 * 8. Reaction & Metric Components
 * 9. Mobile Overrides
 * ========================================= */

/* =============================================
   1. Reading Progress Indicator
============================================= */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--color-brand-red);
    width: 0%;
    box-shadow: 0 0 10px rgba(230, 43, 43, 0.5);
    transition: width 0.1s linear;
}

/* =============================================
   2. Article Layout — Wider, Real Estate Used
============================================= */
.page-article-main {
    padding-top: calc(90px + 2rem);
    background-color: var(--color-bg-white);
    position: relative;
    /* No max-width — full width page, the wrapper limits reading width */
}

/* True fixed sidebar — independent of article layout */
.article-sidebar {
    position: fixed;
    left: clamp(10px, 2vw, 40px);
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 500;
    mix-blend-mode: normal;
}

.article-content-wrapper {
    max-width: min(92vw, 1200px);
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 5rem 2rem;
}

/* =============================================
   3. Share Icons
============================================= */
.share-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-text-muted);
    background: #fff;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s var(--physics-spring), color 0.3s, background 0.3s, box-shadow 0.3s;
}

.share-icon:hover {
    transform: translateY(-4px) scale(1.12);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.share-fb:hover {
    background: #1877F2;
}

.share-wa:hover {
    background: #25D366;
}

.share-li:hover {
    background: #0077B5;
}

.share-tk:hover {
    background: #111111;
}

.share-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 0.5rem;
    opacity: 0.55;
}

/* =============================================
   4. Article Hero
============================================= */
.article-hero {
    margin-bottom: 2.5rem;
}

.article-hero-img-wrapper {
    width: 100%;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.15;
    color: var(--color-brand-black);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    font-weight: 900;
}

.article-author-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brand-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.article-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
}

.article-meta-item i {
    margin-right: 0.4rem;
    color: var(--color-brand-blue);
}

/* =============================================
   5. Content Body Typography
============================================= */
.article-body {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.85;
    color: #333;
}

.article-body p {
    margin-bottom: 1.8rem;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--color-brand-black);
    letter-spacing: -0.5px;
}

.article-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.article-body ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: none;
}

/* Removed hardcoded arrow rules in favor of global.css checks */

/* Hook → big intro paragraph */
.article-intro {
    font-size: 1.35rem;
    line-height: 1.65;
    color: var(--color-brand-black);
    font-weight: 300;
    margin-bottom: 2.5rem;
    letter-spacing: -0.3px;
}

/* Moved to global.css */

.highlight-content {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.5;
    font-family: var(--font-heading);
    text-align: center;
}

/* =============================================
   7. FAQ Accordion
============================================= */
.article-faq-section {
    margin-top: 4rem;
    padding-top: 3.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.faq-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--color-brand-black);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: var(--color-bg-light);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.faq-item.active {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(35, 164, 214, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.3rem 1.8rem;
    background: transparent;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-brand-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(35, 164, 214, 0.1);
    color: var(--color-brand-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--physics-spring), background 0.3s, color 0.3s;
}

.faq-item:hover .faq-icon {
    background: var(--color-brand-blue);
    color: #fff;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--color-brand-red);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 1.8rem 1.5rem 1.8rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* =============================================
   8. Reactions & CTA
============================================= */
.article-footer-interactions {
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    background: var(--color-bg-light);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-impact-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.article-reactions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reaction-text {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--color-brand-black);
    margin-right: 0.5rem;
}

.btn-react {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 90px;
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    border: none;
    background: #fff;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--physics-spring);
    position: relative;
    overflow: hidden;
}

.btn-react::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-react:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--color-brand-black);
}

.btn-react i {
    font-size: 1.1rem;
    transition: transform 0.4s var(--physics-spring);
}

.btn-react:hover i {
    transform: scale(1.2) rotate(-10deg);
}

/* Liked State (Brand Blue Gradient) */
.btn-react.liked {
    background: linear-gradient(135deg, var(--color-brand-blue), #1e92c0);
    color: #fff;
    box-shadow: 0 8px 25px rgba(35, 164, 214, 0.35);
}

.btn-react.liked:hover {
    box-shadow: 0 12px 35px rgba(35, 164, 214, 0.45);
}

.btn-react.liked::before {
    opacity: 1;
}

.btn-react.liked:hover i {
    transform: scale(1.2) rotate(0deg);
}

/* Disliked State (Dark Grey) */
.btn-react.disliked {
    background: #444;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-react.disliked:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Tags on article page — click goes to filtered blogs */
.article-tags {
    display: flex;
    gap: 0.5rem;
}

.article-tag {
    padding: 0.4rem 1rem;
    background: var(--color-bg-light);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s, transform 0.3s var(--physics-spring);
}

.article-tag:hover {
    background: var(--color-brand-blue);
    color: #fff;
    transform: translateY(-2px);
}

/* Inline Mobile Share */
.mobile-inline-share {
    display: none;
    margin-top: 2rem;
    justify-content: center;
    gap: 1rem;
}

.blogs-cta {
    background: var(--color-brand-black);
    border-radius: 20px;
    margin-top: 3rem;
    padding: 4rem 3rem;
}

/* =============================================
   9. Mobile Overrides
============================================= */
@media (max-width: 1100px) {
    .article-sidebar {
        display: none;
    }

    .mobile-inline-share {
        display: flex;
    }

    .article-footer-interactions {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-hero-img-wrapper {
        height: 260px;
        border-radius: 14px;
    }

    .premium-highlight-box {
        padding: 2rem;
        margin: 2.5rem 0;
    }

    .highlight-content {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 1.1rem;
        font-size: 1rem;
    }

    .faq-answer-inner {
        padding: 0 1.1rem 1.1rem 1.1rem;
    }

    .article-author-row {
        gap: 0.8rem;
    }

    .blogs-cta {
        padding: 2.5rem 1.5rem;
    }
}

/* === PREMIUM COMMENTS SECTION === */
.premium-comments-section {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.premium-comment-box {
    background: var(--color-bg-light);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.premium-comment-box:focus-within {
    background: #fff;
    box-shadow: 0 5px 20px rgba(35, 164, 214, 0.1);
    border-color: var(--color-brand-blue);
}

.premium-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brand-black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.premium-comment-textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 12px;
    border: none;
    background: #fff;
    padding: 1.2rem;
    font-size: 0.95rem;
    color: var(--color-text-main);
    resize: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.premium-comment-textarea:focus {
    outline: none;
}

.premium-post-btn {
    background: var(--color-brand-blue);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 0.8rem 2rem;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(35, 164, 214, 0.3);
    transition: all 0.3s var(--physics-spring);
}

.premium-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 164, 214, 0.4);
}

.premium-comment-item {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.premium-comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.premium-comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.premium-comment-author {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-brand-black);
}

.premium-comment-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.premium-comment-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
}

.premium-comment-actions {
    display: flex;
    gap: 1rem;
}

.premium-action-pill {
    background: var(--color-bg-light);
    border: none;
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.premium-action-pill:hover {
    background: #e8eaed;
    color: var(--color-brand-black);
}

.premium-comment-reply {
    background: rgba(35, 164, 214, 0.04);
    border-left: 3px solid var(--color-brand-blue);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.premium-comment-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .premium-comments-section {
        padding: 2rem;
    }

    .premium-comment-textarea {
        min-height: 100px;
    }
}

/* =========================================================================
   7. HASHOVER COMMENTS (PREMIUM "GO BIG" OVERHAUL)
   ========================================================================= */

/* Smooth scroll for reply links to prevent abrupt glitching */
html {
    scroll-behavior: smooth;
}

/* Base Wrapper for Comments Section (Go Big) */
#hashover-comments {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 51, 153, 0.08),
                0 0 0 1px rgba(0, 153, 255, 0.1);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #1a2333;
}

/* Bold Gradient Header Bar */
#hashover-comments::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #E21B22, #00A6DF, #00E5FF);
    box-shadow: 0 4px 15px rgba(0, 166, 223, 0.4);
}

/* Comments Section Title */
#hashover-comments .hashover-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem !important;
    font-weight: 800;
    color: #111;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(0, 166, 223, 0.2);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Form Container - Deep Elevated Card */
.hashover-balloon, 
#hashover-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
    margin-bottom: 3rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hashover-balloon:focus-within, 
#hashover-form:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(0, 166, 223, 0.15), 0 0 0 2px #00A6DF !important;
}

/* Titles and Headers */
.hashover-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem !important;
    font-weight: 800;
    color: #1e293b !important;
    display: block;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.hashover-dashed-title {
    border-bottom: 2px dashed #edf2f7;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
#hashover-count-wrapper {
    margin-bottom: 2rem;
}

/* Input Fields Layout */
.hashover-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.hashover-avatar-image {
    display: none; /* Hide the default form avatar image */
}

/* Big Input Fields - geometry fixed */
.hashover-inputs input[type="text"],
.hashover-inputs input[type="password"],
.hashover-inputs input[type="email"],
.hashover-inputs input[type="url"] {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* 🌟 The Gemini Glow Animation for Comment Box 🌟 */
@keyframes geminiGlow {
    0% {
        box-shadow: 0 0 0 2px rgba(0, 166, 223, 0.2), 0 0 15px rgba(0, 166, 223, 0.1);
        border-color: rgba(0, 166, 223, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(0, 166, 223, 0.6), 0 0 25px rgba(0, 166, 223, 0.5);
        border-color: #00A6DF;
    }
    100% {
        box-shadow: 0 0 0 2px rgba(0, 166, 223, 0.2), 0 0 15px rgba(0, 166, 223, 0.1);
        border-color: rgba(0, 166, 223, 0.4);
    }
}

.hashover-textarea {
    width: 100%;
    padding: 1.25rem;
    background: #ffffff;
    border: 2px solid #00A6DF;
    border-radius: 16px;
    font-size: 1.15rem; /* Larger font for discoverability */
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    min-height: 160px; /* Taller box */
    resize: vertical;
    margin-bottom: 0.5rem;
    animation: geminiGlow 3s infinite ease-in-out; /* The continuous pulsing glow */
    transition: all 0.3s ease;
}
.hashover-textarea:focus {
    animation: none; /* Stop pulsing when actively typing */
    background: #ffffff;
    border-color: #00A6DF;
    box-shadow: 0 0 0 5px rgba(0, 166, 223, 0.25) !important;
    outline: none;
}

/* Hide Honeypot Spam Fields */
.hashover-required-fields {
    display: none !important;
}

/* Glowing Form Focus State */
.hashover-inputs input:focus,
.hashover-inputs textarea:focus {
    background: #ffffff;
    border-color: #00A6DF;
    box-shadow: 0 0 0 4px rgba(0, 166, 223, 0.2);
    outline: none;
}

/* Labels */
.hashover-inputs label,
.hashover-comment-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Form Footer & Button Layout */
.hashover-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #edf2f7;
    padding-top: 1.5rem;
}
.hashover-form-buttons {
    display: flex;
    gap: 1rem;
}
.hashover-form-links label {
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons - Fixed Geometry */
.hashover-submit,
.hashover-form-buttons input[type="submit"],
.hashover-form-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #00A6DF, #0077b5);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 166, 223, 0.25);
}

/* Secondary Button (Cancel/Login) */
.hashover-form-buttons .hashover-cancel,
.hashover-form-buttons .hashover-login {
    background: #e2e8f0;
    color: #4a5568 !important;
    box-shadow: none;
}

.hashover-form-buttons .hashover-cancel:hover,
.hashover-form-buttons .hashover-login:hover {
    background: #cbd5e0;
    color: #1a202c !important;
}

.hashover-submit:hover,
.hashover-form-buttons input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 166, 223, 0.4);
    background: linear-gradient(135deg, #00b5f5, #0088cc);
}

.hashover-submit:active {
    transform: translateY(1px);
}

/* === Comment Threads - Connected Design === */

/* Wrapper for all comments */
#hashover-sort-comments {
    border-top: 2px solid #edf2f7;
    padding-top: 3rem;
}

/* Individual Comment Block */
.hashover-comment {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: all 0.3s ease;
}
.hashover-comment:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: rgba(0, 166, 223, 0.3);
}

/* User Info Bar */
.hashover-header {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* More compact gap */
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #edf2f7;
}

/* Large UI-Avatars */
.hashover-avatar {
    width: 42px; /* Reduced from 60px for compact side-by-side */
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-block;
    background: #f1f5f9;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.hashover-avatar > div {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
}

/* Author Name */
.hashover-comment-name {
    font-size: 1.15rem; /* Slightly scaled down */
    font-weight: 800;
    color: #1a202c;
    margin-right: 0.25rem;
}

/* Admin Badge & Tags */
.hashover-comment-name.admin::after {
    content: 'Admin';
    display: inline-block;
    background: linear-gradient(135deg, #E21B22, #c71217);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: 0.75rem;
    vertical-align: middle;
    box-shadow: 0 4px 10px rgba(226, 27, 34, 0.3);
}

/* Permalink & Date */
.hashover-date-permalink, 
.hashover-date {
    font-size: 0.95rem;
    color: #a0aec0;
    font-weight: 500;
    text-decoration: none !important;
}

/* Actual Comment Text */
.hashover-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2d3748;
    padding: 1.5rem 0;
}

/* Action Footer (Reply, Like, Edit) */
.hashover-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid #edf2f7;
    flex-wrap: wrap;
}

/* Flex buttons on the right side */
.hashover-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Action Buttons as Badges */
.hashover-buttons a {
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

/* Reply Badge */
.hashover-comment-reply {
    background: rgba(0, 166, 223, 0.1);
    color: #00A6DF;
}
.hashover-comment-reply:hover {
    background: #00A6DF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 166, 223, 0.3);
}

/* Like / Dislike Badges */
.hashover-like {
    background: #f1f5f9;
    color: #64748b;
}
.hashover-like:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.hashover-likes-count {
    margin-left: 0.4rem;
    font-weight: 800;
    color: #10b981;
}

/* Edit Badge */
.hashover-comment-edit {
    background: #fff3cd;
    color: #856404;
}
.hashover-comment-edit:hover {
    background: #ffc107;
    color: #000;
}

/* Nested Replies with Connecting Lines */
.hashover-reply {
    margin-left: 3.5rem;
    position: relative;
    padding-left: 0;
}

/* The Connecting Thread Line */
.hashover-reply::before {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: -2rem; /* Connects up to parent */
    bottom: 2rem; /* Connects down */
    width: 3px;
    background: linear-gradient(to bottom, rgba(203, 213, 224, 0.6), rgba(226, 232, 240, 0.6));
    border-radius: 3px;
}

/* The Corner Thread Curve */
.hashover-reply::after {
    content: '';
    position: absolute;
    left: -1.75rem;
    top: 45px;
    width: 1.75rem;
    height: 3px;
    background: rgba(203, 213, 224, 0.6);
    border-radius: 0 3px 3px 0;
}

/* Deeply Nested Thread Colors */
.hashover-reply .hashover-reply::before,
.hashover-reply .hashover-reply::after {
    background: rgba(0, 166, 223, 0.15);
}

/* Formatting Guide Panel (Collapsible) */
.hashover-formatting-message {
    display: none;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #475569;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.hashover-formatting-message.fmt-open {
    display: block;
    animation: fadeIn 0.3s ease;
}
.hashover-formatting-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.hashover-formatting-table p.hashover-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
    color: #00A6DF !important;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

/* Formatting Guide Toggle Button */
.fmt-toggle-btn {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-top: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.fmt-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #a0aec0;
    color: #1a202c;
}
.fmt-toggle-btn.active {
    background: rgba(0, 166, 223, 0.1);
    color: #00A6DF;
    border-color: rgba(0, 166, 223, 0.3);
}

/* Status Notifications */
.hashover-message {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.hashover-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 5px solid #10b981;
}

/* Hiding unneeded HashOver UI */
.hashover-edit-status,
.hashover-op-link {
    display: none !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Break out of the .article-content-wrapper 2rem padding */
    .premium-comments-section {
        margin-left: -2rem;
        margin-right: -2rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Give the entire comments section full width */
    #hashover-comments {
        padding: 1.5rem 0;
    }

    /* Cards flush to container edges */
    .hashover-balloon, 
    #hashover-form,
    .hashover-comment {
        padding: 1.25rem 0.5rem; /* Very minimal horizontal padding */
        border-radius: 10px;
        overflow: hidden;
    }

    /* Compact avatar */
    .hashover-avatar {
        width: 32px;
        height: 32px;
    }

    /* Keep header row tight on mobile */
    .hashover-header {
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    /* Prevent comment text from squeezing */
    .hashover-content {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.65;
        padding: 0.75rem 0;
    }

    /* Inputs stack vertically */
    .hashover-inputs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Formatting guide single column */
    .hashover-formatting-table {
        grid-template-columns: 1fr;
    }

    /* Form footer stacks vertically so buttons don't overflow */
    .hashover-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    /* Buttons full width - won't overflow or get cut off */
    .hashover-form-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hashover-submit,
    .hashover-form-buttons input[type="submit"],
    .hashover-form-buttons button {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        justify-content: center;
    }

    /* Action footer (Reply/Like/Edit) also wraps */
    .hashover-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Replies less indented on small screens */
    .hashover-reply {
        margin-left: 1.25rem;
        padding-left: 0;
    }
    
    .hashover-reply::before,
    .hashover-reply::after {
        left: -0.9rem;
    }
    .hashover-reply::after {
        width: 0.9rem;
    }
}