/* Blog-specific Styles */

/* Blog Header */
.blog-header {
    padding: 15rem 0 8rem;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="500" viewBox="0 0 1600 500"><rect width="1600" height="500" fill="%23dc143c"/><rect y="250" width="1600" height="250" fill="%23ffffff"/></svg>') center/cover no-repeat;
    text-align: center;
    color: var(--white-color);
}

.blog-header h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.blog-header p {
    font-size: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
    gap: 4rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Blog Card */
.blog-card {
    background-color: var(--white-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.blog-card-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image svg {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2.5rem;
}

.blog-card-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.blog-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.blog-card p {
    margin-bottom: 2.5rem;
    color: var(--text-light-color);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    font-size: 1.4rem;
    color: var(--text-light-color);
}

/* Article Header */
.article-header {
    padding: 15rem 0 5rem;
    text-align: center;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
    font-size: 1.6rem;
    color: var(--text-light-color);
}

.article-image {
    max-width: 80rem;
    margin: 0 auto;
}

.article-image svg {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}

/* Article Content */
.article-text {
    max-width: 80rem;
    margin: 0 auto 6rem;
}

.article-text .lead {
    font-size: 2rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 4rem;
}

.article-text h2 {
    font-size: 3rem;
    margin-top: 5rem;
    margin-bottom: 2.5rem;
}

.article-text h3 {
    font-size: 2.4rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.article-text h4 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article-text ul, .article-text ol {
    margin-bottom: 3rem;
    padding-left: 2.5rem;
}

.article-text li {
    margin-bottom: 1rem;
}

.article-quote {
    margin: 4rem 0;
    padding: 3rem;
    background-color: var(--primary-color-light);
    border-left: 0.5rem solid var(--primary-color);
    border-radius: 0.5rem;
}

.article-quote blockquote {
    font-size: 2rem;
    font-style: italic;
    line-height: 1.6;
}

.recipe-box, .tips-box, .tech-details-box, .customs-box {
    margin: 4rem 0;
    padding: 3rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
}

.recipe-box h4, .tips-box h4, .tech-details-box h4, .customs-box h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.recipe-ingredients {
    margin-bottom: 3rem;
}

.recipe-instructions ol {
    padding-left: 2.5rem;
}

.recipe-instructions li {
    margin-bottom: 1.5rem;
}

.article-tags {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.article-tags span {
    font-weight: 600;
}

.article-tags a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    transition: var(--transition);
}

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

/* Author Box */
.article-author-box {
    max-width: 80rem;
    margin: 0 auto 6rem;
    display: flex;
    align-items: center;
    padding: 3rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
}

.author-avatar {
    flex: 0 0 10rem;
    margin-right: 2.5rem;
}

.author-info h3 {
    margin-bottom: 1rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--text-light-color);
}

/* Related Articles */
.article-related {
    max-width: 80rem;
    margin: 0 auto 6rem;
}

.article-related h3 {
    margin-bottom: 3rem;
    text-align: center;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.article-related-item {
    background-color: var(--white-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.article-related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-related-item a {
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.article-related-item svg {
    width: 100%;
    height: auto;
}

.article-related-item h4 {
    padding: 1.5rem;
    margin-bottom: 0;
}

/* Comments */
.article-comments {
    max-width: 80rem;
    margin: 0 auto;
}

.article-comments h3 {
    margin-bottom: 3rem;
}

.comment {
    display: flex;
    margin-bottom: 3rem;
}

.comment-avatar {
    flex: 0 0 5rem;
    margin-right: 2rem;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    color: var(--text-light-color);
}

.comment-content p {
    margin-bottom: 0;
}

.comment-form {
    margin-top: 5rem;
}

.comment-form h4 {
    margin-bottom: 2.5rem;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-header h1 {
        font-size: 3.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .article-related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-header {
        padding-top: 12rem;
    }
    
    .article-header {
        padding-top: 12rem;
    }
    
    .article-text .lead {
        font-size: 1.8rem;
    }
    
    .article-quote blockquote {
        font-size: 1.8rem;
    }
    
    .recipe-box, .tips-box, .tech-details-box, .customs-box {
        padding: 2rem;
    }
}
