/* ===== VARIAVEIS IAFLUXO ===== */
:root {
  /* Cores principais */
  --primary-blue: #1a73e8;
  --secondary-orange: #f59e0b;
  --accent-green: #10b981;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  
  /* Cores de texto */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  
  /* Cores para footer (unificadas) */
  --black: #000000;
  --white: #ffffff;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-500: #737373;
  --gray-800: #262626;
  
  /* Tipografia */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* TransiÃ§Ãµes */
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: white;
  margin: 0;
  padding: 0;
}

/* ===== TYPOGRAPHY IAFLUXO ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.25rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.875rem;
  color: var(--primary-blue);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

/* ===== BLOG LAYOUT ===== */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-header {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
  color: white;
  margin-bottom: 4rem;
  border-radius: 20px;
}

.blog-header h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  -webkit-text-fill-color: white;
}

.blog-header p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SEARCH BAR ===== */
.search-container {
  max-width: 500px;
  margin: 3rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-blue);
}

.article-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.article-date {
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-category {
  background: var(--accent-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.article-summary {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.read-more:hover {
  gap: 1rem;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.125rem;
}

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

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

/* ===== BUTTONS & CTAs ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: #1557b0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
  background: var(--secondary-orange);
  color: white;
}

.btn-secondary:hover {
  background: #d97706;
  transform: translateY(-2px);
}

/* ===== CALLOUTS & BOXES ===== */
.callout {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-green);
  background: var(--light-bg);
}

.callout.warning {
  border-left-color: var(--secondary-orange);
  background: #fef3c7;
}

.callout.info {
  border-left-color: var(--primary-blue);
  background: #dbeafe;
}

/* ===== FOOTER STYLES ===== */
/* Ocultar footer padrÃ£o do Grav */
#footer .footer-wrapper p,
footer .footer-content,
.footer-bottom {
  display: none !important;
}

/* Footer customizado IAFluxo */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  letter-spacing: -0.5px;
}

.footer-brand p {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.footer-contact a:hover {
  border-bottom-color: var(--white);
  transform: translateY(-1px);
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 0.25rem 0;
  display: block;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-cta h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-cta p {
  color: var(--gray-300);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.cta-button:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  color: var(--black);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--gray-500);
  margin: 0;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--gray-300);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2.5rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .navbar {
    padding: 0 1rem;
  }
  
  .blog-container {
    padding: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .footer {
    padding: 3rem 1rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-legal {
    gap: 1rem;
  }
  
  .footer-contact {
    justify-content: center;
    gap: 1rem;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .blog-header {
    padding: 2rem 1rem;
  }
  
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .article-card {
    margin: 0 0.5rem;
  }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-blue); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
  .footer {
    background: var(--black);
    border-top-color: #333333;
  }
}