/* ==========================================================================
   PORTAL IGNIÇÃO TOTAL - DESIGN SYSTEM & MAIN STYLES (2026 EDITION)
   Design ultra-moderno, alto contraste, responsivo e 100% Core Web Vitals
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Cores de Fundo e Superfície */
  --bg-primary: #07090e;
  --bg-secondary: #0e131f;
  --bg-card: #141c2e;
  --bg-card-hover: #1c2740;
  --bg-surface: #1e293b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 107, 0, 0.45);

  /* Acentos de Marca - Ignição Total */
  --accent-primary: #ff6b00;
  --accent-secondary: #ff3838;
  --accent-gradient: linear-gradient(135deg, #ff6b00 0%, #ff3b30 100%);
  --accent-glow: radial-gradient(circle, rgba(255, 107, 0, 0.25) 0%, rgba(255, 59, 48, 0) 70%);
  --accent-cyan: #00d2ff;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  /* Tipografia & Cores de Texto */
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-inverse: #07090e;

  /* Efeitos e Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(255, 107, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-max: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 10% 10%, rgba(255, 107, 0, 0.04) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(0, 210, 255, 0.03) 0px, transparent 50%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   CABEÇALHO & NAVBAR MODERNA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}

.brand-logo .brand-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-icon {
  transform: rotate(-5deg) scale(1.05);
}

.brand-logo span.accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  position: relative;
  letter-spacing: -0.1px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-search-trigger {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-search-trigger:hover {
  border-color: var(--accent-primary);
  color: #fff;
  background: var(--bg-card-hover);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION & DESTAQUES
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2rem;
}

.hero-intro {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--accent-primary);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-title span.highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Card Destaque Hero */
.hero-featured-card {
  background: linear-gradient(135deg, rgba(20, 28, 46, 0.95) 0%, rgba(14, 19, 31, 0.9) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.hero-featured-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.hero-featured-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: var(--accent-glow);
  pointer-events: none;
}

.featured-badge {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.15rem;
  color: #fff;
}

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

.featured-excerpt {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  max-width: 920px;
  line-height: 1.65;
}

.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   GRID DE ARTIGOS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-accent {
  background: rgba(255, 107, 0, 0.14);
  color: var(--accent-primary);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.read-time {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: #fff;
}

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

.card-excerpt {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.15rem;
  font-size: 0.875rem;
}

.card-date {
  color: var(--text-dim);
}

.btn-read {
  font-weight: 700;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--transition-fast);
}

.btn-read:hover {
  color: #ff8533;
  transform: translateX(4px);
}

/* ==========================================================================
   VITRINE DE CATEGORIAS
   ========================================================================== */
.categories-showcase {
  margin-bottom: 4.5rem;
}

.category-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.25rem;
}

.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.category-block-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.category-block-header .view-all {
  font-size: 0.92rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.category-block-header .view-all:hover {
  text-decoration: underline;
}

.category-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cat-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  transition: all var(--transition-fast);
}

.cat-preview-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.cat-preview-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  color: #fff;
}

.cat-preview-card .meta {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   BOTÕES & PUBLICIDADE
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 0, 0.5);
}

.ad-slot-container {
  margin: 3rem 0;
  padding: 1.25rem;
  background: rgba(14, 19, 31, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  text-align: center;
}

.ad-slot-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.ad-slot-placeholder {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==========================================================================
   RODAPÉ (COMPLIANCE & E-E-A-T)
   ========================================================================== */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2.5rem;
  margin-top: 6rem;
  font-size: 0.94rem;
}

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

.footer-brand .brand-logo {
  margin-bottom: 1.15rem;
}

.footer-desc {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.35rem;
}

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

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
  gap: 1rem;
}

/* ==========================================================================
   MODAL DE BUSCA & CONSENTIMENTO
   ========================================================================== */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.5rem 2rem;
}

.search-modal.active {
  display: flex;
}

.search-container {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 660px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.9);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.search-input-wrapper input {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  font-family: var(--font-body);
  outline: none;
}

.search-results {
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem;
}

.search-item {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: background var(--transition-fast);
}

.search-item:hover {
  background: var(--bg-surface);
}

.search-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.search-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 580px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 68px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .featured-title {
    font-size: 1.6rem;
  }

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

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