/* Blog Detail Page Specific Styles */

/* Article Content */
.section-article-detail {
    padding: var(--spacing-xl) 0;
}

.article-detail-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

.article-detail-content {
    background: var(--color-bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-detail-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.article-detail-image {
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.article-body p {
    margin-bottom: var(--spacing-md);
}

.article-body h2 {
    font-size: 1.5rem;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-sm);
}

.article-intro {
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

.article-content-with-image {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    align-items: flex-start;
}

.article-content-with-image.article-image-left {
    flex-direction: row-reverse;
}

.article-side-image {
    flex: 0 0 300px;
}

.article-side-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-card {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary-light);
    color: var(--color-text-primary);
}

.sidebar-reading-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.sidebar-reading-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-reading-image {
    flex: 0 0 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar-reading-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-reading-title {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.sidebar-reading-title a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-reading-title a:hover {
    color: var(--color-primary);
}

.sidebar-reading-date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.sidebar-product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.sidebar-product-item {
    text-align: center;
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform 0.2s;
}

.sidebar-product-item:hover {
    transform: translateY(-3px);
    color: var(--color-primary);
}

.sidebar-product-image {
    background: var(--color-bg-gray);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.sidebar-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-product-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Related Articles */
.related-articles-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.related-article-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.related-article-image {
    flex: 0 0 120px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.related-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-article-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.related-article-title a {
    color: var(--color-text-primary);
    text-decoration: none;
}

.related-article-title a:hover {
    color: var(--color-primary);
}

.related-article-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .article-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .article-content-with-image {
        flex-direction: column !important;
    }

    .article-side-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}