:root {
  --bg-main: #070913;
  --bg-surface: #0f1424;
  --bg-card: #151b30;
  --bg-card-hover: #1c243f;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1240px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Nav */
.site-header .container {
  max-width: 1280px;
}
header.site-header, body > header {
  background: rgba(7, 9, 19, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-logo .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 0 18px var(--primary-glow);
}

.brand-logo span.highlight {
  color: var(--primary);
}

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

.header-search {
  display: flex;
  align-items: center;
  background: rgba(15, 20, 36, 0.75);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 3px 6px 3px 14px;
  transition: all 0.25s ease;
}

.header-search:focus-within {
  border-color: var(--primary);
  background: rgba(15, 20, 36, 0.95);
  box-shadow: 0 0 14px var(--primary-glow);
}

.header-search input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 170px;
  font-family: inherit;
  transition: width 0.3s ease;
}

.header-search input[type="search"]::placeholder {
  color: var(--text-dim);
}

.header-search:focus-within input[type="search"] {
  width: 230px;
}

.header-search button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, transform 0.2s;
}

.header-search button:hover {
  color: var(--primary);
  transform: scale(1.15);
}

.header-anuncie-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  white-space: nowrap;
  transition: all 0.25s ease;
}

.header-anuncie-btn:hover, .header-anuncie-btn.active {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b0f19;
  border-color: transparent;
  box-shadow: 0 0 16px var(--primary-glow);
}

@media (max-width: 640px) {
  .header-search input[type="search"] {
    width: 110px;
  }
  .header-search:focus-within input[type="search"] {
    width: 140px;
  }
  .header-anuncie-btn .anuncie-text {
    display: none;
  }
  .header-anuncie-btn {
    padding: 6px 10px;
  }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Category Navigation Bar */
.category-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  overflow-x: auto;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.cat-pill:hover {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Hero Section / Featured Magazine Grid */
.magazine-hero {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Main Featured Card */
.card-featured {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card-featured:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.card-featured .img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #0b0f19;
}

.card-featured .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-featured:hover .img-wrap img {
  transform: scale(1.03);
}

.badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 9, 19, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid rgba(245, 158, 11, 0.35);
  z-index: 2;
  line-height: 1.2;
}

.card-featured .badge-cat {
  top: 12px;
  left: 12px;
  font-size: 0.70rem;
  padding: 4px 10px;
}

.card-featured .card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-featured h2 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #fff;
}

.card-featured p.excerpt {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.post-meta .reading-time {
  color: var(--primary);
  font-weight: 700;
}

/* Sidebar Trending List */
.sidebar-trending {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.trending-item {
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.15s;
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  min-width: 32px;
  line-height: 1;
}

.trending-item:nth-child(2) .trending-num { color: var(--primary); }
.trending-item:nth-child(3) .trending-num { color: var(--accent-cyan); }
.trending-item:nth-child(4) .trending-num { color: var(--accent-purple); }

.trending-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f1f5f9;
  margin-bottom: 4px;
}

/* Feed Grid */
.feed-section {
  padding: 2.5rem 0 4rem 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-article {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card-article:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.card-article .card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  background: #090d16;
  overflow: hidden;
}

.card-article .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
  font-size: 0;
}

.card-article .card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-article h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: #fff;
}

.card-article p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   RICH ARTICLE READING VIEW (REVISTA STYLE)
   ========================================= */
.article-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 4rem 1.25rem;
}

.article-header {
  position: static !important;
  top: auto !important;
  z-index: 1 !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  max-width: 960px;
  margin: 0 auto 2rem auto;
}

.article-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.85rem;
  }
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #000;
}

.article-hero, .article-hero-media {
  margin: 2rem 0 2.5rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #090d16;
}
.article-hero img, .article-hero-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.article-hero-media figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* Rich Article Body */
.article-body {
  max-width: 920px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.85;
  color: #e2e8f0;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.75rem 0 1.1rem 0;
  line-height: 1.3;
  border-left: 4px solid var(--primary);
  padding-left: 14px;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 2.25rem 0 0.9rem 0;
}

.article-body ul, .article-body ol {
  margin: 1.25rem 0 1.75rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

/* Callout Boxes (Retenção Alta) */
.callout-box {
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2.25rem 0;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15, 20, 36, 0.75);
}

.callout-box .callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.callout-box.voce-sabia {
  border-left: 5px solid var(--primary);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 20, 36, 0.9));
}
.callout-box.voce-sabia .callout-header { color: var(--primary); }

.callout-box.detalhe-bizarro {
  border-left: 5px solid var(--accent-purple);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(15, 20, 36, 0.9));
}
.callout-box.detalhe-bizarro .callout-header { color: var(--accent-purple); }

.callout-box.contexto {
  border-left: 5px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(15, 20, 36, 0.9));
}
.callout-box.contexto .callout-header { color: var(--accent-cyan); }

.callout-box p {
  margin-bottom: 0;
  font-size: 1.02rem;
  color: #cbd5e1;
}

