/* =============================================================
   LAYOUT 4 - Cards Vibrantes
   ============================================================= */

:root {
  --accent: #6a1b9a;
  --accent2: #ffffff;
  --accent-light: color-mix(in srgb, var(--accent) 15%, #fff);
  --dark: #1a1a2e;
  --text: #2d2d44;
  --text-light: #6b6b80;
  --bg: #f8f9ff;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 40px rgba(0,0,0,0.15);
  --gradient-hero: linear-gradient(135deg, var(--accent), var(--accent2));
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; }
ul, li { list-style: none; padding: 0; margin: 0; }

.content-wrap { max-width: 100%; overflow-x: hidden; }
.main { max-width: 1280px; margin: 0 auto; padding: 20px; }

/* =============================================================
   HEADER
   ============================================================= */

.vibrant-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
}

.vibrant-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-hero);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

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

.vibrant-nav a {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.vibrant-nav a:hover, .vibrant-nav a.active { color: var(--accent); }

.nav-cta {
  background: var(--gradient-hero);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* =============================================================
   HERO
   ============================================================= */

.vibrant-hero { margin-bottom: 30px; }

.hero-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.hero-img-wrapper {
  position: relative;
  max-height: 500px;
  overflow: hidden;
}

.hero-img-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  color: #fff;
}

.hero-chapeu {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-resumo {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 10px;
  max-width: 650px;
}

.hero-date { font-size: 0.85rem; opacity: 0.7; }

/* =============================================================
   SECONDARY HIGHLIGHTS
   ============================================================= */

.secondary-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.highlight-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--white);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.highlight-card.card-accent-1 { border-top: 4px solid var(--accent); }
.highlight-card.card-accent-2 { border-top: 4px solid var(--accent2); }
.highlight-card.card-accent-3 { border-top: 4px solid color-mix(in srgb, var(--accent) 50%, var(--accent2)); }

.highlight-img-wrapper { height: 200px; overflow: hidden; }
.highlight-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.highlight-card:hover .highlight-img-wrapper img { transform: scale(1.05); }

.highlight-content { padding: 20px; }

.highlight-chapeu {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.highlight-content h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--dark);
}

/* =============================================================
   CATEGORY SECTIONS
   ============================================================= */

.dynamic-category { margin-bottom: 50px; }

.vibrant-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.vibrant-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.vibrant-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
  border-image: linear-gradient(135deg, var(--accent), var(--accent2)) 1;
}

.vibrant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.vibrant-card a { display: flex; flex-direction: column; height: 100%; }

.vibrant-card-img { height: 180px; overflow: hidden; }
.vibrant-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.vibrant-card:hover .vibrant-card-img img { transform: scale(1.08); }

.vibrant-card-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-chapeu-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}

.vibrant-card-body h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 10px;
  flex-grow: 1;
}

.vibrant-card:hover .vibrant-card-body h3 { color: var(--accent); }

.card-date {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

/* =============================================================
   ARTICLE PAGE
   ============================================================= */

.article-page { background: var(--bg); }

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--accent); font-weight: 600; }
.breadcrumb span { color: var(--text); }

.article-gradient-strip {
  height: 4px;
  background: var(--gradient-hero);
}

.vibrant-article-card {
  max-width: 800px;
  margin: 30px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.vibrant-article-card .article-header { margin-bottom: 30px; }

.article-chapeu-badge {
  display: inline-block;
  background: var(--gradient-hero);
  color: #fff;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.vibrant-article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 12px;
}

.vibrant-article-resumo {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.article-author { font-weight: 700; color: var(--accent); }

.article-main-image {
  margin: 0 -40px 30px -40px;
}

.article-main-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

.article-main-image figcaption {
  padding: 10px 40px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body p { margin-bottom: 20px; }
.article-body h2, .article-body h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark);
  margin: 30px 0 15px;
}
.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }

.article-body img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 15px 20px;
  margin: 20px 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

/* Related News */
.related-news-section {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* =============================================================
   FOOTER
   ============================================================= */

.vibrant-footer {
  background: var(--dark);
  color: #fff;
  padding: 40px;
  margin-top: 60px;
}

.vibrant-footer .footer-top {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}

.vibrant-footer .footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vibrant-footer .footer-logo .logo-icon {
  background: var(--gradient-hero);
}

.footer-copyright { font-size: 0.85rem; opacity: 0.7; }

.footer-divider {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links-inline {
  display: flex;
  gap: 20px;
}

.footer-links-inline a {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links-inline a:hover { color: #fff; }

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
  .vibrant-nav ul { display: none; }
  .mobile-menu-btn { display: block; }

  .hero-img-wrapper img { height: 300px; }
  .hero-content { padding: 20px; }
  .hero-content h1 { font-size: 1.5rem; }

  .secondary-highlights { grid-template-columns: 1fr; }

  .vibrant-cards-grid { grid-template-columns: 1fr; }

  .vibrant-article-card { margin: 15px; padding: 20px; border-radius: var(--radius-sm); }
  .vibrant-article-title { font-size: 1.6rem; }
  .article-main-image { margin: 0 -20px 20px -20px; }
  .article-main-image figcaption { padding: 8px 20px; }

  .vibrant-footer .footer-top,
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
  .footer-links-inline { flex-wrap: wrap; justify-content: center; }
}