/* === BLOG SEO STYLES === */

/* Reset e base */
.blog-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(16, 16, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}

.nav-logo .logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(255, 47, 179, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--neon);
}

.nav-cta {
  background: linear-gradient(135deg, var(--neon), var(--blue));
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.blog-hero {
  background: linear-gradient(135deg, rgba(255, 47, 179, 0.1), rgba(0, 208, 255, 0.1));
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon), var(--vio), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filtros */
.blog-filters {
  padding: 40px 0;
  background: rgba(16, 16, 24, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 8px 16px;
  min-width: 300px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-size: 16px;
  outline: none;
  padding: 8px 12px;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: var(--neon);
}

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

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-tab:hover,
.filter-tab.active {
  background: linear-gradient(135deg, var(--neon), var(--blue));
  color: var(--bg);
  border-color: transparent;
}

/* Artigos */
.blog-articles {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-post {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.blog-post:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 47, 179, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.post-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}

.post-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-category {
  background: linear-gradient(135deg, var(--neon), var(--blue));
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content {
  padding: 16px 24px 24px;
}

.post-excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.read-more:hover {
  gap: 12px;
}

/* Loading */
.loading-spinner {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Paginação */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.pagination-btn:hover,
.pagination-btn.active {
  background: linear-gradient(135deg, var(--neon), var(--blue));
  color: var(--bg);
  border-color: transparent;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.blog-footer {
  background: rgba(8, 8, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text);
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.footer-section p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin: 0 0 8px;
}

.footer-section ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--neon);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--neon);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* Blog Intent Section - Captura de Intent (não lead) */
.blog-intent {
  margin: 80px auto 60px;
  max-width: 800px;
  padding: 0 20px;
}

.intent-box {
  background: linear-gradient(135deg, rgba(255, 47, 179, 0.1), rgba(138, 43, 226, 0.1));
  border: 1px solid rgba(255, 47, 179, 0.3);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.intent-box h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--neon), var(--vio));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intent-box p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.intent-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.intent-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--neon), var(--vio));
  color: var(--bg);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 47, 179, 0.3);
}

.intent-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 47, 179, 0.5);
  background: linear-gradient(135deg, var(--vio), var(--neon));
}

.intent-btn:active {
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .intent-box {
    padding: 32px 24px;
  }
  
  .intent-box h3 {
    font-size: 24px;
  }
  
  .intent-box p {
    font-size: 16px;
  }
  
  .intent-actions {
    flex-direction: column;
  }
  
  .intent-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    min-width: auto;
  }
  
  .filter-tabs {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-post {
    margin: 0 10px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post {
  animation: fadeInUp 0.6s ease forwards;
}

.blog-post:nth-child(1) { animation-delay: 0.1s; }
.blog-post:nth-child(2) { animation-delay: 0.2s; }
.blog-post:nth-child(3) { animation-delay: 0.3s; }
.blog-post:nth-child(4) { animation-delay: 0.4s; }
.blog-post:nth-child(5) { animation-delay: 0.5s; }
.blog-post:nth-child(6) { animation-delay: 0.6s; }
