/* ============================================================
   Eplast Brasil — Blog publico (lista + post)
   Complementa styles.css com os componentes do blog.
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────── */
.blog-hero {
    padding: 4.5rem 0 2.5rem;
    text-align: center;
}

.blog-hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-700);
    background: rgba(20, 184, 166, 0.12);
    padding: 0.25rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 0.8rem;
}

.blog-hero h1 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 0.5rem;
}

.blog-hero-sub {
    color: var(--ink-500);
    max-width: 640px;
    margin: 0 auto;
}

/* ── Toolbar (busca + chips) ───────────────────────────── */
.blog-list-section { padding-bottom: 4rem; }

.blog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

#blogSearch {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0.7rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.blog-chips {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 99px;
    padding: 0.3rem 0.95rem;
    font-size: 0.83rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--ink-700);
}

.chip:hover { border-color: var(--teal-500); color: var(--teal-700); }
.chip.active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

span.chip { cursor: default; }

/* ── Grid de cards ─────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.4rem;
}

.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ink-500);
    padding: 3rem 1rem;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.blog-card-link { text-decoration: none; display: block; height: 100%; }

.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(249, 115, 22, 0.12));
    color: var(--teal-700);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
}

.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; }

.blog-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange-600);
    margin-bottom: 0.45rem;
}

.blog-card-body h2, .blog-card-body h3 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
}

.blog-card-body p {
    font-size: 0.88rem;
    color: var(--ink-500);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--ink-500);
}

/* ── Paginacao ─────────────────────────────────────────── */
.blog-pagination {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 2rem;
}

.blog-pagination button {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
}

.blog-pagination button.active {
    background: var(--teal-700);
    border-color: var(--teal-700);
    color: #fff;
}

/* ── Post individual ───────────────────────────────────── */
.post-hero { padding: 3.5rem 0 1.5rem; }
.post-hero-inner { max-width: 820px; }

.post-breadcrumb {
    font-size: 0.82rem;
    color: var(--ink-500);
    margin-bottom: 0.9rem;
}
.post-breadcrumb a { color: var(--teal-700); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }

.post-hero h1 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    line-height: 1.25;
    margin: 0.4rem 0 0.8rem;
}

.post-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.86rem;
    color: var(--ink-500);
}

.post-capa-wrap { max-width: 900px; margin-top: 1.2rem; }
.post-capa {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.post-content {
    max-width: 780px;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    font-size: 1.03rem;
    line-height: 1.75;
}

.post-content h2, .post-content h3 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    margin: 1.8rem 0 0.7rem;
    line-height: 1.3;
}

.post-content h2 { font-size: 1.45rem; }
.post-content h3 { font-size: 1.18rem; }
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol { margin: 0 0 1rem 1.4rem; }
.post-content li { margin-bottom: 0.35rem; }
.post-content a { color: var(--teal-700); }

.post-content img {
    border-radius: 12px;
    margin: 1.2rem auto;
    box-shadow: var(--shadow-sm);
}

.post-content blockquote {
    border-left: 4px solid var(--teal-500);
    background: rgba(20, 184, 166, 0.06);
    padding: 0.9rem 1.2rem;
    border-radius: 0 12px 12px 0;
    margin: 1.2rem 0;
    color: var(--ink-700);
}

.post-content pre {
    background: var(--ink-900);
    color: #e6edf3;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.88rem;
    margin: 1.2rem 0;
}

.post-tags {
    max-width: 780px;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
}

.post-cta { max-width: 780px; padding-bottom: 2.5rem; }

.post-cta-box {
    background: linear-gradient(135deg, var(--teal-700), #115e59);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.post-cta-box h2 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.post-cta-box p { opacity: 0.9; margin-bottom: 1.1rem; }

.post-cta-box .btn {
    background: var(--orange-500);
    color: #fff;
    border: none;
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}

.post-cta-box .btn:hover { background: var(--orange-600); }

.post-related { padding-bottom: 4rem; }
.post-related h2 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
}

/* Menu: destaque do link ativo (Blog) */
.menu a.active { color: var(--teal-700); }

@media (max-width: 780px) {
    .blog-hero { padding-top: 3rem; }
    .blog-card-img { height: 160px; }
    .post-content { font-size: 0.98rem; }
}
