/*
Theme Name: Postify Magazine & News
Theme URI: https://postifyai.com
Description: Tema Premium de Noticias e Conteudo Editorial de Alta Conversao para Afiliados e Google Trends.
Author: PostifyAI Engineering Team
Author URI: https://postifyai.com
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: postify-magazine
*/

/* Reset & CSS Custom Properties */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #38bdf8;
  --color-dark: #090d16;
  --color-dark-surface: #111827;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  
  /* Category Semantic Colors */
  --cat-artigos: #16a34a;
  --cat-tecnologia: #0284c7;
  --cat-esportes: #ea580c;
  --cat-negocios: #7c3aed;
  --cat-noticias: #475569;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. TOPBAR & TICKER DE NOTÍCIAS
   ========================================================================== */
.topbar {
  background: var(--color-dark);
  color: #94a3b8;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dc2626;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.ticker-pulse {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ticker-item {
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  font-size: 12px;
}

/* ==========================================================================
   2. HEADER & NAVEGAÇÃO
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 1;
}

.site-branding .custom-logo {
  max-height: 50px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.site-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  font-size: 22px;
  color: var(--color-primary);
}

.logo-badge {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.main-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  padding: 6px 0;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta-btn {
  background: var(--color-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.header-cta-btn:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
}

/* ==========================================================================
   3. BARRA DE TAGS EM ALTA (TRENDING PILLS)
   ========================================================================== */
.trending-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.trending-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.trending-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.trending-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.trending-pill:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

/* ==========================================================================
   4. HERO GRID: MASTER STICKY PILLAR + TOP DESTAQUES
   ========================================================================== */
.hero-section {
  padding: 30px 0 20px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 25px;
}

/* Card Principal (Post Fixado de Afiliado) */
.hero-flagship-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.hero-flagship-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.hero-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.hero-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-flagship-card:hover .hero-media-wrapper img {
  transform: scale(1.03);
}

.flagship-badge-floating {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  margin-bottom: 12px;
}

.category-tag.cat-artigos { background: var(--cat-artigos); }
.category-tag.cat-tecnologia { background: var(--cat-tecnologia); }
.category-tag.cat-esportes { background: var(--cat-esportes); }
.category-tag.cat-negocios { background: var(--cat-negocios); }
.category-tag.cat-noticias { background: var(--cat-noticias); }

.hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-dark);
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.hero-title a:hover {
  color: var(--color-primary);
}

.hero-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 13px;
  color: var(--text-light);
}

.read-btn {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Coluna Direita: Radar 24h Mais Lidas (Ranked 01 - 04) */
.hero-trending-ranked {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.trending-ranked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-dark);
  margin-bottom: 16px;
}

.trending-ranked-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #ea580c;
  background: #ffedd5;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.trending-ranked-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--color-dark);
  letter-spacing: -0.3px;
}

.ranked-items-list {
  display: flex;
  flex-direction: column;
}

.ranked-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: transform 0.15s ease;
}

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

.rank-number {
  font-size: 32px;
  font-weight: 900;
  font-family: monospace, sans-serif;
  line-height: 1;
  color: #cbd5e1;
  min-width: 44px;
  letter-spacing: -1px;
  transition: color 0.2s ease;
}

.ranked-item:hover .rank-number {
  color: var(--color-primary);
}

.rank-content {
  flex: 1;
}

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

.rank-time {
  font-size: 11px;
  color: var(--text-light);
}

.rank-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  margin: 0;
}

.rank-title a:hover {
  color: var(--color-primary);
}

.side-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-dark);
  margin: 6px 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-title a:hover {
  color: var(--color-primary);
}

.side-meta {
  font-size: 12px;
  color: var(--text-light);
}

/* ==========================================================================
   5. LAYOUT DE CONTEÚDO PRINCIPAL (FEED + SIDEBAR)
   ========================================================================== */
.main-layout {
  padding: 30px 0 60px 0;
}

.layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 35px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-dark);
  padding-bottom: 12px;
  margin-bottom: 25px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--color-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Cards do Feed de Notícias */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-article-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feed-article-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.feed-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feed-article-card:hover .feed-thumb img {
  transform: scale(1.04);
}

.feed-content {
  display: flex;
  flex-direction: column;
}

.feed-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-dark);
  margin: 8px 0;
  letter-spacing: -0.3px;
}

.feed-title a:hover {
  color: var(--color-primary);
}

.feed-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}

/* Single Post Specific Styles */
.single-post-wrapper {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.single-header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 20px;
}

.single-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-dark);
  margin: 15px 0;
  letter-spacing: -0.6px;
}

.single-featured-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
}

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

.single-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-dark);
  margin: 35px 0 15px 0;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 8px;
}

.single-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 25px 0 12px 0;
}

/* Tabelas Responsivas para Reviews e Afiliados */
.single-content table,
.single-content .comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  display: table;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
}

@media (max-width: 768px) {
  .single-content table,
  .single-content .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

.single-content table th,
.single-content table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  font-size: 13.5px;
  text-align: left;
}

.single-content table th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--color-dark);
}

.single-content table tr:hover td {
  background: #f8fafc;
}

