/* =================================
   Article Page Styles
   ================================= */

.article {
    background-color: var(--bg-light);
}

.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a {
    color: white;
    text-decoration: underline;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

.article-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.article-category {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.article-date,
.article-reading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.article-body {
    padding: 60px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.article-main {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 3rem;
}

.article-content .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.article-content h2 {
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

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

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

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

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.info-box {
    background-color: #eff6ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box h3,
.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-box p {
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

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

.info-box .checklist {
    list-style: none;
    padding-left: 0;
}

.info-box .checklist li {
    padding-left: 1.5rem;
    position: relative;
}

.info-box .checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-box h3,
.warning-box h4 {
    color: var(--warning-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.warning-box p {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.article-tags {
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-tags strong {
    color: var(--text-color);
}

.article-tags a {
    display: inline-block;
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-share {
    padding: 1.5rem 3rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-share strong {
    color: var(--text-color);
}

.share-btn {
    padding: 8px 16px;
    background-color: var(--bg-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.sidebar-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.related-articles li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

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

.related-articles a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.cta-box {
    background-color: #eff6ff;
    text-align: center;
}

.cta-box h3 {
    color: var(--primary-color);
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.subscribe-form input {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
}

.subscribe-form button {
    padding: 10px 14px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-featured-image {
        height: 250px;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
    }
    
    .article-tags,
    .article-share {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 1.5rem 1rem;
    }
}
