/* Blog Article Styles - Modern Layout */

.blog-article {
    background: var(--white);
}

/* Article Header */
.article-header {
    padding: 60px 40px;
}

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

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

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

.breadcrumb span {
    opacity: 0.8;
}

/* Breadcrumb styles moved to common.css */

.article-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    max-width: 900px;
}

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

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.article-date {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Article Content */
.article-content {
    padding: 80px 40px;
    background: var(--white);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.content-wrapper section {
    margin: 0;
    padding: 0;
}

.article-section {
    margin: 0;
    padding: 0;
}

/* Table of Contents */
.toc-container {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.toc-container h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

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

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    color: var(--grass-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
}

.toc-list a:hover {
    color: var(--blue);
    border-left-color: var(--grass-green);
}

.content-wrapper h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    margin-top: 0;
    font-weight: 800;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--grass-green);
    display: inline-block;
    scroll-margin-top: 100px;
}

.content-wrapper h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-weight: 700;
    scroll-margin-top: 100px;
}

.content-wrapper h3:first-child {
    margin-top: 0;
}

.content-wrapper p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.content-wrapper p:last-child {
    margin-bottom: 0;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.content-wrapper li {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
    /* margin-bottom: 0.5rem; */
    list-style: outside;
}

.content-wrapper li:last-child {
    margin-bottom: 0;
}

.content-wrapper li strong {
    color: var(--text-dark);
    font-weight: 700;
}

.code-block {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border-left: 4px solid var(--grass-green);
    box-shadow: var(--shadow-sm);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.recommendation-box {
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.08), rgba(59, 130, 246, 0.08));
    border-left: 5px solid var(--grass-green);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.recommendation-box h3 {
    color: var(--grass-green);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
}

.recommendation-box ul {
    margin-bottom: 0;
}

.recommendation-box li {
    margin-bottom: 0.6rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
}

.comparison-table th,
.comparison-table td {
    padding: 1.1rem 1.4rem;
    text-align: left;
    font-size: 0.95rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
    background: var(--light-bg);
}

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

section.article-cta {
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
}

section.article-cta h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 800;
}

section.article-cta p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-section {
    background: var(--light-bg);
    padding: 1.75rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sidebar-section:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-weight: 700;
    margin-top: 0;
}

.author-bio {
    text-align: center;
}

.author-avatar-large {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--grass-green), var(--blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.author-bio h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.author-bio p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.related-articles {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* .related-articles li {
    margin-bottom: 0.9rem;
} */

.related-articles li:last-child {
    margin-bottom: 0;
}

.related-articles a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: block;
    padding: 0.5rem 0;
    border-left: 3px solid transparent;
    padding-left: 0.75rem;
}

.related-articles a:hover {
    color: var(--grass-green);
    border-left-color: var(--grass-green);
}

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

.tag {
    background: var(--white);
    color: var(--grass-green);
    padding: 0.5rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--grass-green);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--grass-green);
    color: var(--white);
}

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

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 60px 20px 40px;
    }
    
    .article-header h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .article-category {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .article-content {
        padding: 50px 20px;
    }
    
    .content-wrapper {
        gap: 1.5rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        margin-top: 0;
    }
    
    .content-wrapper p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 0.9rem;
    }
    
    .content-wrapper ul,
    .content-wrapper ol {
        margin-bottom: 1rem;
        padding-left: 1.75rem;
    }
    
    .content-wrapper li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .code-block {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    
    .code-block code {
        font-size: 0.8rem;
    }
    
    .recommendation-box {
        padding: 1.5rem;
        margin: 1.25rem 0;
    }
    
    .recommendation-box h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
        margin: 1.25rem 0;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem 1rem;
    }
    
    .article-cta {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .article-cta h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .article-cta p {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 40px 15px 30px;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .author-name {
        font-size: 0.9rem;
    }
    
    .article-date {
        font-size: 0.85rem;
    }
    
    .article-content {
        padding: 30px 15px;
    }
    
    .content-wrapper h2 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.1rem;
        margin-top: 0;
    }
    
    .content-wrapper p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.8rem;
    }
    
    .content-wrapper ul,
    .content-wrapper ol {
        padding-left: 1.5rem;
        margin-bottom: 0.9rem;
    }
    
    .content-wrapper li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .code-block {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .code-block code {
        font-size: 0.75rem;
    }
    
    .recommendation-box {
        padding: 1.25rem;
        margin: 1rem 0;
        border-radius: 8px;
    }
    
    .recommendation-box h3 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }
    
    .comparison-table {
        font-size: 0.75rem;
        margin: 1rem 0;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.8rem;
    }
    
    .article-cta {
        padding: 1.5rem;
        margin-top: 1.5rem;
        border-radius: 15px;
    }
    
    .article-cta h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .article-cta p {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }
    
    .sidebar-section {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .sidebar-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .author-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .author-bio h4 {
        font-size: 0.95rem;
    }
    
    .author-bio p {
        font-size: 0.85rem;
    }
    
    .related-articles a {
        font-size: 0.9rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}
