/* General Blog Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl);
}

.blog-header {
    text-align: center;
    padding: var(--space-4xl) 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.blog-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-lg);
}

.blog-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl) auto;
}

.blog-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

@media (min-width: 992px) {
    .blog-main-content {
        grid-template-columns: 3fr 1fr;
    }
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

/* Sidebar */
.sidebar {
    background-color: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.sidebar-widget {
    margin-bottom: var(--space-2xl);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary-color);
}


/* --- article_list.css --- */
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-title a {
    text-decoration: none;
    color: var(--text-primary);
}

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

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-tags {
    margin-top: 15px;
}

.tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 8px;
    margin-bottom: 5px;
}

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


/* --- article_detail.css --- */

.article-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Article Header */
.article-header {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-md);
}

/* Featured Image */
.featured-image-container {
    margin-bottom: var(--space-lg);
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* Article Body */
.article-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.article-content-main {
    line-height: 1.7;
}

.article-content-main h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-content-main p {
    margin-bottom: var(--space-md);
}

.video-container {
    margin: var(--space-lg) 0;
}

/* Article Footer */
.article-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.article-tags h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-md);
}

/* Comments Section */
.comments-section {
    margin-top: var(--space-xl);
}

.comments-section h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-lg);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.comment {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.comment-author {
    font-weight: var(--font-bold);
}

.comment-date {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.comment-form-container h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-md);
}

.comment-form .form-group {
    margin-bottom: var(--space-md);
}


.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sidebar-list a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.sidebar-list a:hover {
    color: var(--primary-color);
}

.sidebar-list p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Related Articles */
.related-articles {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: var(--space-lg);
}


/* --- article_form.css --- */

.article-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}


/* --- archive.css --- */

.archive-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.archive-header h1 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.archive-header p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.year-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.year-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.month-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.month-item:last-child {
    border-bottom: none;
}

.month-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}

.month-link:hover {
    color: var(--primary-color);
}

.article-count {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}



/* --- category_detail.css & tag_detail.css --- */

.category-header, .tag-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-header h1, .tag-header h1 {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-header p, .tag-header p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.article-image {
    height: 200px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    position: relative;
    overflow: hidden;
}

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

.article-content {
    padding: 25px;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


