/* ============================================================
   BLOG / PET CARE GUIDES STYLES (Page 16)
   ============================================================ */

.m-blog-page, .m-blog-detail-page {
    background: #FFFFFF;
    min-height: 100vh;
    padding-bottom: 90px;
}

/* -----------------------------------
   BLOG LIST PAGE
   ----------------------------------- */

.m-blog-top-bar {
    height: 52px;
    background: white;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #F3F4F6;
}

.m-blog-top-bar .back-btn {
    color: #111827;
    display: flex;
    align-items: center;
}
.m-blog-top-bar .back-btn svg { width: 22px; height: 22px; }

.m-blog-top-bar .title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.m-blog-top-bar .search-btn {
    color: #374151;
    background: none; border: none; padding: 0;
}
.m-blog-top-bar .search-btn svg { width: 22px; height: 22px; }

/* Featured Card */
.m-featured-card {
    margin: 68px 16px 16px; /* 52 + 16 */
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.m-featured-card .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m-featured-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.75) 100%);
}

.m-featured-card .content {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
}

.m-featured-card .cat-pill {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
}

.m-featured-card .post-title {
    font-size: 17px;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.m-featured-card .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.m-featured-card .meta-row svg {
    width: 12px; height: 12px;
    color: rgba(255,255,255,0.8);
}

.m-featured-card .meta-row span, .m-featured-card .excerpt {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
}

.m-featured-card .excerpt { margin-top: 4px; }

/* Category Chips */
.m-blog-cats-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 16px 12px;
}
.m-blog-cats-scroll::-webkit-scrollbar { display: none; }

.m-blog-cats-scroll .cat-chip {
    height: 32px;
    padding: 0 14px;
    border-radius: 20px;
    font-size: 13px;
    flex-shrink: 0;
    border: 1.5px solid #E5E7EB;
    display: flex;
    align-items: center;
    background: white;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.m-blog-cats-scroll .cat-chip.active {
    background: #7C3AED;
    color: white;
    border-color: #7C3AED;
}

/* Post List */
.m-blog-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
}

.m-post-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    border-radius: 14px;
    border: 1px solid #F3F4F6;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
}

.m-post-card .post-img {
    width: 88px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.m-post-card .post-info { flex: 1; overflow: hidden; }

.m-post-card .meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-post-card .cat-pill {
    background: #F5F3FF;
    color: #7C3AED;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.m-post-card .read-time {
    font-size: 11px;
    color: #9CA3AF;
}

.m-post-card .post-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-post-card .excerpt {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-posts {
    text-align: center;
    padding: 40px;
    color: #6B7280;
    font-size: 14px;
}

/* Pagination */
.m-pagination-wrapper { padding: 16px; }
.btn-load-more {
    width: 100%; height: 48px; border-radius: 12px;
    border: 2px solid #7C3AED; color: #7C3AED;
    background: transparent; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* -----------------------------------
   BLOG DETAIL PAGE
   ----------------------------------- */

.m-bd-top-bar {
    height: 52px;
    background: white;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #F3F4F6;
}

.m-bd-top-bar .left-section { display: flex; align-items: center; gap: 8px; }
.m-bd-top-bar .back-btn { color: #111827; display: flex; align-items: center; }
.m-bd-top-bar .back-btn svg { width: 22px; height: 22px; }
.m-bd-top-bar .title { font-size: 17px; font-weight: 700; color: #111827; }
.m-bd-top-bar .share-btn { color: #374151; background: none; border: none; padding: 0;}
.m-bd-top-bar .share-btn svg { width: 22px; height: 22px; }

.m-bd-hero {
    margin-top: 52px;
    height: 220px;
    width: 100%;
}
.m-bd-hero img { width: 100%; height: 100%; object-fit: cover; }

.m-bd-meta { padding: 16px; }
.m-bd-meta .cat-pill {
    background: #F5F3FF; color: #7C3AED; border-radius: 6px;
    padding: 4px 10px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; display: inline-block; margin-bottom: 12px;
}
.m-bd-meta .post-title {
    font-size: 22px; font-weight: 800; color: #111827; margin: 0 0 12px; line-height: 1.3;
}
.m-bd-meta .author-row { font-size: 12px; color: #9CA3AF; }

.m-bd-content { padding: 0 16px 24px; }
.m-bd-content p { font-size: 14px; line-height: 1.7; color: #374151; margin-bottom: 16px; }
.m-bd-content h2 { font-size: 18px; font-weight: 800; color: #111827; margin: 24px 0 12px; }
.m-bd-content h3 { font-size: 16px; font-weight: 700; color: #111827; margin: 20px 0 10px; }
.m-bd-content img { width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.m-bd-content a { color: #7C3AED; text-decoration: underline; }
.m-bd-content ul, .m-bd-content ol { padding-left: 20px; font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 16px; }
.m-bd-content ul li, .m-bd-content ol li { margin-bottom: 6px; }
.m-bd-content blockquote {
    border-left: 4px solid #7C3AED; padding-left: 14px; margin: 20px 0;
    color: #6B7280; font-style: italic; font-size: 15px; background: #F9FAFB; padding: 16px; border-radius: 0 8px 8px 0;
}

.m-bd-related { padding: 24px 0; border-top: 1px solid #F3F4F6; }
.m-bd-related .section-title { font-size: 18px; font-weight: 800; color: #111827; padding: 0 16px 12px; margin: 0; }
.m-bd-related .related-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.m-bd-related .related-scroll::-webkit-scrollbar { display: none; }
.related-card { width: 160px; flex-shrink: 0; cursor: pointer; }
.related-card .rel-img { width: 100%; height: 100px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.related-card .rel-title { font-size: 13px; font-weight: 700; color: #111827; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
