/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme
Author: PostoTech
Author URI: https://wpastra.com/
Template: astra
Version: 2.0.0
Text Domain: astra-child
*/

/* --- DESIGN PORTAL TECH (Blog Premium) --- */

:root {
    --pt-bg: #121218;
    --pt-bg-elevated: #1a1a24;
    --pt-accent: #ffffff;
    --pt-text: #c8cdd5;
    --pt-text-muted: #8a8f9a;
    --pt-text-bright: #f0f2f5;
    --pt-card-bg: #1a1a24;
    --pt-border: #2a2a38;
    --pt-accent-color: #818cf8;
    --pt-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* TIPOGRAFIA GLOBAL */
body, .site, #page, .ast-container {
    background-color: var(--pt-bg) !important;
    color: var(--pt-text) !important;
    font-family: var(--pt-font) !important;
}

/* Cabeçalho */
.main-header-bar, .ast-primary-header-bar {
    background-color: #0e0e14 !important;
    border-bottom: 1px solid var(--pt-border) !important;
}

.site-title a, .main-header-menu .menu-link {
    color: #fff !important;
    text-transform: uppercase;
    font-size: 13px !important;
    letter-spacing: 1.5px;
    font-family: var(--pt-font) !important;
    font-weight: 600 !important;
}

/* Títulos */
h1, h2, h3, h4 {
    color: var(--pt-text-bright) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    font-family: var(--pt-font) !important;
}

.entry-title {
    font-size: 2.5rem !important;
    margin-bottom: 20px !important;
}

/* Meta-dados */
.entry-meta, .entry-meta * {
    color: #666 !important;
    font-size: 12px !important;
    text-transform: uppercase;
}

/* Sidebar */
#secondary {
    border-left: 1px solid var(--pt-border) !important;
    padding-left: 30px !important;
}

.widget-title {
    border-left: 4px solid #fff;
    padding-left: 15px !important;
    text-transform: uppercase;
    font-size: 14px !important;
    letter-spacing: 2px;
    color: #fff !important;
    margin-bottom: 20px !important;
}

/* Cards de Notícias */
.ast-row article, .wp-block-post {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--pt-border) !important;
    padding: 30px 0 !important;
    border-radius: 0 !important;
}

.ast-row article:hover { opacity: 0.8; }

/* Links */
a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ast-custom-button, .wp-block-button__link {
    background-color: #fff !important;
    color: #000 !important;
    font-weight: bold !important;
    border-radius: 0 !important;
    text-transform: uppercase;
}

/* Esconder botão Subscribe nativo */
.ast-header-button-1,
.site-header-section-2 .ast-builder-button-wrap,
.header-widget-area .ast-custom-button {
    display: none !important;
}

/* Imagens */
img {
    border-radius: 0 !important;
    border: 1px solid var(--pt-border);
}

/* --- FRONT-PAGE --- */

.portal-home { margin-top: 0; }

/* Hero */
.featured-hero {
    position: relative;
    height: 65vh;
    min-height: 420px;
    background-color: var(--pt-bg-elevated);
    overflow: hidden;
    margin-bottom: 50px;
}

.hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.featured-hero:hover .hero-image { transform: scale(1.03); }

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 100px 5% 40px;
    background: linear-gradient(transparent, rgba(18,18,24,0.97));
    z-index: 2;
}

.category-badge {
    background: var(--pt-accent-color);
    color: #fff;
    padding: 5px 14px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    letter-spacing: 1px;
}

.featured-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
    max-width: 800px;
    margin: 10px 0 !important;
}

.hero-excerpt {
    color: #bbb;
    font-size: 16px;
    max-width: 600px;
    margin: 10px 0 15px;
    line-height: 1.5;
}

.hero-meta {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Layout Grid + Sidebar */
.portal-grid-container {
    display: flex;
    gap: 50px;
    padding: 0 5% 60px;
    max-width: 1300px;
    margin: 0 auto;
}

.portal-main-content { flex: 2; }

.portal-sidebar {
    flex: 1;
    max-width: 330px;
}

.section-title {
    border-bottom: 3px solid var(--pt-accent-color);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 30px !important;
    text-transform: uppercase;
    font-size: 1.1rem !important;
    letter-spacing: 1px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.grid-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--pt-border);
    padding-bottom: 25px;
    transition: transform 0.2s ease;
}

