/* ===== 2025 MODERN BLOG POST STYLES ===== */

/* Clean Page Background */
.blog-post-page {
    background: var(--bg);
    min-height: 100vh;
    padding: 1.5rem 0;
}

/* Modern Container */
.blog-post-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 2025 Layout - Wider Sidebar */
.blog-post {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

/* Modern Main Content */
.post-main-content {
    background: var(--card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
}

.post-main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 20px 20px 0 0;
}

/* Modern Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 80px;
    height: fit-content;
    z-index: 10;
}

/* Mobile-First Post Header */
.post-header {
    margin-bottom: 2rem;
}

.post-category {
    margin-bottom: 1rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--accent);
    color: white;
}

/* Responsive Post Title */
.post-title {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0;
    color: var(--text);
}

/* Mobile-Optimized Post Excerpt */
.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 1rem 0;
}

/* Minimal Mobile Post Meta */
@media (max-width: 768px) {
    .post-header {
        margin-bottom: 1.5rem;
    }
    
    .post-category {
        margin-bottom: 0.75rem;
    }
    
    .category-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .post-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        margin: 0.75rem 0;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        margin: 0.75rem 0;
    }
    
    .post-meta {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
        padding: 1rem;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        margin: 1rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .post-author {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
    }
    
    .post-date {
        grid-column: 1;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: var(--muted);
    }
    
    .post-read-time {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: var(--muted);
        justify-self: center;
    }
    
    .post-views {
        grid-column: 3;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: var(--muted);
        justify-self: end;
    }
    
    .author-name {
        font-weight: 500;
        color: var(--text);
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .author-avatar, .author-avatar-placeholder {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .post-meta svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        opacity: 0.7;
    }
}

/* Compact Post Meta */
.post-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.post-meta > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.post-meta svg {
    color: var(--primary);
    width: 14px;
    height: 14px;
}

/* Compact Author Info */
.author-avatar, .author-avatar-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Modern Post Share - 2025 UI/UX */
.post-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.share-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.share-label svg {
    color: var(--primary);
}

.share-buttons {
    display: flex;
    gap: 0.6rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--bg-elev);
}

.share-btn--facebook {
    color: #1877f2;
}

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

.share-btn--twitter {
    color: #1da1f2;
}

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

.share-btn--linkedin {
    color: #0077b5;
}

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

.share-btn--copy {
    color: var(--text);
}

.share-btn--copy:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Clean Featured Image */
.post-featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Clean Post Content with Scroll Offset */
.post-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin: 2rem 0;
    scroll-padding-top: 100px;
}

/* Heading Scroll Targets */
.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4 {
    scroll-margin-top: 100px;
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    color: var(--text);
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 1.4rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
}

.post-content h3 {
    font-size: 1.2rem;
}

.post-content p {
    margin: 1rem 0;
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: var(--primary);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--glass);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin: 0.5rem 0;
}

.post-content code {
    background: var(--card);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

.post-content pre {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

/* Tags - Premium/* Modern Post Tags */
.post-tags {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--bg-elev);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tags-label svg {
    color: var(--primary);
}

.tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.tag-link:hover::before {
    left: 100%;
}

.tag-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Minimal Sidebar Components */
.sidebar-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Minimal Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post:hover {
    transform: translateX(4px);
}

.popular-post-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.popular-post-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.popular-post-title a:hover {
    color: var(--primary);
}

.popular-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Minimal Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    transform: translateX(4px);
    border-color: var(--primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.social-link--discord:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: #5865f2;
    color: #5865f2;
}

.social-link--youtube:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

.social-link--telegram:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: #0088cc;
    color: #0088cc;
}

/* CTA Button Styles */
.btn--cta {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: var(--bg);
}

/* Newsletter Note */
.newsletter-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.75rem;
    text-align: center;
    opacity: 0.7;
}

