/* =================================================
   blog.css — Wamiga Blog Styles
   Used by: blog/index.html + all blog post pages
   ================================================= */

:root {
    --pink:        #E91E63;
    --pink-rose:   #F48FB1;
    --pink-light:  #FCE4EC;
    --navy:        #0F3460;
    --gray-100:    #F8F9FA;
    --gray-200:    #E9ECEF;
    --gray-600:    #6C757D;
    --navy-soft:   #1a4a7a;
    --white:       #FFFFFF;
    --article-w:   760px;
    --site-w:      1200px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    background: var(--gray-100);
    line-height: 1.7;
}

a { transition: color 0.2s; }

/* ─────────────────────────────────────────────
   READING PROGRESS BAR
───────────────────────────────────────────── */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--pink-rose));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.blog-nav {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 13px 0;
    position: sticky;
    top: 3px; /* offset for progress bar */
    z-index: 100;
}

.blog-nav .nav-inner {
    max-width: var(--site-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.blog-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    color: var(--pink);
    text-decoration: none;
    flex-shrink: 0;
}

.blog-nav .logo img { width: 34px; height: 34px; border-radius: 8px; }

.blog-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.blog-nav .nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.blog-nav .nav-links a:hover { color: var(--pink); }

.blog-nav .btn-nav-download {
    background: linear-gradient(135deg, var(--pink), var(--pink-rose));
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px !important;
}

/* ─────────────────────────────────────────────
   CONTAINERS
───────────────────────────────────────────── */
.container { max-width: var(--site-w); margin: 0 auto; padding: 0 24px; }
.article-container { max-width: var(--article-w); margin: 0 auto; padding: 0 24px; }

/* ─────────────────────────────────────────────
   AD UNIT PLACEHOLDERS
   Replace .ad-placeholder content with AdSense
   <ins> tag when approved. Keep .ad-unit wrapper.
───────────────────────────────────────────── */
.ad-unit {
    margin: 36px 0;
    text-align: center;
}

.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gray-100);
    border: 1px dashed var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    color: var(--gray-600);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.ad-unit.ad-banner .ad-placeholder  { min-height: 90px; }
.ad-unit.ad-rect .ad-placeholder    { min-height: 280px; }
.ad-unit.ad-listing .ad-placeholder { min-height: 100px; }

/* ─────────────────────────────────────────────
   BLOG LISTING — HERO
───────────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #8B1A4A 60%, var(--pink) 100%);
    padding: 64px 0 48px;
    text-align: center;
    color: var(--white);
}

.blog-hero h1 { font-size: 44px; font-weight: 700; margin-bottom: 12px; line-height: 1.25; }
.blog-hero p  { font-size: 17px; opacity: 0.88; max-width: 520px; margin: 0 auto 20px; }

.blog-hero .pill {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

/* ─────────────────────────────────────────────
   CATEGORY TABS
───────────────────────────────────────────── */
.category-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 60px;
    z-index: 99;
}

.tabs-inner {
    max-width: var(--site-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 0;
}

.tabs-inner::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 15px 18px;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover { color: var(--pink); }
.tab-btn.active { color: var(--pink); border-bottom-color: var(--pink); font-weight: 600; }

/* ─────────────────────────────────────────────
   POST GRID (LISTING PAGE)
───────────────────────────────────────────── */
.posts-section { padding: 40px 0 80px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ─────────────────────────────────────────────
   POST CARD
───────────────────────────────────────────── */
.post-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(233,30,99,0.13);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--pink-light), var(--pink-rose));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.card-image .icon-placeholder {
    font-size: 52px;
    color: var(--pink);
    opacity: 0.35;
}

.card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.category-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--pink-light);
    color: var(--pink);
}

