/* Blog Page Styles */

.blog-main {
    min-height: 100vh;
    background: var(--white);
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

/* Force mobile elements to fit viewport */
@media (max-width: 768px) {
    .blog-article,
    .blog-article *,
    .article-main-content,
    .article-main-content *,
    .article-content,
    .article-content * {
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .article-content pre,
    .article-content code {
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-word;
    }
}

.blog-main .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 3rem);
}

/* Mobile container fixes */
@media (max-width: 768px) {
    .blog-main .container {
        max-width: 100%;
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .blog-main .container {
        padding: 0 var(--spacing-md);
    }
}

/* Hero Section */
.blog-hero {
    padding: calc(80px + var(--spacing-6xl)) 0 var(--spacing-6xl);
    text-align: center;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: var(--gray-900);
}

.blog-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: var(--spacing-4xl);
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4xl);
}

.blog-stats .stat-item {
    text-align: center;
}

.blog-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-family-mono);
    color: var(--primary-600);
    margin-bottom: var(--spacing-xs);
}

.blog-stats .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Featured Article */
.featured-article {
    padding: var(--spacing-6xl) 0;
    position: relative;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--primary-50);
    color: var(--primary-700);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.featured-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.featured-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.featured-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.featured-image-placeholder i {
    width: 48px;
    height: 48px;
}

.featured-content {
    padding: var(--spacing-4xl);
}

.featured-meta {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.featured-meta .category {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.featured-meta .date,
.featured-meta .read-time {
    color: var(--gray-500);
}

.featured-title {
    margin-bottom: var(--spacing-lg);
}

.featured-title a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.featured-title a:hover {
    color: var(--primary-600);
}

.featured-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-3xl);
}

.featured-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Categories Filter */
.blog-categories {
    padding: var(--spacing-5xl) 0;
    border-top: 1px solid var(--gray-100);
}

.categories-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
    font-weight: 500;
}

.category-btn:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
    color: var(--primary-700);
}

.category-btn.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* Blog Articles */
.blog-articles {
    padding: var(--spacing-5xl) 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-5xl);
}

.article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
    transform: translateY(-2px);
}

.article-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.article-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.article-content {
    padding: var(--spacing-3xl);
}

.article-meta {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: 0.75rem;
}

