/* Critical CSS for single post */
:root {
    --article-max-width: 720px;
    --font-size-base: 1.125rem;
    --font-size-small: 1rem;
    --font-size-large: 1.25rem;
    --line-height-base: 1.8;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
    will-change: transform;
}

.single-article {
    background: white;
    min-height: 100vh;
}

/* Dark theme variables handled globally in style.css */

/* Single article dark mode handled globally */

.article-header {
    padding: 2rem 0 1rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

/* Article header dark mode handled globally */

/* RankMath Breadcrumb Styling - Enhanced Visibility */
.rank-math-breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.rank-math-breadcrumb p {
    margin: 0;
    font-size: 0.875rem;
    color: #4B5563;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.rank-math-breadcrumb a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.rank-math-breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.rank-math-breadcrumb .separator {
    color: #9CA3AF;
    font-weight: normal;
}

.rank-math-breadcrumb .last {
    color: var(--primary);
    font-weight: 600;
}

/* Dark mode breadcrumb styling handled globally */

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-weight: 700;
    text-transform: capitalize;
}

/* French Language Typography Override */
body.lang-fr .article-title {
    text-transform: none !important;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
}

.author-name a {
    color: var(--gray-900);
    font-weight: 600;
    text-decoration: none;
}

.author-name a:hover {
    color: var(--primary);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.meta-details svg {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.category-badge {
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.category-badge:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

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

.share-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.share-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background: var(--gray-900);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
}

.copy-link.copied .copy-icon {
    display: none;
}

.copy-link.copied .check-icon {
    display: block !important;
    color: var(--success, #10b981);
}

/* Featured Image - Reduced Size */
.featured-image {
    margin: 0 auto 2rem;
    max-width: 900px; /* Limit max width */
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
}

.featured-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.featured-image figcaption {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
    font-style: italic;
}


/* Content Layout */
.article-body {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.article-content {
    max-width: var(--article-max-width);
    overflow-wrap: break-word;
    font-size: var(--font-size-base);
}

/* Typography Enhancements */
.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--gray-900);
    scroll-margin-top: 100px;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--gray-800);
    scroll-margin-top: 100px;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--gray-800);
    font-weight: 600;
}

.article-content p {
    line-height: var(--line-height-base);
    margin-bottom: 1.75rem;
    color: var(--gray-700);
}

.article-content p.has-drop-cap:first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    margin: 0 0.75rem 0.25rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
    color: var(--gray-700);
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
}

.article-content ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Blockquotes */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 159, 103, 0.05) 0%, rgba(255, 159, 103, 0.02) 100%);
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
}

/* Images - Centered and Enhanced */
.article-content img,
.article-content figure {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2.5rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.article-content figure {
    text-align: center;
}

.article-content figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}

.article-content .alignleft {
    float: left;
    margin: 0.5rem 2rem 1.5rem 0;
}

.article-content .alignright {
    float: right;
    margin: 0.5rem 0 1.5rem 2rem;
}

.article-content .aligncenter {
    display: block;
    margin: 2.5rem auto;
}

/* Tables - Beautiful Styling */
.article-content table {
    width: 100%;
    margin: 2rem auto;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.article-content thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.article-content th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.article-content td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.article-content tbody tr {
    transition: background var(--transition-fast);
}

.article-content tbody tr:hover {
    background: var(--gray-50);
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors */
.article-content tbody tr:nth-child(even) {
    background: var(--gray-50);
}

/* Code blocks */
.article-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-content code {
    background: var(--gray-100);
    color: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Links */
.article-content a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
    border-bottom: 2px solid transparent;
}

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

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.tags-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.tag-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px; /* Add space from header */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-top: 1rem; /* Additional padding */
}

.article-sidebar::-webkit-scrollbar {
    display: none;
}

.widget {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-200);
}

.widget h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
    font-weight: 600;
}

.widget h3 svg {
    color: var(--primary);
}

/* Table of Contents - Compact */
.toc-widget {
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.toc {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    font-size: 0.875rem;
}

.toc::-webkit-scrollbar {
    width: 4px;
}

.toc::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.toc::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 2px;
}

.toc::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc > ul > li {
    margin-bottom: 0.25rem;
}

.toc ul ul {
    padding-left: 1.25rem;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
}

.toc a {
    display: block;
    padding: 0.375rem 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    margin-left: -2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc > ul > li > a {
    font-weight: 500;
    font-size: 0.875rem;
}

.toc a:hover {
    color: var(--primary);
    background: var(--gray-50);
    border-left-color: var(--primary);
    padding-left: 0.75rem;
}

.toc a.active {
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(255, 159, 103, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary);
}

/* Empty TOC message */
.toc-empty {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Compact Reading Settings Widget */
.reading-settings-widget.compact {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.reading-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.control-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-right: 0.5rem;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.font-size-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 0.875rem;
}

.font-size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

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

/* Sidebar theme toggle removed - only menu toggle now */

/* Author Box - Modern Design */
.author-box {
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.author-box-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    pointer-events: none;
}

.decoration-icon {
    width: 100%;
    height: 100%;
    color: var(--primary);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-box-content {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.author-box-left {
    flex-shrink: 0;
}

.author-avatar-wrapper {
    position: relative;
}

.author-avatar-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: white;
}

.author-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 159, 103, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.author-box-right {
    flex: 1;
    min-width: 0;
}

.author-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.author-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.author-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.author-stat svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.author-box-bio {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.author-box-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-box-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    background: transparent;
}

.author-box-link.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 159, 103, 0.3);
}

.author-box-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 103, 0.4);
}

.author-box-link.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.author-box-link.secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.author-box-link svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .author-box-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.75rem;
        text-align: center;
    }
    
    .author-box-left {
        margin: 0 auto;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .author-box-actions {
        justify-content: center;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-box-decoration {
        top: -20px;
        right: -20px;
        width: 120px;
        height: 120px;
    }
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.widget-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.widget-icon svg {
    width: 48px;
    height: 48px;
    stroke: white;
}

.newsletter-widget h3 {
    color: white;
    text-align: center;
    justify-content: center;
}

.newsletter-widget p {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
}

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

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Author Bio */
.author-bio-section {
    padding: 3rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.author-bio img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.author-bio h3 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.author-bio p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.author-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Related Posts - Smaller Cards */
.related-posts {
    padding: 3rem 0;
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-200);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

.related-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    height: 180px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.related-content {
    padding: 1.25rem;
}

.related-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.related-content h3 a:hover {
    color: var(--primary);
}

.related-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Font size adjustments */
body.font-small .article-content {
    font-size: var(--font-size-small);
}

body.font-large .article-content {
    font-size: var(--font-size-large);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reading-settings-widget.compact {
        position: sticky;
        top: 60px;
        z-index: 100;
        background: white;
        box-shadow: var(--shadow-medium);
    }
    
    .toc-widget {
        display: none;
    }
    
    .reading-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .control-label {
        display: none;
    }
    
    .reading-controls {
        justify-content: space-around;
    }
    
    .article-header {
        padding: 1rem 0;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-image {
        border-radius: 0;
        margin: 0 -1rem 1.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.75rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio img {
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .share-buttons,
    .article-sidebar,
    .related-posts,
    .reading-progress-bar,
    .newsletter-widget {
        display: none;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-content table {
        break-inside: avoid;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