.read-time {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-body h2 {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-body h2 a { color: inherit; text-decoration: none; }
.card-body h2 a:hover { color: var(--pink); }

.card-body p {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

.post-date { font-size: 11px; color: var(--gray-600); }

.read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--pink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.read-more:hover { gap: 8px; }

/* Featured card (wide, first post) */
.post-card.featured {
    grid-column: span 3;
    flex-direction: row;
}

.post-card.featured .card-image { width: 380px; height: auto; min-height: 260px; flex-shrink: 0; }
.post-card.featured .card-body  { padding: 32px; }
.post-card.featured h2          { font-size: 22px; }

/* ─────────────────────────────────────────────
   ARTICLE PAGE — HERO AREA
───────────────────────────────────────────── */
.article-top {
    background: var(--white);
    padding: 40px 0 0;
    border-bottom: 1px solid var(--gray-200);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--gray-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb .sep { color: var(--gray-200); font-size: 16px; }
.breadcrumb .current { color: var(--navy); font-weight: 500; }

/* Article header */
.article-header { padding-bottom: 28px; }

.article-header .category-badge { display: inline-block; margin-bottom: 14px; }

.article-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 18px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-meta i    { color: var(--pink); }

/* Share row */
.share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
}

.share-label { font-size: 12px; font-weight: 600; color: var(--gray-600); margin-right: 4px; }

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s;
}

.share-btn:hover { transform: translateY(-2px); }
.share-btn.twitter  { background: #e8f5fd; color: #1da1f2; }
.share-btn.facebook { background: #e8eef8; color: #1877f2; }
.share-btn.whatsapp { background: #e8f8ef; color: #25d366; }
.share-btn.copy     { background: var(--gray-100); color: var(--navy); }

/* ─────────────────────────────────────────────
   FEATURED IMAGE
───────────────────────────────────────────── */
.featured-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-rose) 60%, var(--pink) 100%);
    overflow: hidden;
}

.featured-image .article-container {
    max-width: 100%;
    padding: 0;
    height: 100%;
}

.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-image .feat-icon { font-size: 90px; color: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────────
   ARTICLE BODY
───────────────────────────────────────────── */
.article-body { padding: 36px 0 60px; }

/* Table of contents */
.toc-box {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 30px;
}

.toc-toggle {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    list-style: none;
}

.toc-toggle::-webkit-details-marker { display: none; }
.toc-box[open] .toc-toggle::before { content: '▼ '; font-size: 10px; }
.toc-box:not([open]) .toc-toggle::before { content: '▶ '; font-size: 10px; }

.toc-list { margin: 0 0 0 16px; display: flex; flex-direction: column; gap: 6px; }

.toc-list a {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
}

.toc-list a:hover { color: var(--pink); }

/* Article content typography */
.article-content {
    font-size: 17px;
    line-height: 1.85;
    color: #2d3748;
}

.article-content h2 {
    font-size: 25px;
    font-weight: 700;
    color: var(--navy);
    margin: 44px 0 16px;
    padding-top: 10px;
    border-top: 2px solid var(--pink-light);
    line-height: 1.3;
}

.article-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    margin: 28px 0 12px;
}

.article-content p  { margin-bottom: 20px; }

.article-content ul,
.article-content ol { margin: 0 0 20px 26px; }
.article-content li { margin-bottom: 8px; }

.article-content a  { color: var(--pink); text-underline-offset: 3px; }

.article-content strong { color: var(--navy); }

.article-content blockquote {
    border-left: 4px solid var(--pink);
    background: var(--pink-light);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
}

.info-box {
    background: var(--pink-light);
    border-left: 4px solid var(--pink);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.info-box p { margin: 0; color: var(--navy); font-weight: 500; font-size: 15px; }

/* Wamiga in-article CTA */
.wamiga-cta {
    background: linear-gradient(135deg, var(--navy), #8B1A4A, var(--pink));
    border-radius: 16px;
    padding: 26px 28px;
    color: var(--white);
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon { font-size: 44px; flex-shrink: 0; }

.wamiga-cta h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; color: var(--white); }
.wamiga-cta p  { font-size: 13.5px; opacity: 0.9; margin-bottom: 14px; color: var(--white); }

.cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.cta-btn:hover { transform: translateY(-2px); }
.cta-btn.ios,
.cta-btn.apple   { background: var(--white); color: var(--navy); }
.cta-btn.android,
.cta-btn.google  { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }

/* Tags */
.tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 50px;
    background: var(--pink-light);
    color: var(--pink);
    font-weight: 500;
    text-decoration: none;
}

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

/* FAQ in article */
.faq-in-article { margin-top: 40px; }

.faq-in-article h2 {
    font-size: 25px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 2px solid var(--pink-light);
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100);
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--pink); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { background: var(--pink-light); }

.faq-answer {
    padding: 16px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ─────────────────────────────────────────────
   RELATED POSTS
───────────────────────────────────────────── */
.related-section {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 48px 0;
}

.related-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
}

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

/* ─────────────────────────────────────────────
   DISCLAIMER BAR
───────────────────────────────────────────── */
.disclaimer-bar {
    background: #fff8e1;
    border-top: 1px solid #ffe082;
    padding: 14px 0;
}

.disclaimer-bar p {
    font-size: 12px;
    color: #795548;
    line-height: 1.6;
    text-align: center;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.blog-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 28px 24px;
    font-size: 13px;
}

.blog-footer a { color: var(--pink-rose); text-decoration: none; }
.blog-footer a:hover { color: var(--white); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card.featured { grid-column: span 2; flex-direction: column; }
    .post-card.featured .card-image { width: 100%; height: 220px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 28px; }
    .blog-hero p  { font-size: 15px; }
    .article-header h1 { font-size: 26px; }
    .article-content { font-size: 16px; }
    .posts-grid { grid-template-columns: 1fr; }
    .post-card.featured { grid-column: span 1; }
    .related-grid { grid-template-columns: 1fr; }
    .wamiga-cta { flex-direction: column; text-align: center; }
    .blog-nav .nav-links { display: none; }
    .featured-image { height: 220px; }
    .article-content h2 { font-size: 22px; }
}
