/* ===========================================
   Blog Styles - Pregnancy Theme
   =========================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Jua&family=Gaegu:wght@400;700&display=swap');

:root {
    --primary-color: #E91E8C;
    --primary-light: #FCE4EC;
    --primary-dark: #AD1457;
    --secondary-color: #9C27B0;
    --secondary-light: #F3E5F5;
    --accent-pink: #FF7A8A;
    --accent-peach: #FFAB91;
    --bg-color: #FFF9F5;
    --card-bg: #FFFFFF;
    --text-main: #5D4E4E;
    --text-sub: #9B8A8A;
    --text-light: #C4B5B5;
    --border-color: #FFE4E8;
    --shadow-soft: 0 8px 30px rgba(255, 158, 170, 0.12);
    --shadow-hover: 0 15px 40px rgba(255, 158, 170, 0.2);
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 10px;
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-title: 'Jua', 'Pretendard', sans-serif;
    --font-handwriting: 'Gaegu', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    background-image:
        radial-gradient(circle, var(--primary-light) 1.5px, transparent 1.5px),
        radial-gradient(circle, var(--secondary-light) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px;
    background-position: 0 0, 25px 25px;
    -webkit-font-smoothing: antialiased;
}

/* ===========================================
   Blog Layout
   =========================================== */
.blog-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}

/* ===========================================
   Blog Header / Nav
   =========================================== */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 10px;
}

.blog-nav-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.blog-nav-home:hover { opacity: 0.7; }

.blog-nav-links {
    display: flex;
    gap: 6px;
}

.blog-nav-links a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.blog-nav-links a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================================
   Breadcrumb
   =========================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-sub);
    text-decoration: none;
}

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

.breadcrumb span { color: var(--text-light); }

/* ===========================================
   Blog Article Card
   =========================================== */
.blog-article {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

/* Hero Illustration */
.blog-hero {
    position: relative;
    padding: 50px 40px 40px;
    text-align: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.9;
    z-index: 0;
}

.blog-hero > * { position: relative; z-index: 1; }

.blog-hero-emoji {
    font-size: 4.5rem;
    margin-bottom: 16px;
    display: block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.blog-category {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.blog-hero h1 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.12);
    word-break: keep-all;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
}

/* ===========================================
   Article Content
   =========================================== */
.blog-content {
    padding: 40px 36px 44px;
}

@media (max-width: 600px) {
    .blog-content { padding: 28px 20px 32px; }
    .blog-hero { padding: 36px 20px 32px; }
    .blog-hero h1 { font-size: 1.5rem; }
}

/* Intro paragraph */
.blog-content > p:first-child {
    font-size: 1.08rem;
    color: var(--text-main);
    line-height: 1.9;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--border-color);
    margin-bottom: 28px;
}

.blog-content p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.85;
    word-break: keep-all;
}

.blog-content strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* Headings */
.blog-content h2 {
    font-family: var(--font-title);
    font-size: 1.45rem;
    color: var(--primary-color);
    margin-top: 44px;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.4;
}

.blog-content h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 14px;
}

/* Lists */
.blog-content ul, .blog-content ol {
    margin: 16px 0 24px 0;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li, .blog-content ol li {
    position: relative;
    padding: 10px 16px 10px 36px;
    margin-bottom: 8px;
    background: var(--bg-color);
    border-radius: var(--radius-xs);
    font-size: 0.95rem;
    line-height: 1.7;
}

.blog-content ul li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 17px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    border-radius: 50%;
}

.blog-content ol {
    counter-reset: blog-counter;
}

.blog-content ol li {
    counter-increment: blog-counter;
}

.blog-content ol li::before {
    content: counter(blog-counter);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    border-radius: 50%;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blockquote - for quotes or tips */
.blog-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFF0F5 0%, #F8F0FF 100%);
    border-left: 4px solid var(--accent-pink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: normal;
    color: var(--text-main);
}

.blog-content blockquote p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Links */
.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    transition: border-color 0.2s;
}

.blog-content a:hover {
    border-color: var(--primary-color);
}

/* Horizontal rule */
.blog-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 36px 0;
}

/* ===========================================
   Illustration Cards (inline cute images)
   =========================================== */
.illust-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px 0;
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: var(--card-bg);
}

.illust-card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.illust-card-text {
    flex: 1;
}

.illust-card-text strong {
    display: block;
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.illust-card-text span {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .illust-card { flex-direction: column; text-align: center; }
    .illust-card-text strong { margin-top: 4px; }
}

/* ===========================================
   Tip Box
   =========================================== */
.tip-box {
    margin: 28px 0;
    padding: 22px 24px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: var(--radius-sm);
    border: 1.5px solid #C8E6C9;
}

.tip-box-title {
    font-family: var(--font-title);
    font-size: 1rem;
    color: #2E7D32;
    margin-bottom: 8px;
}

.tip-box p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #33691E;
}

/* Warning Box */
.warning-box {
    margin: 28px 0;
    padding: 22px 24px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
    border-radius: var(--radius-sm);
    border: 1.5px solid #FFE0B2;
}

.warning-box-title {
    font-family: var(--font-title);
    font-size: 1rem;
    color: #E65100;
    margin-bottom: 8px;
}

.warning-box p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: #BF360C;
}

/* ===========================================
   CTA Section (bottom of article)
   =========================================== */
.blog-cta {
    margin: 36px 0 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-sm);
    text-align: center;
    color: #fff;
}

.blog-cta h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #fff;
}

.blog-cta p {
    font-size: 0.92rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

.blog-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===========================================
   Tags
   =========================================== */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px dashed var(--border-color);
}

.blog-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-sub);
    text-decoration: none;
    transition: all 0.2s;
}

.blog-tags a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===========================================
   Related Posts
   =========================================== */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 500px) {
    .related-grid { grid-template-columns: 1fr; }
}

.related-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.related-card-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.related-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: keep-all;
}

/* ===========================================
   Blog Footer
   =========================================== */
.blog-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 0.82rem;
}

.blog-footer a {
    color: var(--text-sub);
    text-decoration: none;
    margin: 0 12px;
}

.blog-footer a:hover { color: var(--primary-color); }

/* ===========================================
   Blog List Page
   =========================================== */
.blog-list-header {
    text-align: center;
    padding: 40px 0 30px;
}

.blog-list-header h1 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.blog-list-header p {
    color: var(--text-sub);
    font-size: 1rem;
}

/* Category Filter */
.blog-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.blog-filter-btn {
    padding: 8px 18px;
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Blog Card List */
.blog-card-list {
    display: grid;
    gap: 20px;
}

.blog-card {
    display: flex;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.blog-card-thumb {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

@media (max-width: 500px) {
    .blog-card { flex-direction: column; }
    .blog-card-thumb {
        width: 100%;
        height: 100px;
        font-size: 2.5rem;
    }
}

.blog-card-body {
    flex: 1;
    padding: 20px 24px;
}

.blog-card-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.blog-card-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.35;
    word-break: keep-all;
}

.blog-card-desc {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================
   Scroll to Top
   =========================================== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.4);
}
