/* 
   Dhunvora Music - Article Detail Styles
   Restored premium styling for individual article pages.
*/

.article-container {
    padding: 80px 0;
    background-color: #ffffff;
    min-height: 60vh;
}

.article-header {
    margin-bottom: 3rem;
    text-align: left;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 5rem;
    box-shadow: var(--shadow-xl);
}

.article-content p.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--gray-900);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.info-box {
    background-color: var(--gray-50);
    border-left: 5px solid var(--primary);
    padding: 2rem;
    border-radius: 0 1.5rem 1.5rem 0;
    margin: 2.5rem 0;
}

.info-box h4 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.platform-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}

.platform-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.platform-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Hero Fix */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 6rem 0;
    color: white;
    margin-top: 80px;
    text-align: center;
}

.page-hero h1 {
    color: white !important;
    margin-bottom: 1rem;
}

.page-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a {
    color: white;
    font-weight: 600;
}

/* Restore Responsive Styles */
@media (max-width: 768px) {
    .article-container {
        padding: 40px 0;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-image {
        border-radius: 1rem;
        font-size: 3rem;
    }
}

/* ==========================================================================
   Interactive Reader Experience Enhancements
   ========================================================================== */

/* Reading Progress Bar */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #6366f1);
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* Smooth Heading Anchors */
.article-content h2[id],
.article-content h3[id] {
    scroll-margin-top: 100px;
}

/* Reader Action Bar */
.reader-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 1.75rem 0 2rem 0;
}

.reader-tools,
.reader-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tool-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
}

.font-resizers {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.font-size-btn {
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid #e2e8f0;
}

.font-size-btn:last-child {
    border-right: none;
}

.font-size-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.font-size-btn.active {
    background: #0284c7;
    color: #ffffff;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-whatsapp {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.share-whatsapp:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
}

.share-twitter {
    color: #0f172a;
    border-color: #e2e8f0;
    background: #f8fafc;
}
.share-twitter:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.share-linkedin {
    color: #0284c7;
    border-color: #bae6fd;
    background: #f0f9ff;
}
.share-linkedin:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.share-copy {
    color: #6366f1;
    border-color: #e0e7ff;
    background: #eef2ff;
}
.share-copy:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* Article Content Font Sizing Variations */
.article-content.font-sm {
    font-size: 1rem;
    line-height: 1.75;
}
.article-content.font-md {
    font-size: 1.125rem;
    line-height: 1.85;
}
.article-content.font-lg {
    font-size: 1.25rem;
    line-height: 1.95;
}

/* Floating Quick-Nav Button */
.floating-toc-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9985;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: all 0.25s ease;
}

.floating-toc-btn:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -5px rgba(2, 132, 199, 0.5);
}

.floating-toc-btn i {
    color: #38bdf8;
}

/* Quick Nav Drawer & Overlay */
.toc-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.toc-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.toc-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99995;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25);
}

.toc-drawer.open {
    transform: translateX(0);
}

.toc-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.toc-drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toc-drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.toc-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.toc-drawer-link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-drawer-link:hover {
    background: #f0f9ff;
    color: #0284c7;
}

.toc-drawer-link.active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    border-left-color: #0284c7;
}

.toc-num {
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.toc-drawer-link.active .toc-num {
    background: #0284c7;
    color: #ffffff;
}

.toc-drawer-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.btn-top-jump {
    display: block;
    text-align: center;
    padding: 0.625rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-top-jump:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Scroll-to-Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 24px;
    right: 88px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 9980;
    cursor: pointer;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #0284c7;
    transform: translateY(-3px);
}

/* Interactive FAQ Accordions */
.faq-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-accordion-item:hover {
    border-color: #cbd5e1;
}

.faq-accordion-item.active {
    border-color: #38bdf8;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.faq-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 1.125rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    transition: background-color 0.2s ease;
}

.faq-accordion-header:hover {
    background-color: #f8fafc;
}

.faq-q-title {
    flex: 1;
    padding-right: 1rem;
}

.chevron-icon {
    color: #64748b;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion-item.active .chevron-icon {
    transform: rotate(180deg);
    color: #0284c7;
}

.faq-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0 1.25rem;
    background-color: #ffffff;
}

.faq-accordion-item.active .faq-accordion-body {
    max-height: 800px;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

/* Mobile Table Hints */
.table-swipe-hint {
    display: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .table-swipe-hint {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .floating-toc-btn span {
        display: none;
    }
    .floating-toc-btn {
        padding: 12px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        justify-content: center;
        left: 16px;
        bottom: 16px;
    }
    .scroll-top-btn {
        right: 76px;
        bottom: 16px;
    }
}

/* Toast Alert */
.article-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Related Guides Section */
.related-guides-section {
    margin: 4rem 0 3rem 0;
    padding-top: 3rem;
    border-top: 2px dashed #e2e8f0;
}

.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-guide-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-guide-card:hover {
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(14, 165, 233, 0.15);
}

.related-guide-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    background: #f0f9ff;
    color: #0284c7;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.related-guide-title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.related-guide-link-cta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0284c7;
    margin-top: auto;
}

.related-guide-card:hover .related-guide-link-cta {
    color: #0369a1;
}

