/* Modern Single Post Styles - 2025 Design */

/* Container Widths */
.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reading Progress Bar */
.reading-progress-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(44, 90, 160, 0.1);
    z-index: 1000;
}

.reading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2c5aa0 0%, #d4544a 100%);
    width: 0;
    transition: width 0.2s ease;
}

/* Article Hero Section */
.article-hero-modern {
    padding-top: 60px;
    padding-bottom: 40px;
    background: #fff;
}

/* Category Badge */
.category-badge-modern {
    margin-bottom: 24px;
}

.category-badge-modern a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(44, 90, 160, 0.08);
    color: #2c5aa0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge-modern a:hover {
    background: rgba(44, 90, 160, 0.15);
}

/* Article Title - Dynamic Typography */
.article-title-modern {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin: 0 0 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Article Subtitle */
.article-subtitle-modern {
    font-size: 21px;
    line-height: 1.5;
    color: #4a4a4a;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Meta Bar */
.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.author-info-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-modern {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.author-details .author-name {
    font-weight: 600;
    color: #0a0a0a;
    text-decoration: none;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.author-details .author-name:hover {
    color: #2c5aa0;
}

.meta-details {
    font-size: 14px;
    color: #6a6a6a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-details .separator {
    color: #ccc;
}

/* Article Actions */
.article-actions-modern {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a4a4a;
}

.action-btn:hover {
    background: #f5f5f5;
    border-color: #2c5aa0;
    color: #2c5aa0;
}

.action-btn.saved {
    background: #2c5aa0;
    color: #fff;
    border-color: #2c5aa0;
}

/* Featured Image Modern */
.featured-image-modern {
    margin: 40px 0;
}

.hero-image-modern {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-caption-modern {
    text-align: center;
    font-size: 14px;
    color: #6a6a6a;
    margin-top: 16px;
    font-style: italic;
}

/* Content Grid */
.content-grid-modern {
    display: grid;
    grid-template-columns: 60px 1fr 320px;
    gap: 40px;
    position: relative;
}

/* Share Sidebar */
.share-sidebar-modern {
    position: relative;
}

.share-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-sticky.visible {
    opacity: 1;
}

.share-btn-modern {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6a6a6a;
}

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

.share-btn-modern.facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.share-btn-modern.twitter:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.share-btn-modern.linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.share-btn-modern.email:hover {
    background: #ea4335;
    color: #fff;
    border-color: #ea4335;
}

.share-btn-modern.copy-link.copied {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.share-divider {
    width: 30px;
    height: 1px;
    background: #e0e0e0;
    margin: 8px 0;
}

/* Table of Contents Modern */
.toc-modern {
    background: linear-gradient(135deg, #f8f9fb 0%, #f3f4f7 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toc-header h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6a6a6a;
    margin: 0;
}

.toc-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #6a6a6a;
    transition: transform 0.3s ease;
}

.toc-toggle.collapsed {
    transform: rotate(180deg);
}

.toc-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list-modern.collapsed {
    display: none;
}

.toc-list-modern li {
    counter-increment: toc-counter;
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}

.toc-list-modern li:before {
    content: counter(toc-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #2c5aa0;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-item-h3 {
    padding-left: 48px !important;
    font-size: 14px;
}

.toc-item-h3:before {
    left: 16px !important;
    background: rgba(44, 90, 160, 0.3) !important;
}

.toc-list-modern a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.toc-list-modern a:hover {
    color: #2c5aa0;
}

/* Prose Modern - Article Content Typography */
.prose-modern {
    font-size: 19px;
    line-height: 1.7;
    color: #1a1a1a;
    font-family: Georgia, 'Times New Roman', serif;
}

.prose-modern h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px 0;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}

.prose-modern h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 16px 0;
    color: #0a0a0a;
}

.prose-modern p {
    margin-bottom: 28px;
}

.prose-modern blockquote {
    border-left: 4px solid #2c5aa0;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4a4a4a;
    font-size: 21px;
    background: linear-gradient(90deg, rgba(44, 90, 160, 0.05) 0%, transparent 100%);
    padding: 24px;
    border-radius: 0 8px 8px 0;
}

.prose-modern ul, .prose-modern ol {
    margin: 28px 0;
    padding-left: 32px;
}

.prose-modern li {
    margin-bottom: 12px;
}

.prose-modern a {
    color: #2c5aa0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.prose-modern a:hover {
    text-decoration-thickness: 2px;
}

.prose-modern img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.prose-modern code {
    background: rgba(44, 90, 160, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #2c5aa0;
}

.prose-modern pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

/* Article Footer */
.article-footer-modern {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Tags Modern */
.tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tag-modern {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #4a4a4a;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tag-modern:hover {
    background: #2c5aa0;
    color: #fff;
}

/* Disclaimer Card */
.disclaimer-card-modern {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff5e8 100%);
    border-radius: 12px;
    border: 1px solid rgba(212, 84, 74, 0.2);
}

.disclaimer-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #d4544a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.disclaimer-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #d4544a;
}

.disclaimer-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #6a6a6a;
    margin: 0;
}

/* Content Sidebar */
.content-sidebar-modern {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 16px 0 12px 0;
    color: #0a0a0a;
}

.sidebar-card p {
    font-size: 14px;
    color: #6a6a6a;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Newsletter Card */
.newsletter-card-modern {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: #fff;
}

.newsletter-card-modern h4,
.newsletter-card-modern p {
    color: #fff;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.newsletter-form-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form-modern input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.newsletter-form-modern input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form-modern button {
    padding: 12px 24px;
    background: #fff;
    color: #2c5aa0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form-modern button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.newsletter-card-modern small {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.9;
}

/* CTA Card */
.badge-modern {
    display: inline-block;
    padding: 4px 12px;
    background: #d4544a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.checklist-modern {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px 0;
}

.checklist-modern li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #4a4a4a;
}

.checklist-modern li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: 700;
}

.btn-modern {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.btn-primary-modern {
    background: #2c5aa0;
    color: #fff;
}

.btn-primary-modern:hover {
    background: #1e4080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Related Articles Sidebar */
.related-item-modern {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.related-item-modern:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-item-modern h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.related-item-modern h5 a {
    color: #0a0a0a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-item-modern h5 a:hover {
    color: #2c5aa0;
}

.related-item-modern time {
    font-size: 13px;
    color: #999;
}

/* Author Section Modern */
.author-section-modern {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 80px;
}

.author-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.author-header-modern {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    padding: 24px 32px;
}

.author-header-modern h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.author-content-modern {
    display: flex;
    gap: 32px;
    padding: 32px;
}

.author-image-modern {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-info-block h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #0a0a0a;
}

.author-role {
    font-size: 14px;
    color: #2c5aa0;
    font-weight: 600;
    margin-bottom: 16px;
}

.author-bio {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.author-links-modern a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.author-links-modern a:hover {
    gap: 12px;
}

/* Post Navigation Modern */
.post-nav-modern {
    padding: 60px 0;
    background: #fff;
}

.nav-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.nav-card-modern {
    position: relative;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-card-modern:hover {
    background: #2c5aa0;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.2);
}

.nav-card-modern:hover * {
    color: #fff !important;
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 8px;
}

.nav-card-modern h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.4;
}

.nav-card-modern svg {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
}

.prev-post svg {
    left: 32px;
}

.next-post svg {
    right: 32px;
}

.prev-post {
    padding-left: 72px;
}

.next-post {
    padding-right: 72px;
    text-align: right;
}

/* Recommended Section */
.recommended-modern {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header-modern h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
}

.view-all-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.2s ease;
}

.view-all-modern:hover {
    gap: 12px;
}

.articles-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.article-card-modern {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image-modern {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-modern:hover .card-image-modern img {
    transform: scale(1.05);
}

.card-content-modern {
    padding: 24px;
}

.card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c5aa0;
    margin-bottom: 12px;
}

.card-content-modern h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card-content-modern h3 a {
    color: #0a0a0a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-content-modern h3 a:hover {
    color: #2c5aa0;
}

.card-content-modern p {
    font-size: 14px;
    color: #6a6a6a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-meta-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid-modern {
        grid-template-columns: 1fr 280px;
    }

    .share-sidebar-modern {
        display: none;
    }

    .articles-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-grid-modern {
        grid-template-columns: 1fr;
    }

    .content-sidebar-modern {
        display: none;
    }

    .article-title-modern {
        font-size: 32px;
    }

    .article-subtitle-modern {
        font-size: 18px;
    }

    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .prose-modern {
        font-size: 17px;
    }

    .nav-grid-modern {
        grid-template-columns: 1fr;
    }

    .articles-grid-modern {
        grid-template-columns: 1fr;
    }

    .author-content-modern {
        flex-direction: column;
        text-align: center;
    }

    .author-image-modern {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container-narrow,
    .container-wide {
        padding: 0 16px;
    }

    .article-hero-modern {
        padding-top: 32px;
    }

    .article-title-modern {
        font-size: 28px;
    }

    .toc-modern {
        padding: 16px;
    }

    .prose-modern h2 {
        font-size: 24px;
    }

    .prose-modern h3 {
        font-size: 20px;
    }
}