/* Quotes */
blockquote.article-quote {
  margin: 2.25rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  font-size: 1.22rem;
  font-style: italic;
  color: #e0f2fe;
  border-radius: 0 10px 10px 0;
}

/* Secondary Images */
.article-body figure.article-figure {
  margin: 2.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-body figure.article-figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  background: rgba(0,0,0,0.3);
}

/* Video Responsive Player */
.video-container {
  margin: 2.5rem 0;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* AdSense Banner Container */
.ad-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 2.5rem 0;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer */
footer {
  background: #04060c;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

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

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* =========================================
   FLOATING BACK TO TOP BUTTON
   ========================================= */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #070913;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.65);
}

/* =========================================
   LGPD & COOKIE CONSENT BANNER
   ========================================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  z-index: 1000;
  background: rgba(15, 20, 36, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
  padding: 1.2rem 1.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.4s ease;
}

.cookie-consent-banner.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.cookie-text h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-text p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #070913;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cookie-accept:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px var(--primary-glow);
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 12px;
  }
}

/* =========================================
   SOCIAL SHARE MODAL & PREVIEW CARD
   ========================================= */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.share-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.share-modal-card {
  background: #0f1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s ease;
}

.share-modal-overlay.active .share-modal-card {
  transform: translateY(0) scale(1);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.share-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.2s;
}

.share-modal-close:hover {
  color: #fff;
}

.share-preview-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 12px;
}

.share-preview-thumb {
  width: 130px;
  min-width: 130px;
  height: 95px;
  background: #000;
}

