/* =========================================================================
 * Storefront blog styles — listings, single post, related, share, sidebar
 * Designed to slot in next to the existing shop/listing pages.
 * ========================================================================= */

.blog-listing-head {
    margin-bottom: 24px;
    border-bottom: 1px solid #e4e7ed;
    padding-bottom: 14px;
}
.blog-listing-title { font-size: 28px; font-weight: 700; margin: 0 0 4px; color: #1a1a2e; }
.blog-listing-count { color: #6c757d; font-size: 14px; margin: 0; }
.blog-listing-desc  { color: #4b5563; font-size: 15px; margin: 0 0 6px; max-width: 60ch; }

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.blog-grid-magazine { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Featured */
.blog-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}
.blog-featured-image {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    overflow: hidden;
}
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-featured-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; color: #9ca3af; }
.blog-featured-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; align-self: center; }
.blog-featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.blog-featured-categories { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-featured-category, .blog-card-category {
    color: #d10024;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.blog-featured-category:hover, .blog-card-category:hover { text-decoration: underline; }
.blog-featured-title { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 4px 0; }
.blog-featured-title a { color: #1a1a2e; text-decoration: none; }
.blog-featured-title a:hover { color: #d10024; }
.blog-featured-excerpt { color: #4b5563; font-size: 15px; line-height: 1.55; margin: 0; }
.blog-featured-meta { display: flex; gap: 8px; align-items: center; color: #6c757d; font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
    .blog-featured { grid-template-columns: 1fr; }
}

/* Post card */
.blog-card {
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); }
.blog-card-image { display: block; aspect-ratio: 16 / 9; background: #f3f4f6; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #9ca3af; }
.blog-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.blog-card-categories { display: flex; gap: 6px; flex-wrap: wrap; }
.blog-card-title { font-size: 17px; line-height: 1.35; font-weight: 700; margin: 4px 0; }
.blog-card-title a { color: #1a1a2e; text-decoration: none; }
.blog-card-title a:hover { color: #d10024; }
.blog-card-excerpt { color: #4b5563; font-size: 14px; line-height: 1.55; margin: 0; flex: 1; }
.blog-card-meta { color: #6c757d; font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.blog-card-dot { opacity: 0.5; }

/* Sidebar widgets */
.blog-sidebar { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.blog-side-widget {
    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 18px 20px;
}
.blog-side-widget h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: #1a1a2e; margin: 0 0 12px; }
.blog-side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.blog-side-list a { color: #374151; text-decoration: none; font-size: 14px; }
.blog-side-list a:hover { color: #d10024; }
.blog-rss-hint { font-size: 13px; color: #6c757d; margin: 0; }
.blog-rss-hint a { color: #d10024; text-decoration: none; font-weight: 600; }
.blog-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tag-chip {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.12s ease, color 0.12s ease;
}
.blog-tag-chip:hover { background: #d10024; color: #fff; }
.blog-recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.blog-recent-list li { display: flex; justify-content: space-between; gap: 8px; }
.blog-recent-list a { color: #1a1a2e; text-decoration: none; font-size: 13px; line-height: 1.4; }
.blog-recent-list a:hover { color: #d10024; }
.blog-recent-date { color: #9ca3af; font-size: 11px; white-space: nowrap; }

/* Single post */
.blog-single-main { padding-top: 4px; }
.blog-single-header { margin-bottom: 24px; }
.blog-single-categories { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-single-categories a {
    color: #d10024;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.blog-single-title { font-size: 34px; line-height: 1.2; font-weight: 800; margin: 0 0 12px; color: #1a1a2e; }
.blog-single-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #6c757d; font-size: 13px; }
.blog-single-image { margin: 0 0 28px; border-radius: 12px; overflow: hidden; }
.blog-single-image img { width: 100%; height: auto; display: block; }
.blog-single-content {
    font-size: 17px;
    line-height: 1.75;
    color: #1f2937;
    word-wrap: break-word;
}
.blog-single-content h2 { font-size: 24px; font-weight: 700; margin: 28px 0 12px; color: #1a1a2e; }
.blog-single-content h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; color: #1a1a2e; }
.blog-single-content p  { margin: 0 0 18px; }
.blog-single-content ul, .blog-single-content ol { margin: 0 0 18px; padding-left: 22px; }
.blog-single-content li { margin-bottom: 6px; }
.blog-single-content a  { color: #d10024; text-decoration: none; border-bottom: 1px solid rgba(209, 0, 36, 0.3); }
.blog-single-content a:hover { border-bottom-color: #d10024; }
.blog-single-content blockquote {
    border-left: 3px solid #d10024;
    background: #fff5f6;
    padding: 12px 18px;
    margin: 18px 0;
    color: #4b5563;
    border-radius: 0 8px 8px 0;
}
.blog-single-content code, .blog-single-content pre {
    background: #f3f4f6;
    border-radius: 6px;
    padding: 1px 6px;
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 14px;
}
.blog-single-content pre {
    display: block;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 18px 0;
}
.blog-single-content pre code { padding: 0; background: transparent; }
.blog-single-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }

.blog-single-tags { margin: 28px 0 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.blog-single-tags-label { font-weight: 600; color: #6c757d; font-size: 13px; margin-right: 4px; }
.blog-single-author { margin: 28px 0; }
.blog-single-share-top, .blog-single-share-bottom { margin: 18px 0; }

.blog-author-box {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
}
.blog-author-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #d10024;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.blog-author-meta h4 { margin: 0 0 2px; font-size: 16px; }
.blog-author-meta p  { margin: 0; color: #6c757d; font-size: 13px; }

/* Share */
.blog-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-share-label { font-size: 13px; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: 0.4px; margin-right: 4px; }
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.blog-share-btn:hover { background: #1a1a2e; color: #fff; transform: translateY(-1px); }
.blog-share-copy.copied { background: #16a34a; color: #fff; }

/* Related */
.blog-related { margin: 36px 0 8px; }
.blog-related-heading { font-size: 22px; font-weight: 700; margin: 0 0 18px; color: #1a1a2e; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .blog-related-grid { grid-template-columns: 1fr; } }

/* Comments */
.blog-comments { margin: 36px 0 12px; }
.blog-comments-heading { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: #1a1a2e; }
.blog-comments-placeholder {
    background: #f8f9fa;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
.blog-comments-placeholder i { display: block; font-size: 28px; margin-bottom: 6px; color: #9ca3af; }

/* Sidebar of single post */
.blog-single-sidebar { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
