/* ============================================
   Entrefios - Blog Público Styles (Figma)
   ============================================ */

:root {
    --ef-rose: #c87089;
    --ef-rose-light: #ddb1cc;
    --ef-rose-badge: #c87089;
    --ef-dark: #2D2D2D;
    --ef-text: #333333;
    --ef-muted: #999999;
    --ef-bg-gray: #F5F5F5;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ef-text);
}

/* ============================================
   NAVBAR
   ============================================ */
.ef-navbar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.ef-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}
.ef-logo-entre {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--ef-dark);
}
.ef-logo-fios {
    font-size: 2.2rem;
    font-weight: 700;
    font-style: italic;
    color: var(--ef-dark);
    line-height: 1;
    letter-spacing: 1px;
}
.ef-logo-by {
    font-size: 0.55rem;
    color: var(--ef-muted);
    letter-spacing: 2px;
    margin-top: 2px;
}
.ef-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.ef-nav-links a {
    text-decoration: none;
    color: var(--ef-text);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}
.ef-nav-links a:hover {
    color: var(--ef-rose);
}
.ef-nav-links .ef-nav-bold a {
    font-weight: 700;
}
.ef-search-form {
    position: relative;
}
.ef-search-input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 35px 6px 14px;
    font-size: 0.85rem;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}
.ef-search-input:focus {
    border-color: var(--ef-rose);
}
.ef-search-input::placeholder {
    color: #bbb;
}
.ef-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ef-text);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
}

/* ============================================
   BREADCRUMB BAR (dark)
   ============================================ */
.ef-breadcrumb-bar {
    background: var(--ef-bg-gray);
    padding: 12px 0;
}
.ef-breadcrumb-bar .breadcrumb {
    margin: 0;
    font-size: 0.8rem;
}
.ef-breadcrumb-bar .breadcrumb-item a {
    color: var(--ef-muted);
    text-decoration: none;
}
.ef-breadcrumb-bar .breadcrumb-item.active {
    color: #666;
}
.ef-breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ef-muted);
    content: ">";
}

/* Dark breadcrumb (for category/search header) */
.ef-header-dark {
    background: var(--ef-dark);
    padding: 30px 0 40px;
}
.ef-header-dark .breadcrumb-item a,
.ef-header-dark .breadcrumb-item.active,
.ef-header-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}
.ef-header-dark h1 {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-top: 10px;
}
.ef-header-dark .ef-header-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ============================================
   POST HERO (single post)
   ============================================ */
.ef-post-hero {
    background: var(--ef-dark);
    padding: 40px 0;
}
.ef-post-hero-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}
.ef-post-hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.ef-post-hero-info .ef-badge {
    align-self: flex-start;
}
.ef-post-hero-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 15px 0;
    line-height: 1.3;
}
.ef-post-hero-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.ef-post-hero-meta span + span::before {
    content: " | ";
    margin: 0 5px;
}

/* ============================================
   BADGES (rosa)
   ============================================ */
.ef-badge {
    display: inline-block;
    background: var(--ef-rose-badge);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
}
.ef-badge:hover {
    background: #c07e7c;
    color: #fff;
}

/* ============================================
   POST CARDS (listagem)
   ============================================ */
.ef-post-card {
    text-decoration: none;
    display: block;
    margin-bottom: 40px;
}
.ef-post-card:hover .ef-post-card-img img {
    transform: scale(1.03);
}
.ef-post-card-img {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 12px;
}
.ef-post-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.ef-post-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    margin-bottom: 12px;
}
.ef-post-card .ef-badge {
    margin-bottom: 8px;
}
.ef-post-card h5 {
    color: var(--ef-text);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}
.ef-post-card-meta {
    color: var(--ef-muted);
    font-size: 0.8rem;
}
.ef-post-card-meta span + span::before {
    content: " | ";
    margin: 0 4px;
}

/* ============================================
   SOCIAL SHARE (sticky right)
   ============================================ */
.ef-social-share {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.ef-social-share a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--ef-rose);
    color: var(--ef-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s;
}
.ef-social-share a:hover {
    background: var(--ef-rose);
    color: #fff;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.blog-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ef-text);
}
.blog-content h2, .blog-content h3, .blog-content h4 {
    margin-top: 2em;
    margin-bottom: 0.6em;
    font-weight: 700;
    color: var(--ef-dark);
}
.blog-content h2 {
    font-size: 1.4rem;
}
.blog-content h3 {
    font-size: 1.2rem;
}
.blog-content p {
    margin-bottom: 1.2em;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}
.blog-content blockquote {
    border-left: 4px solid var(--ef-rose);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: #faf5f5;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.blog-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.2em;
    border-radius: 8px;
    overflow-x: auto;
}
.blog-content ul, .blog-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.blog-content a {
    color: var(--ef-rose);
    text-decoration: underline;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.ef-related-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--ef-dark);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.ef-newsletter {
    background: var(--ef-rose-light);
    padding: 40px 0;
    margin-top: 0;
}
.ef-newsletter-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ef-newsletter-icon svg {
    width: 40px;
    height: 40px;
    color: var(--ef-rose);
}
.ef-newsletter h3 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ef-dark);
    margin: 0;
    line-height: 1.4;
}
.ef-newsletter-input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    flex: 1;
    outline: none;
    background: #fff;
}
.ef-newsletter-input::placeholder {
    color: #bbb;
}
.ef-newsletter-btn {
    background: var(--ef-rose);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.ef-newsletter-btn:hover {
    background: #c07e7c;
}

/* ============================================
   FOOTER
   ============================================ */
.ef-footer {
    background: #fff;
    padding: 30px 0 20px;
    border-top: 1px solid #eee;
}
.ef-footer-copy {
    color: var(--ef-muted);
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 12px;
}
.ef-footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.ef-footer-social a {
    color: var(--ef-dark);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}
.ef-footer-social a:hover {
    color: var(--ef-rose);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    gap: 4px;
}
.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #ddd;
    color: var(--ef-text);
    font-size: 0.85rem;
    padding: 6px 14px;
}
.pagination .page-item.active .page-link {
    background-color: var(--ef-rose);
    border-color: var(--ef-rose);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--ef-rose-light);
    border-color: var(--ef-rose);
    color: var(--ef-text);
}
.pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .ef-nav-links {
        flex-direction: column;
        gap: 12px;
        padding: 15px 0;
    }
    .ef-search-form {
        margin-top: 10px;
    }
    .ef-post-hero-img {
        height: 200px;
        margin-bottom: 20px;
    }
    .ef-post-hero-info h1 {
        font-size: 1.4rem;
    }
    .ef-social-share {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 20px 0;
    }
}
@media (max-width: 768px) {
    .ef-post-card-img img {
        height: 180px;
    }
    .ef-logo-fios {
        font-size: 1.6rem;
    }
    .blog-content {
        font-size: 0.9rem;
    }
    .ef-newsletter h3 {
        font-size: 1.1rem;
    }
}
