/* Blog Desnegativa - Styles (baseado em limpa-nome) */

/* CSS Custom Properties (Variables) */
:root {
  /* Primary Colors */
  --primary: #17E1A8;
  --primary-dark: #14c594;

  /* Text Colors */
  --text: #2d3748;
  --text-light: #718096;

  /* Gray Scale */
  --gray-100: #f7fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;

  /* Semantic Colors */
  --dark: #1a202c;
  --white: #ffffff;
  --background: #f5f7fa;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #2d3748;
  line-height: 1.5;
  font-size: 15px;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  color: #2d3748;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: #17E1A8;
}

.header-cta {
  background: #17E1A8;
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.header-cta:hover {
  background: #14c594;
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #2d3748;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f9d58 0%, #17E1A8 100%);
  padding: 120px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  margin-right: 8px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #ffe066;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.95;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 12px;
}

.section-title h2 i {
  color: #17E1A8;
  margin-right: 10px;
}

.section-title p {
  color: #718096;
  font-size: 16px;
}

/* Featured Section */
.featured-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #e8f8f3 0%, #d4f5e9 100%);
}

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

.featured-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid rgba(23, 225, 168, 0.3);
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: #17E1A8;
}

.featured-card .card-image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, rgba(23,225,168,0.2), rgba(15,157,88,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.featured-card:hover .card-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #17E1A8;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-placeholder {
  font-size: 48px;
  color: rgba(23, 225, 168, 0.5);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.featured-card:hover .card-title {
  color: #17E1A8;
}

.card-excerpt {
  font-size: 14px;
  color: #718096;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #17E1A8;
  font-weight: 600;
  font-size: 14px;
}

.card-link i {
  transition: transform 0.2s;
}

.featured-card:hover .card-link i {
  transform: translateX(4px);
}

/* Articles Section */
.articles-section {
  padding: 60px 0;
}

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

.article-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-card .card-image {
  height: 180px;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #718096;
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tag {
  background: #f7fafc;
  color: #4a5568;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
  grid-column: 1 / -1;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #17E1A8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Load More */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background: #fff;
  color: #17E1A8;
  border: 2px solid #17E1A8;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  background: #17E1A8;
  color: #fff;
}

/* Categories Section */
.categories-section {
  padding: 60px 0;
  background: #fff;
}

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

.category-card {
  background: #f7fafc;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-card .card-image {
  height: 120px;
  background: #e2e8f0;
  overflow: hidden;
}

.category-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card .card-content {
  padding: 14px;
}

.category-card .card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card .card-date {
  font-size: 12px;
  color: #718096;
}

/* CTA Final */
.cta-final {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-final h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-final p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-btn.primary {
  background: #17E1A8;
  color: #fff;
}

.cta-btn.primary:hover {
  background: #14c594;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: #fff;
  color: #2d3748;
}

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

.cta-btn.whatsapp {
  background: #25D366;
  color: #fff;
}

.cta-btn.whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #1a202c;
  color: #cbd5e0;
  padding: 50px 0 30px;
}

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

.footer-brand img {
  height: 80px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e0;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: #17E1A8;
  color: #fff;
}

.footer-section h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #17E1A8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  z-index: 50;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .featured-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer .container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .header-nav.active {
    display: flex;
  }

  .header-cta {
    display: none;
  }

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

  .hero {
    padding: 100px 0 50px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title h2 {
    font-size: 22px;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