.share-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.share-preview-info {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.share-preview-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.share-preview-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-preview-desc {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.share-wa { background: #25D366; color: #052e16; }
.share-wa:hover { background: #22c55e; }

.share-tw { background: #000; border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.share-tw:hover { background: #1a1a1a; border-color: rgba(255,255,255,0.5); }

.share-fb { background: #1877F2; color: #fff; }
.share-fb:hover { background: #0d6efd; }

.share-tg { background: #229ED9; color: #fff; }
.share-tg:hover { background: #0284c7; }

.share-in { background: #0A66C2; color: #fff; }
.share-in:hover { background: #0284c7; }

.share-copy { background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border); color: #fff; }
.share-copy:hover { background: rgba(255, 255, 255, 0.16); }

@media (max-width: 520px) {
  .share-modal-card {
    padding: 1.25rem;
  }
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }
  .share-preview-thumb {
    width: 100px;
    min-width: 100px;
    height: 80px;
  }
}

/* =========================================
   FOOTER COUNTERS (VISITAS & ONLINE)
   ========================================= */
.footer-counters {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-counter-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-counter-val {
  color: #fff;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.95rem;
}

.footer-counter-online {
  color: #10b981;
}

.footer-counter-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

/* =========================================
   PAGINATION (ESTILO FATOS DESCONHECIDOS)
   ========================================= */
.pagination-nav {
  margin: 3.5rem 0 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 20, 36, 0.6);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.page-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.18s ease;
  user-select: none;
}

.page-box:hover {
  color: #fff;
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.page-box.active {
  background: #000;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: none;
  cursor: default;
}

.page-box.page-arrow {
  font-size: 1.25rem;
  color: var(--primary);
}

.page-ellipsis {
  padding: 0 6px;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1.1rem;
}

/* =========================================
   FATOS DESCONHECIDOS STYLE SOCIAL ELEMENTS
   ========================================= */

/* Barra Social no Topo do Rodapé (Perfeitamente contida e alinhada ao layout) */
.footer-social-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 20, 36, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 2.8rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.social-bar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 1.15rem 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.22s ease;
  border-right: 1px solid var(--border);
}

.social-bar-item:last-child {
  border-right: none;
}

.social-bar-item .social-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  color: var(--text-muted);
}

/* Hover effects */
.social-bar-item.social-facebook:hover {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}
.social-bar-item.social-facebook:hover .social-icon-circle {
  background: #1877f2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.social-bar-item.social-youtube:hover {
  background: rgba(255, 0, 0, 0.12);
  color: #ff2a2a;
}
.social-bar-item.social-youtube:hover .social-icon-circle {
  background: #ff0000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.35);
}

.social-bar-item.social-x:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.social-bar-item.social-x:hover .social-icon-circle {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

@media (max-width: 640px) {
  .footer-social-bar {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 2rem;
  }
  .social-bar-item {
    padding: 0.85rem 0.25rem;
    font-size: 0.8rem;
    gap: 6px;
  }
  .social-bar-item .social-icon-circle {
    width: 28px;
    height: 28px;
  }
}


/* ==========================================================================
   ⭐ AFFILIATE IN-CONTENT CARD (DICA DA REDAÇÃO - AMAZON)
   ========================================================================== */
.affiliate-incontent-card {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(21, 27, 48, 0.95), rgba(15, 20, 36, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px -3px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.affiliate-incontent-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.affiliate-incontent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.affiliate-badge-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.1rem;
}

.affiliate-badge-label .affiliate-icon {
  font-size: 1rem;
}

.affiliate-badge-label .affiliate-label-text {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
}

.affiliate-badge-label .affiliate-store-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-left: auto;
}

.affiliate-card-body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.affiliate-img-wrapper {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.affiliate-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.affiliate-info-wrapper {
  flex: 1;
}

.affiliate-product-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.4rem 0;
}

.affiliate-disclaimer {
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0 0 0.9rem 0;
  line-height: 1.4;
}

.affiliate-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070913 !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.affiliate-cta-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .affiliate-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .affiliate-img-wrapper {
    width: 90px;
    height: 90px;
  }
  .affiliate-cta-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   📱 OTIMIZAÇÃO MOBILE PROFISSIONAL (ADEQUAÇÃO CORE WEB VITALS & ADSENSE)
   ========================================================================== */

/* Prevenção global de estouro de layout horizontal */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ajustes responsivos para tablets e celulares (<= 768px) */
@media (max-width: 768px) {
  .article-wrapper {
    padding: 1.5rem 1rem 3rem 1rem;
  }
  .article-title {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    word-break: break-word;
  }
  .article-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
  }
  .author-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Ajustes cirúrgicos para smartphones (<= 640px) */
@media (max-width: 640px) {
  /* Container e grid responsivos */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .grid-articles {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Cabeçalho seguro sem corte de botões */
  .nav-top {
    padding: 0.6rem 0;
    gap: 10px;
  }
  .brand-logo {
    font-size: 1.25rem;
    gap: 8px;
  }
  .brand-logo svg, .brand-logo img {
    width: 32px;
    height: 32px;
  }
  .header-search input[type="search"] {
    width: 90px;
  }
  .header-search:focus-within input[type="search"] {
    width: 130px;
  }

  /* Barra de categorias com rolagem suave por toque */
  .category-nav {
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem;
    gap: 6px;
    scroll-snap-type: x mandatory;
  }
  .category-pill {
    scroll-snap-align: start;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }

  /* Corpo do artigo imune a quebras e overflow */
  .article-body {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  .article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px;
  }

  .article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5rem 0;
  }

  .article-body pre, 
  .article-body code {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
  }

  .article-body iframe {
    max-width: 100% !important;
  }

  /* Callouts e citações no mobile */
  .callout-box {
    padding: 1.1rem !important;
    margin: 1.75rem 0 !important;
    border-radius: 10px !important;
  }
  .article-quote {
    padding: 1.2rem 1.1rem !important;
    margin: 1.75rem 0 !important;
    font-size: 1.05rem !important;
  }

  /* Player de vídeo 16:9 fluido */
  .video-container {
    margin: 1.75rem 0;
    border-radius: 10px;
  }

  /* Rodapé e contadores ajustados */
  .footer-counters {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 14px;
    gap: 10px;
  }
}

/* Telas ultra-estreitas (iPhone SE / telas <= 380px) */
@media (max-width: 380px) {
  .brand-logo {
    font-size: 1.1rem;
  }
  .header-search input[type="search"] {
    width: 75px;
  }
  .header-search:focus-within input[type="search"] {
    width: 110px;
  }
  .article-title {
    font-size: 1.45rem !important;
  }
}


/* =========================================
   HAMBURGER BUTTON & MOBILE DRAWER (MENU)
   ========================================= */
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hamburger-btn:hover, .hamburger-btn:active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(7, 9, 19, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 0 3rem 0;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  transform: translateY(0);
}

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

.drawer-title {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.drawer-section {
  margin-bottom: 1.75rem;
}

.drawer-section-title {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.drawer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.drawer-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-link.active, .drawer-link:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.drawer-links-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-link-item {
  padding: 10px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Regras para exibir o hamburger e drawer no mobile */
@media (max-width: 900px) {
  .hamburger-btn {
    display: inline-flex !important;
  }
  .mobile-drawer {
    display: block;
  }
  
  /* Corrige a grade do hero em tablets e celulares */
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
  .card-featured {
    width: 100% !important;
    max-width: 100% !important;
  }
  .sidebar-trending {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  /* No celular, reduz a altura da imagem destacada para ficar proporcional */
  .card-featured .img-wrap {
    height: 240px !important;
  }
  .card-featured .card-content {
    padding: 1.25rem !important;
  }
  .card-featured h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
  .post-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
}


/* Ajuste fino dos botões do topo para celulares estreitos */
@media (max-width: 640px) {
  .nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
  .nav-actions {
    gap: 6px;
  }
  .header-search input[type="search"] {
    width: 70px;
    font-size: 0.8rem;
  }
  .header-search:focus-within input[type="search"] {
    width: 110px;
  }
  .header-anuncie-btn {
    padding: 6px 8px;
  }
  .hamburger-btn {
    padding: 6px 8px;
  }
}