.grid-card:hover { transform: translateY(-3px); }

.card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid var(--pt-border);
    transition: opacity 0.3s ease;
}

.grid-card:hover .card-thumb img { opacity: 0.85; }

.card-no-img {
    width: 100%;
    height: 200px;
    background: var(--pt-bg-elevated);
}

.card-cat a {
    color: var(--pt-accent-color);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.grid-card h3 {
    font-size: 1.2rem !important;
    margin: 5px 0 !important;
    line-height: 1.35 !important;
}

.card-meta {
    font-size: 11px;
    color: var(--pt-text-muted);
    text-transform: uppercase;
}

.card-excerpt {
    font-size: 14px;
    color: var(--pt-text-muted);
    margin-top: 5px;
    line-height: 1.55;
}

/* Botão Ler Mais */
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--pt-accent-color) !important;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: #fff !important;
    padding-left: 5px;
}

/* --- SIDEBAR --- */

.widget { margin-bottom: 40px !important; }

/* Arquivos */
.custom-archive-tree {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.archive-year {
    color: var(--pt-text-bright);
    font-size: 15px;
    margin-bottom: 10px;
}

.archive-months {
    list-style: none !important;
    padding-left: 20px !important;
    margin-top: 5px !important;
    border-left: 1px solid var(--pt-border);
}

.archive-months li { margin-bottom: 5px; }

.archive-months a {
    color: var(--pt-text-muted);
    font-size: 13px;
    transition: color 0.3s ease;
}

.archive-months a:hover { color: #fff; }

/* Categorias */
.widget_categories ul {
    list-style: none !important;
    padding: 0 !important;
}

.widget_categories li {
    padding: 10px 0;
    border-bottom: 1px solid var(--pt-border);
}

.widget_categories li a {
    color: #aaa;
    font-size: 14px;
    display: block;
    transition: all 0.3s ease;
}

.widget_categories li a:hover {
    padding-left: 5px;
    color: #fff;
}

.widget_recent_comments, .widget_archive {
    display: none !important;
}

/* --- BUSCA NO HEADER --- */

.ultimate-search-container {
    position: absolute !important;
    right: 5% !important;
    top: 136px !important;
    z-index: 99999 !important;
    display: block !important;
}

.ultimate-search-container .search-form {
    display: flex !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    padding: 0 !important;
    width: 220px !important;
    height: 36px !important;
    transition: all 0.3s ease !important;
}

.ultimate-search-container .search-form:focus-within {
    width: 280px !important;
    border-color: var(--pt-accent-color) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.ultimate-search-container .search-field {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    width: 100% !important;
    outline: none !important;
    font-family: var(--pt-font) !important;
}

.ultimate-search-container .search-submit {
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    padding: 0 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
}

.site-header, header, .ast-primary-header-bar {
    overflow: visible !important;
    position: relative !important;
}

.site-header { position: relative !important; }

.menu-item-search { display: none !important; }

.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container {
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.main-header-bar-navigation {
    flex: 1 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.main-navigation { width: 100% !important; }

.main-header-menu {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
}

/* --- FILTRO CATEGORIAS --- */

.category-filter-bar { margin-bottom: 40px; }

.filter-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pt-text-muted);
    margin-bottom: 12px;
}

.filter-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-links a {
    background: var(--pt-bg-elevated);
    color: var(--pt-text-muted);
    padding: 8px 18px;
    font-size: 12px;
    border-radius: 30px;
    border: 1px solid var(--pt-border);
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-links a:hover, .filter-links a.active {
    background: var(--pt-accent-color);
    color: #fff;
    border-color: var(--pt-accent-color);
}

/* Badge Tempo de Leitura */
.card-thumb { position: relative; }

.reading-time-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

/* --- EM ALTA (Trending) --- */

.trending-section { margin-bottom: 50px; }

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

.trending-card {
    position: relative;
    height: 260px;
    overflow: hidden;
    border: 1px solid var(--pt-border);
}

.trending-link {
    display: block;
    width: 100%;
    height: 100%;
}

.trending-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.trending-card:hover .trending-thumb { transform: scale(1.06); }

.trending-info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(18,18,24,0.95), transparent);
}

.trending-info h3 {
    font-size: 1.15rem !important;
    margin: 5px 0 0 !important;
    line-height: 1.3 !important;
}

.fire-icon {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* --- NEWSLETTER --- */

.inline-newsletter {
    background: linear-gradient(135deg, var(--pt-bg-elevated) 0%, var(--pt-bg) 100%);
    border: 1px solid var(--pt-border);
    padding: 40px;
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nl-content { flex: 1; min-width: 280px; }

.nl-content h3 {
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
}

.nl-content p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.nl-form {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 280px;
}

.nl-form input[type="email"] {
    flex: 1;
    background: var(--pt-bg);
    border: 1px solid var(--pt-border);
    border-right: none;
    color: #fff;
    padding: 12px 15px;
    outline: none;
    font-family: var(--pt-font);
    font-size: 13px;
}

.nl-form input[type="email"]:focus { border-color: var(--pt-accent-color); }

.nl-form button {
    background: var(--pt-accent-color);
    color: #fff;
    border: 1px solid var(--pt-accent-color);
    padding: 12px 25px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
    font-family: var(--pt-font);
    transition: opacity 0.3s ease;
    letter-spacing: 0.5px;
}

.nl-form button:hover { opacity: 0.85; }

/* --- AUTHOR WIDGET --- */

.widget_author_profile {
    text-align: center;
    background: var(--pt-card-bg);
    padding: 30px;
    border: 1px solid var(--pt-border);
}

.author-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--pt-border);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none !important;
}

.author-name {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    color: var(--pt-text-bright) !important;
}

.author-bio {
    font-size: 13px;
    color: var(--pt-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.author-social a {
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.author-social a:hover { opacity: 1; }

/* --- RECOMENDADOS --- */

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pt-border);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pop-thumb {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
}

.pop-thumb img, .no-thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--pt-border);
}

.no-thumb-placeholder { background: var(--pt-bg-elevated); }

.pop-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pop-info h4 {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    color: #ccc !important;
    font-weight: 600 !important;
}

.popular-item:hover .pop-info h4 { color: #fff !important; }

.pop-info span {
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
}

/* --- PAGINAÇÃO --- */

.pt-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--pt-border);
}

.pt-pagination .page-numbers {
    background: var(--pt-bg-elevated);
    color: var(--pt-text-muted);
    padding: 10px 16px;
    font-size: 13px;
    border: 1px solid var(--pt-border);
    transition: all 0.3s ease;
    font-family: var(--pt-font);
    font-weight: 600;
}

.pt-pagination .page-numbers.current,
.pt-pagination .page-numbers:hover {
    background: var(--pt-accent-color);
    color: #fff;
    border-color: var(--pt-accent-color);
}

/* --- AD SLOTS --- */

.pt-ad-slot {
    margin: 30px 0;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 8px;
}

.ad-placeholder {
    background: var(--pt-card-bg);
    border: 1px dashed var(--pt-border);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
}

.pt-ad-sidebar .ad-placeholder { min-height: 250px; }

/* --- BREADCRUMBS --- */

.pt-breadcrumbs {
    padding: 15px 5%;
    font-size: 12px;
    color: #666;
    max-width: 1300px;
    margin: 0 auto;
}

.pt-breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 5px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pt-breadcrumbs li::after {
    content: '›';
    margin-left: 8px;
    color: #444;
}

.pt-breadcrumbs li:last-child::after { content: ''; }

.pt-breadcrumbs a {
    color: #888;
    transition: color 0.3s ease;
}

.pt-breadcrumbs a:hover { color: #fff; }

/* --- SHARE BUTTONS --- */

.pt-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--pt-border);
    border-bottom: 1px solid var(--pt-border);
}

