/* ================================================
   Blog Pages — Shared Styles
   ================================================ */

/* ---- Blog Listing Hero ---- */
.blog-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    text-align: center;
}
.blog-hero h1 { font-size: clamp(3.5rem, 9vw, 8rem); line-height: 1.0; margin-bottom: 1.5rem; }
.blog-hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 580px; margin: 0 auto; line-height: 1.8; }

/* ---- Filter Tabs (reuse from portfolio) ---- */
.blog-filter-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-bottom: 1rem;
}
.blog-filter-btn {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.5rem 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.blog-filter-btn:hover { color: var(--text-main); border-color: rgba(255,255,255,0.35); }
.blog-filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ---- Articles Grid ---- */
.blog-section { padding: 6vh 0 15vh; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.blog-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color 0.35s, transform 0.35s;
}
.blog-card:hover { border-color: rgba(44,252,163,0.35); transform: translateY(-6px); }
.blog-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}
.blog-card-thumb-inner {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.04);
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-thumb-inner { transform: scale(1.05); }
.blog-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-thumb-img { transform: scale(1.05); }
.blog-card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}
.blog-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}
.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.blog-card.featured .blog-card-thumb {
    width: 45%;
    flex-shrink: 0;
    aspect-ratio: auto;
    min-height: 320px;
}
.blog-card.featured .blog-card-body {
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 3rem;
}
.blog-card.featured .blog-card-title {
    font-size: 1.8rem;
    flex: none;
    margin-bottom: 0;
}
.blog-card.featured .blog-card-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
    margin-bottom: 0;
}
.blog-card.hidden { display: none; }

/* ---- Individual Post ---- */
.post-hero {
    padding-top: 10rem;
    padding-bottom: 5rem;
    max-width: 820px;
    margin: 0 auto;
}
.post-cat {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    background: var(--accent);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
}
.post-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.post-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-family: var(--font-heading);
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.post-meta-divider { opacity: 0.3; }
.post-summary {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.85;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 0;
}

/* ---- Post Cover ---- */
.post-cover {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 6rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
}
.post-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Post Body ---- */
.post-body {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 6rem;
}
.post-body h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-top: 4rem;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}
.post-body h3 {
    font-size: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}
.post-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}
.post-body ul, .post-body ol {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 2;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}
.post-body li { margin-bottom: 0.4rem; }
.post-body strong { color: var(--text-main); }
.post-body a { color: var(--accent); text-decoration: underline; }

/* ---- Callout Box ---- */
.post-callout {
    background: rgba(44,252,163,0.06);
    border: 1px solid rgba(44,252,163,0.25);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
}
.post-callout p { margin-bottom: 0; }
.post-callout strong { color: var(--accent); }

/* ---- FAQ Section ---- */
.post-faq {
    margin: 4rem 0;
    padding: 3rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
}
.post-faq h2 { margin-top: 0; }
.faq-item { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}
.faq-a { font-size: 0.98rem; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ---- Post CTA ---- */
.post-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: radial-gradient(ellipse at center, rgba(44,252,163,0.06) 0%, transparent 65%);
    border-top: 1px solid rgba(44,252,163,0.1);
    border-radius: 20px;
    margin: 4rem 0 2rem;
}
.post-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.post-cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---- Related Posts ---- */
.post-related { padding: 4rem 0 10rem; }
.post-related h3 { font-size: 1.8rem; margin-bottom: 2.5rem; }
.post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card.featured { flex-direction: column; }
    .blog-card.featured .blog-card-thumb { width: 100%; min-height: 240px; }
    .post-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .blog-grid { grid-template-columns: 1fr; }
    .post-related-grid { grid-template-columns: 1fr; }
    .post-hero { padding-top: 8rem; }
}