/* CTA Icon */
.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Post Overlay for Related Posts */
.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.related-post:hover .post-overlay {
    opacity: 1;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title svg {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

/* Ultra Minimal 2025 Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* TOC Toggle for Mobile */
.toc-toggle {
    display: none;
    width: 100%;
    padding: 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background: var(--bg-elev);
    border-color: var(--primary);
}

.toc-toggle::after {
    content: '▼';
    float: right;
    transition: transform 0.2s ease;
    color: var(--primary);
}

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

/* TOC Content */
.toc-content {
    transition: all 0.3s ease;
}

/* Only H2 Links - Ultra Minimal */
.toc-list a {
    display: block;
    padding: 0.6rem 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.toc-list a:hover {
    color: var(--primary);
}

.toc-list a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hide H3 and H4 on desktop - show only H2 */
.toc-h4-group,
.toc-list a[href*="h3"],
.toc-list a[href*="h4"] {
    display: none;
}

/* Mobile Responsive - Accordion with Hierarchy */
@media (max-width: 768px) {
    .toc-toggle {
        display: block;
    }
    
    .toc-content {
        max-height: 0;
        overflow: hidden;
    }
    
    .toc-content.active {
        max-height: 600px;
    }
    
    /* Mobile Hierarchy Styles */
    .toc-list a.toc-h2 {
        padding: 0.6rem 0;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text);
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.5rem;
    }
    
    .toc-sub-group {
        margin-left: 1rem;
        margin-bottom: 1rem;
        padding-left: 0.5rem;
        border-left: 2px solid var(--border);
    }
    
    .toc-sub-group a.toc-h3 {
        display: block;
        padding: 0.4rem 0;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .toc-sub-group a.toc-h3:hover {
        color: var(--primary);
    }
    
    .toc-h4-items {
        margin-left: 1rem;
        margin-top: 0.25rem;
    }
    
    .toc-h4-items a.toc-h4 {
        display: block;
        padding: 0.3rem 0;
        font-size: 0.8rem;
        font-weight: 400;
        color: var(--muted);
        text-decoration: none;
        opacity: 0.8;
        transition: all 0.2s ease;
    }
    
    .toc-h4-items a.toc-h4:hover {
        color: var(--primary);
        opacity: 1;
    }
    
    /* Hide desktop-only elements */
    .toc-h4-group {
        display: none;
    }
}

/* Minimal CTA Boxes */
.cta-box {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.cta-box p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.cta-box .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cta-box .btn:hover {
    background: white;
    color: var(--primary);
}

/* Minimal Newsletter CTA */
.newsletter-cta {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.newsletter-cta .cta-icon {
    margin-bottom: 0.75rem;
}

.newsletter-cta h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.newsletter-cta p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.newsletter-form {
    max-width: 320px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.form-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--muted);
}

.btn--primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Compact Related Posts */
.related-posts {
    margin: 2rem 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.related-post {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-post:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.related-post .post-image {
    position: relative;
    overflow: hidden;
    height: 140px;
}

.related-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post .post-content {
    padding: 1rem;
}

.related-post .post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-post .post-title a {
    color: var(--text);
    text-decoration: none;
}

.related-post .post-title a:hover {
    color: var(--primary);
}

.related-post .post-excerpt {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.related-post .post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.1s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* 2025 Responsive Design */
@media (max-width: 1200px) {
    .blog-post-page .container {
        max-width: 1200px;
        padding: 0 1.5rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr 360px;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .blog-post {
        grid-template-columns: 1fr 320px;
        gap: 2.5rem;
    }
    
    .post-main-content {
        padding: 2.5rem;
    }
    
    .sidebar-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-post-page {
        padding: 0.75rem 0;
    }
    
    .blog-post-page .container {
        padding: 0 0.75rem;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-main-content {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .post-sidebar {
        position: sticky;
        top: 70px;
        z-index: 10;
    }
    
    .sidebar-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .cta-box {
        padding: 1.25rem;
    }
    
    .cta-box h3 {
        font-size: 1rem;
    }
    
    .newsletter-cta {
        margin: 1.5rem 0;
        padding: 1.25rem;
    }
    
    .newsletter-cta h3 {
        font-size: 1rem;
    }
    
    .newsletter-cta p {
        font-size: 0.85rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .post-tags {
        padding: 1.25rem;
    }
    
    .tags-list {
        gap: 0.5rem;
    }
    
    .tag-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-share {
        padding: 0.875rem 1rem;
        margin: 1rem 0;
    }
    
    .share-label {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 28px;
        height: 28px;
    }
    
    .share-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .blog-post-page .container {
        padding: 0 0.5rem;
    }
    
    .post-main-content {
        padding: 1.25rem;
        border-radius: 8px;
    }
    
    .post-sidebar {
        position: sticky;
        top: 60px;
        z-index: 10;
    }
    
    .sidebar-section {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    .sidebar-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .sidebar-title svg {
        width: 16px;
        height: 16px;
    }
    
    .cta-box {
        padding: 1rem;
    }
    
    .cta-box h3 {
        font-size: 0.95rem;
    }
    
    .cta-box p {
        font-size: 0.85rem;
    }
    
    .post-share {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Mobile TOC - Keep minimal */
    .toc-list a {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }
    
    /* Mobile Scroll Offset */
    .post-content {
        scroll-padding-top: 80px;
    }
    
    .post-content h1, 
    .post-content h2, 
    .post-content h3, 
    .post-content h4 {
        scroll-margin-top: 80px;
    }
    
    .social-link {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .popular-post-title {
        font-size: 0.9rem;
    }
    
    /* Small Mobile Scroll Offset */
    .post-content {
        scroll-padding-top: 70px;
    }
    
    .post-content h1, 
    .post-content h2, 
    .post-content h3, 
    .post-content h4 {
        scroll-margin-top: 70px;
    }
}

/* Print Styles */
@media print {
    .post-sidebar,
    .newsletter-cta,
    .related-posts,
    .post-share,
    .reading-progress {
        display: none !important;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .post-main-content {
        padding: 2rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .blog-post {
        border: 2px solid var(--text);
    }
    
    .category-link,
    .share-btn,
    .tag-link {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