.share-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    font-weight: 600;
}

.share-btn {
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--pt-border);
    color: #999 !important;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.share-btn:hover {
    background: var(--pt-accent-color);
    border-color: var(--pt-accent-color);
    color: #fff !important;
}

/* --- FOOTER PROFISSIONAL --- */

.pt-footer {
    background: #0c0c12;
    border-top: 1px solid var(--pt-border);
    padding: 60px 5% 0;
    margin-top: 60px;
}

.pt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--pt-border);
}

.pt-footer-col h4 {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px !important;
    color: #fff !important;
}

.pt-footer-col p {
    font-size: 13px;
    color: var(--pt-text-muted);
    line-height: 1.7;
}

.pt-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pt-footer-col ul li { margin-bottom: 10px; }

.pt-footer-col ul li a {
    color: var(--pt-text-muted);
    font-size: 13px;
    transition: color 0.3s ease;
}

.pt-footer-col ul li a:hover { color: #fff; }

.pt-footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pt-footer-social a {
    color: var(--pt-text-muted);
    font-size: 13px;
    transition: color 0.3s ease;
}

.pt-footer-social a:hover { color: #fff; }

.pt-footer-bottom {
    text-align: center;
    padding: 25px 0;
    max-width: 1300px;
    margin: 0 auto;
}

.pt-footer-bottom p {
    font-size: 12px;
    color: var(--pt-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Esconder footer do Astra (usamos o custom) */
.site-footer,
.ast-small-footer,
.ast-footer-overlay,
footer.entry-footer,
.site-below-footer-wrap,
.ast-builder-footer-grid-columns,
.site-primary-footer-wrap,
.site-above-footer-wrap,
.ast-builder-footer,
#colophon {
    display: none !important;
}

/* --- PÁGINAS INTERNAS / SINGLE POST (DARK MODE) --- */

/* Container do post */
body.ast-separate-container .ast-article-single,
body.ast-separate-container .ast-article-inner,
body.ast-separate-container .ast-article-post,
.single .site-content,
.page .site-content,
.single .ast-container,
.page .ast-container,
.single .ast-related-posts-wrap,
.ast-separate-container .ast-related-posts-wrap {
    background-color: var(--pt-bg) !important;
    border: none !important;
}

/* Related Posts (Posts Relacionados) */
.ast-related-posts-wrap {
    border-top: 1px solid var(--pt-border) !important;
    padding-top: 40px !important;
    margin-top: 40px !important;
}

.ast-related-posts-title {
    color: var(--pt-text-bright) !important;
    font-family: var(--pt-font) !important;
    font-weight: 800 !important;
}

.ast-related-post-title a {
    color: var(--pt-text) !important;
    font-size: 15px !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
}

.ast-related-post-title a:hover {
    color: var(--pt-accent-color) !important;
}

.ast-related-post-excerpt {
    color: var(--pt-text-muted) !important;
}

.ast-related-post .ast-related-post-content {
    background-color: transparent !important;
}

/* Conteúdo do artigo */
.single .entry-content,
.page .entry-content,
.single .entry-content p,
.page .entry-content p {
    color: var(--pt-text) !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    font-family: var(--pt-font) !important;
}

/* Títulos internos */
.single .entry-title,
.page .entry-title {
    color: var(--pt-text-bright) !important;
    font-family: var(--pt-font) !important;
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4 {
    color: var(--pt-text-bright) !important;
    font-family: var(--pt-font) !important;
    margin-top: 35px !important;
    margin-bottom: 15px !important;
}

/* Links dentro do conteúdo */
.single .entry-content a,
.page .entry-content a {
    color: var(--pt-accent-color) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single .entry-content a:hover,
.page .entry-content a:hover {
    color: var(--pt-text-bright) !important;
}

/* Listas */
.single .entry-content ul,
.single .entry-content ol,
.page .entry-content ul,
.page .entry-content ol {
    color: var(--pt-text) !important;
}

.single .entry-content li,
.page .entry-content li {
    color: var(--pt-text) !important;
    margin-bottom: 8px;
}

/* Citações */
.single .entry-content blockquote,
.page .entry-content blockquote {
    background: var(--pt-bg-elevated) !important;
    border-left: 4px solid var(--pt-accent-color) !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    color: var(--pt-text) !important;
    font-style: italic;
}

/* Código */
.single .entry-content code,
.page .entry-content code {
    background: var(--pt-bg-elevated) !important;
    color: var(--pt-accent-color) !important;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.single .entry-content pre,
.page .entry-content pre {
    background: var(--pt-bg-elevated) !important;
    border: 1px solid var(--pt-border) !important;
    padding: 20px !important;
    overflow-x: auto;
    color: var(--pt-text) !important;
}

/* Tabelas */
.single .entry-content table,
.page .entry-content table {
    border-color: var(--pt-border) !important;
}

.single .entry-content th,
.page .entry-content th {
    background: var(--pt-bg-elevated) !important;
    color: var(--pt-text-bright) !important;
    border-color: var(--pt-border) !important;
}

.single .entry-content td,
.page .entry-content td {
    color: var(--pt-text) !important;
    border-color: var(--pt-border) !important;
}

/* Imagens dentro do conteúdo */
.single .entry-content img,
.page .entry-content img {
    border: 1px solid var(--pt-border) !important;
    margin: 20px 0;
}

/* Separador */
.single .entry-content hr,
.page .entry-content hr {
    border-color: var(--pt-border) !important;
    margin: 40px 0;
}

/* Meta do post (data, autor, categoria) */
.single .entry-meta,
.single .entry-meta *,
.single .cat-links,
.single .cat-links a,
.single .posted-on,
.single .posted-on a,
.single .byline,
.single .byline a {
    color: var(--pt-text-muted) !important;
}

.single .cat-links a:hover,
.single .posted-on a:hover,
.single .byline a:hover {
    color: var(--pt-accent-color) !important;
}

/* Post navigation (anterior/próximo) */
.single .post-navigation,
.single .ast-single-post-navigation {
    border-top: 1px solid var(--pt-border) !important;
    border-bottom: 1px solid var(--pt-border) !important;
    margin: 40px 0;
    padding: 20px 0;
}

.single .post-navigation a,
.single .ast-single-post-navigation a {
    color: var(--pt-text) !important;
}

.single .post-navigation a:hover,
.single .ast-single-post-navigation a:hover {
    color: var(--pt-accent-color) !important;
}

/* ESCONDER COMENTÁRIOS COMPLETAMENTE */
#comments,
.comments-area,
.comment-respond,
.comment-form,
#respond,
.ast-comment-list,
.comments-count-wrapper,
.no-comments {
    display: none !important;
}

/* Sidebar interna do post */
.single #secondary,
.page #secondary {
    border-left: 1px solid var(--pt-border) !important;
}

.single .widget,
.page .widget {
    background: transparent !important;
}

.single .widget-title,
.page .widget-title {
    color: var(--pt-text-bright) !important;
}

/* Inputs e formulários (caso existam em páginas) */
input, textarea, select {
    background: var(--pt-bg-elevated) !important;
    border: 1px solid var(--pt-border) !important;
    color: var(--pt-text) !important;
    font-family: var(--pt-font) !important;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--pt-accent-color) !important;
    outline: none !important;
}

/* --- BOTÃO VOLTAR AO TOPO --- */

#pt-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--pt-accent-color);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pt-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#pt-back-to-top:hover {
    background: #fff;
    color: #000;
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 992px) {
    .portal-grid-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 4% 40px;
    }

    .portal-sidebar {
        max-width: 100%;
        margin-top: 20px;
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid var(--pt-border);
        padding-top: 30px;
    }

    .inline-newsletter {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }

    .nl-form {
        width: 100%;
        flex-direction: column;
    }

    .nl-form input[type="email"] { border-right: 1px solid #333; }
    .nl-form input[type="email"], .nl-form button { width: 100%; }

    .ultimate-search-container {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        padding: 10px 20px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .ultimate-search-container .search-form,
    .ultimate-search-container .search-form:focus-within {
        width: 100% !important;
        max-width: 100% !important;
    }

    .featured-hero {
        height: 45vh;
        min-height: 300px;
    }

    .featured-hero h1 { font-size: 1.6rem !important; }
    .hero-excerpt { font-size: 14px; }

    .pt-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .trending-grid { grid-template-columns: 1fr; }

    .pt-share-bar { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
    .pt-footer-grid { grid-template-columns: 1fr; }
    .filter-links a { font-size: 11px; padding: 6px 14px; }
    .pt-pagination .page-numbers { padding: 8px 12px; font-size: 12px; }
}