.article-meta .category {
    background: var(--secondary-100);
    color: var(--secondary-700);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.article-meta .date {
    color: var(--gray-500);
}

.article-title {
    margin-bottom: var(--spacing-md);
}

.article-title a {
    color: var(--gray-900);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.article-title a:hover {
    color: var(--primary-600);
}

.article-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-lg);
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags {
    display: flex;
    gap: var(--spacing-xs);
}

.tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.read-time {
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Load More */
.load-more-section {
    text-align: center;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    padding: var(--spacing-6xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin: var(--spacing-5xl) 0;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
}

.newsletter-signup h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.newsletter-signup p {
    color: var(--gray-600);
    margin-bottom: var(--spacing-3xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto var(--spacing-lg);
}

.newsletter-input {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-input input {
    flex: 1;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-input button {
    padding: var(--spacing-md) var(--spacing-lg);
}

.newsletter-signup small {
    color: var(--gray-500);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: calc(80px + var(--spacing-4xl)) 0 var(--spacing-4xl);
    }
    
    .blog-stats {
        gap: var(--spacing-2xl);
        flex-wrap: wrap;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-content {
        padding: var(--spacing-3xl);
    }
    
    .categories-filter {
        gap: var(--spacing-sm);
    }
    
    .category-btn {
        font-size: 0.75rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .newsletter-input {
        flex-direction: column;
    }
    
    .blog-categories,
    .blog-articles {
        padding: var(--spacing-4xl) 0;
    }
}

@media (max-width: 480px) {
    .blog-stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .featured-meta {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .newsletter-signup {
        padding: var(--spacing-4xl) var(--spacing-3xl);
    }
}

/* Article Page Styles */
.blog-article {
    max-width: 1600px;
    margin: 0 auto;
    padding: calc(80px + var(--spacing-4xl)) var(--spacing-lg) var(--spacing-4xl);
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: var(--spacing-5xl);
    align-items: start;
}

.article-main-content {
    max-width: 900px;
}

.article-sidebar {
    position: sticky;
    top: 120px;
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-4xl);
    border: 1px solid var(--gray-200);
    width: 500px;
}

.article-header {
    margin-bottom: var(--spacing-4xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--gray-200);
}

.article-header .article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
}

.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: var(--spacing-3xl);
}

/* Author Bio */
.author-bio {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-3xl);
    background: var(--gray-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.author-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.author-info p {
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
}

.author-credentials {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.credential {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Article Content */
.article-content {
    line-height: 1.7;
    color: var(--gray-700);
}

.article-content section {
    scroll-margin-top: 120px;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: var(--spacing-4xl) 0 var(--spacing-lg);
    scroll-margin-top: 120px;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: var(--spacing-3xl) 0 var(--spacing-md);
    scroll-margin-top: 120px;
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: var(--spacing-2xl) 0 var(--spacing-sm);
    scroll-margin-top: 120px;
}

.article-content p {
    margin-bottom: var(--spacing-lg);
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg);
}

.article-content li {
    margin-bottom: var(--spacing-sm);
}

.article-content strong {
    font-weight: 600;
    color: var(--gray-900);
}

/* Table of Contents */
.table-of-contents {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-3xl);
    margin: var(--spacing-3xl) 0;
}

.table-of-contents.sidebar-toc {
    margin: 0 0 var(--spacing-3xl) 0;
    position: sticky;
    top: 0;
    padding: var(--spacing-2xl);
}

.table-of-contents h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-800);
    margin: 0 0 var(--spacing-lg);
}

.table-of-contents ol {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.table-of-contents li {
    margin-bottom: var(--spacing-sm);
}

.table-of-contents a {
    color: var(--primary-700);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.table-of-contents a:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

/* Technical Elements */
.technical-definition {
    background: var(--gray-50);
    border-left: 4px solid var(--secondary-500);
    padding: var(--spacing-3xl);
    margin: var(--spacing-2xl) 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.technical-definition h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-700);
    margin: 0 0 var(--spacing-md);
}

.comparison-table {
    margin: var(--spacing-3xl) 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-900);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Code Blocks */
.article-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: var(--spacing-3xl);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: var(--spacing-2xl) 0;
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-content code {
    font-family: var(--font-family-mono);
    font-size: 0.875rem;
}

.article-content p code {
    background: var(--gray-100);
    color: var(--gray-800);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* Expert Tips */
.expert-tip {
    background: linear-gradient(135deg, var(--warning-50) 0%, var(--warning-100) 100%);
    border: 1px solid var(--warning-300);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-3xl);
    margin: var(--spacing-3xl) 0;
}

.expert-tip h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--warning-800);
    margin: 0 0 var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.expert-tip p {
    color: var(--warning-700);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Conclusion */
.conclusion {
    background: var(--success-50);
    border: 1px solid var(--success-200);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-4xl);
    margin: var(--spacing-4xl) 0;
}

.conclusion h2 {
    color: var(--success-800);
    margin-top: 0;
}

.conclusion p,
.conclusion ul {
    color: var(--success-700);
}

/* Article Footer */
.article-footer {
    border-top: 1px solid var(--gray-200);
    padding-top: var(--spacing-3xl);
    margin-top: var(--spacing-4xl);
}

.article-sharing {
    margin: var(--spacing-3xl) 0;
}

.article-sharing h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.sharing-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
}

.article-updated {
    background: var(--gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.article-updated p {
    margin: var(--spacing-xs) 0;
}

/* Sidebar Elements */
.sidebar-author {
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-3xl);
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.sidebar-author .author-avatar {
    margin: 0 auto var(--spacing-lg);
    width: 100px;
    height: 100px;
}

.sidebar-author h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.sidebar-author p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.sidebar-author .author-credentials {
    justify-content: center;
    gap: var(--spacing-md);
}

.sidebar-author .credential {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
}

.sidebar-sharing {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    padding: var(--spacing-3xl);
}

.sidebar-sharing h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.sidebar-sharing .sharing-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.sidebar-sharing .share-btn {
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Breakpoints */

/* Large Desktop - mantieni layout a 2 colonne */
@media (min-width: 1201px) {
    .blog-article {
        grid-template-columns: 1fr 500px;
    }
}

/* Tablet Large - riduci sidebar */
@media (max-width: 1200px) {
    .blog-article {
        grid-template-columns: 1fr 400px;
        gap: var(--spacing-4xl);
        max-width: 1200px;
    }
    
    .article-sidebar {
        width: 400px;
        padding: var(--spacing-3xl);
    }
    
    .sidebar-author .author-avatar {
        width: 80px;
        height: 80px;
    }
    
    .sidebar-sharing .sharing-buttons {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* Tablet - layout a colonna singola */
@media (max-width: 1024px) {
    .blog-article {
        grid-template-columns: 1fr;
        max-width: 800px;
        gap: var(--spacing-3xl);
    }
    
    .article-main-content {
        max-width: 100%;
    }
    
    .article-sidebar {
        position: static;
        margin-top: var(--spacing-4xl);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
        padding: var(--spacing-3xl);
        width: 100%;
        max-width: 100%;
        background: var(--white);
        border: 1px solid var(--gray-200);
    }
    
    .table-of-contents.sidebar-toc {
        position: static;
        grid-column: 1 / -1;
        margin-bottom: var(--spacing-2xl);
    }
    
    .sidebar-author,
    .sidebar-sharing {
        margin-bottom: 0;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    
    .blog-article {
        display: block !important;
        grid-template-columns: none !important;
        max-width: 100%;
        width: 100%;
        padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-3xl);
        gap: 0;
    }
    
    .article-main-content {
        max-width: 100%;
        width: 100%;
    }
    
    .article-header {
        padding-bottom: var(--spacing-2xl);
        margin-bottom: var(--spacing-2xl);
    }
    
    .article-header h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .article-header .article-meta {
        flex-wrap: wrap;
        gap: var(--spacing-md);
        font-size: 0.8125rem;
    }
    
    .article-excerpt {
        font-size: 1rem;
        margin-bottom: var(--spacing-2xl);
    }
    
    .author-bio {
        grid-template-columns: 80px 1fr;
        text-align: left;
        padding: var(--spacing-2xl);
        gap: var(--spacing-md);
    }
    
    .article-sidebar {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0;
        padding: var(--spacing-2xl);
        width: 100%;
        max-width: 100%;
        margin-top: var(--spacing-3xl);
    }
    
    .sidebar-author,
    .sidebar-sharing,
    .table-of-contents {
        margin-bottom: var(--spacing-2xl);
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar-author {
        padding: var(--spacing-2xl);
        text-align: left;
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: var(--spacing-md);
        align-items: center;
    }
    
    .sidebar-author .author-avatar {
        margin: 0;
        width: 80px;
        height: 80px;
    }
    
    .sidebar-author h4 {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .sidebar-author p {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.5;
    }
    
    .sidebar-author .author-credentials {
        justify-content: flex-start;
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }
    
    .sidebar-author .credential {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .sidebar-sharing {
        padding: var(--spacing-2xl);
    }
    
    .sidebar-sharing h4 {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
        text-align: left;
    }
    
    .sidebar-sharing .sharing-buttons {
        display: flex !important;
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .sidebar-sharing .share-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
        width: 100%;
        max-width: 100%;
    }
    
    /* Article content adjustments */
    .article-content h2 {
        font-size: 1.375rem;
        margin: var(--spacing-3xl) 0 var(--spacing-md);
    }
    
    .article-content h3 {
        font-size: 1.125rem;
        margin: var(--spacing-2xl) 0 var(--spacing-sm);
    }
    
    .article-content h4 {
        font-size: 1rem;
        margin: var(--spacing-lg) 0 var(--spacing-xs);
    }
    
    .comparison-table {
        font-size: 0.875rem;
        margin: var(--spacing-2xl) 0;
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .comparison-table table {
        width: 100%;
        min-width: 100%;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm) var(--spacing-md);
        white-space: normal;
    }
    
    .article-content pre {
        padding: var(--spacing-lg);
        font-size: 0.75rem;
        margin: var(--spacing-lg) 0;
        overflow-x: auto;
        width: 100%;
        max-width: 100%;
        word-break: break-word;
    }
    
    .technical-definition,
    .expert-tip,
    .conclusion {
        padding: var(--spacing-2xl);
        margin: var(--spacing-2xl) 0;
    }
    
    .table-of-contents {
        padding: var(--spacing-2xl);
        margin: var(--spacing-2xl) 0;
    }
    
    .table-of-contents h2 {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    .table-of-contents ol {
        font-size: 0.875rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .blog-main .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
        width: 100%;
    }
    
    .blog-article {
        display: block !important;
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-2xl);
        max-width: 100%;
        width: 100%;
    }
    
    .article-main-content {
        width: 100%;
        max-width: 100%;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .article-header .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .author-bio {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .author-avatar {
        justify-self: center;
    }
    
    .sidebar-author {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .sidebar-author .author-avatar {
        justify-self: center;
    }
    
    .sidebar-author .author-credentials {
        justify-content: center;
    }
    
    .sidebar-sharing .sharing-buttons {
        display: flex !important;
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .sidebar-sharing .share-btn {
        width: 100%;
        max-width: 100%;
    }
    
    .comparison-table {
        font-size: 0.8125rem;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-xs) var(--spacing-sm);
        min-width: 120px;
    }
    
    .article-content pre {
        font-size: 0.6875rem;
        line-height: 1.5;
        padding: var(--spacing-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .technical-definition,
    .expert-tip,
    .conclusion {
        padding: var(--spacing-lg);
    }
    
    .table-of-contents {
        padding: var(--spacing-lg);
    }
    
    .table-of-contents ol {
        font-size: 0.8125rem;
        line-height: 1.5;
    }
}