/* ==========================================================================
   6. SIDEBAR & WIDGETS DE AFILIADOS / CONVERSÃO
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.affiliate-widget-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.aff-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  overflow: hidden;
  flex-shrink: 0;
}

.aff-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aff-item-info {
  flex-grow: 1;
}

.aff-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.aff-item-title a:hover {
  color: var(--color-primary);
}

.aff-item-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--cat-artigos);
}

.widget-newsletter {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
  color: #ffffff;
  border: none;
}

.widget-newsletter .widget-title {
  color: #ffffff;
  border-color: var(--color-accent);
}

.newsletter-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 10px;
  outline: none;
}

.newsletter-form input::placeholder {
  color: #64748b;
}

.newsletter-form button {
  width: 100%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--color-primary-hover);
}

/* ==========================================================================
   7. FOOTER MODERNO
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  color: #94a3b8;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 50px 0 25px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
  max-width: 400px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   INTERACTIVE & ADVANCED MAGAZINE ENHANCEMENTS
   ========================================================================== */

/* 1. Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #10b981);
  z-index: 99999;
  transition: width 0.08s ease-out;
}

/* 2. Header Search & Actions */
.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.mobile-toggle-btn:hover {
  background: #f1f5f9;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-icon-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #eff6ff;
  transform: translateY(-1px);
}

.header-search-container {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 0 solid var(--color-border);
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-bottom 0.2s ease;
}

.header-search-container.is-expanded {
  max-height: 80px;
  border-bottom: 1px solid var(--color-border);
}

.search-form-expanded {
  display: flex;
  gap: 10px;
  padding: 14px 0;
}

.search-form-expanded .search-field {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 15px;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-form-expanded .search-field:focus {
  border-color: var(--color-primary);
  background: #ffffff;
}

.search-form-expanded .search-submit-btn {
  padding: 0 24px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form-expanded .search-submit-btn:hover {
  background: var(--color-primary-hover);
}

/* 3. Mobile Navigation Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 99999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}

.drawer-logo {
  font-weight: 900;
  font-size: 18px;
  color: var(--text-main);
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
}

.drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-search-form {
  display: flex;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.drawer-search-form input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.drawer-search-form button {
  background: none;
  border: none;
  padding: 0 12px;
  cursor: pointer;
}

.drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  display: block;
  padding: 6px 0;
}

.drawer-cta-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  margin-top: auto;
}

/* 4. Single Post Improvements */
.single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.single-breadcrumbs a {
  color: #64748b;
  transition: color 0.15s ease;
}

.single-breadcrumbs a:hover {
  color: var(--color-primary);
}

.single-breadcrumbs .bc-sep {
  color: #cbd5e1;
}

.single-breadcrumbs .bc-current {
  color: var(--text-main);
  font-weight: 600;
}

.editorial-disclosure-box {
  margin-top: 18px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
}

.disclosure-icon {
  font-size: 18px;
  line-height: 1;
}

.single-footer {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid var(--color-border);
}

.share-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.share-bar-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.share-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.share-whatsapp {
  background: #25D366;
}

.share-x {
  background: #000000;
}

.share-linkedin {
  background: #0A66C2;
}

.share-copy {
  background: #334155;
}

.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.single-tags-wrapper {
  margin-top: 15px;
}

.tags-pill-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.tags-pill-list a {
  background: #f1f5f9;
  color: #475569;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  transition: all 0.15s ease;
}

.tags-pill-list a:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* 5. Related Posts Grid */
.related-posts-section {
  margin-top: 45px;
  padding-top: 30px;
  border-top: 2px solid var(--color-border-subtle);
}

.related-section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.related-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-info {
  padding: 14px;
}

.related-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0 6px 0;
}

.related-title a:hover {
  color: var(--color-primary);
}

.related-date {
  font-size: 11.5px;
  color: #94a3b8;
}

/* 6. Archive & Search Header Box */
.archive-header-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.archive-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.archive-title span {
  color: var(--color-primary);
}

.archive-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* 7. 404 Error Template */
.error-404-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 60px auto;
  padding: 50px 30px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.error-code {
  font-size: 80px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.error-title {
  font-size: 28px;
  font-weight: 800;
  margin: 15px 0 10px 0;
}

.error-desc {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 25px;
  line-height: 1.6;
}

.error-search-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.error-search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
}

.error-search-form button {
  padding: 0 20px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feed-article-card {
    grid-template-columns: 180px 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }
  .main-nav {
    display: none;
  }
  .share-bar-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar-right {
    display: none;
  }
  .header-cta-btn {
    display: none;
  }
  .feed-article-card {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   Clean Native Ad Slots (Google AdSense Responsive)
   ========================================================================== */
.ad-slot-card {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  margin: 20px auto;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

.ad-disclaimer-label {
  display: none !important;
}

.ad-content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.ad-content-wrapper ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
}

/* Specific Slot Placements */
.ad-slot-header-top {
  max-width: 1200px;
  margin: 16px auto;
}

.ad-slot-header-top .ad-content-wrapper {
  min-height: 90px;
}

.ad-slot-in-feed {
  margin: 28px 0;
  width: 100%;
}

.ad-slot-in-feed .ad-content-wrapper {
  min-height: 100px;
}

.ad-slot-sidebar {
  margin: 0 0 28px 0;
}

.ad-slot-sidebar .ad-content-wrapper {
  min-height: 250px;
}

.ad-slot-content-top {
  margin: 18px 0 24px 0;
}

.ad-slot-in-article {
  margin: 32px 0;
  padding: 0;
  background: transparent;
  border: none;
}

.ad-slot-content-bottom {
  margin: 32px 0 24px;
}

@media (max-width: 768px) {
  .ad-slot-header-top {
    margin: 12px auto;
  }
  .ad-slot-in-article {
    margin: 20px 0;
  }
}
