@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Primary - Teal/Green for trust and growth */
  --primary: 168 80% 35%;
  --primary-foreground: 0 0% 100%;
  --primary-light: 168 70% 45%;
  --primary-dark: 168 85% 25%;
  
  /* Background tones */
  --background: 210 20% 98%;
  --foreground: 220 25% 15%;
  
  /* Cards and surfaces */
  --card: 0 0% 100%;
  --card-foreground: 220 25% 15%;
  --card-hover: 168 30% 97%;
  
  --popover: 0 0% 100%;
  --popover-foreground: 220 25% 15%;
  
  /* Secondary - Warm neutral */
  --secondary: 35 30% 95%;
  --secondary-foreground: 220 25% 20%;
  
  /* Muted */
  --muted: 210 15% 93%;
  --muted-foreground: 220 10% 45%;
  
  /* Accent - Amber for highlights */
  --accent: 38 95% 55%;
  --accent-foreground: 220 25% 15%;
  --accent-light: 38 95% 65%;
  
  /* Semantic */
  --destructive: 0 75% 55%;
  --destructive-foreground: 0 0% 100%;
  
  --success: 145 65% 42%;
  --success-foreground: 0 0% 100%;
  
  /* Borders and inputs */
  --border: 210 20% 88%;
  --input: 210 20% 88%;
  --ring: 168 80% 35%;
  
  --radius: 0.75rem;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(168 80% 35%), hsl(168 70% 45%));
  --gradient-hero: linear-gradient(180deg, hsl(168 30% 97%) 0%, hsl(210 20% 98%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(168 20% 98%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(38 95% 55%), hsl(38 95% 65%));
  
  /* Shadows */
  --shadow-sm: 0 1px 3px hsl(220 25% 15% / 0.06);
  --shadow-md: 0 4px 12px hsl(220 25% 15% / 0.08);
  --shadow-lg: 0 8px 30px hsl(220 25% 15% / 0.12);
  --shadow-glow: 0 0 40px hsl(168 80% 35% / 0.15);
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-balance {
  text-wrap: balance;
}

.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-hero {
  background: var(--gradient-hero);
}

.gradient-accent {
  background: var(--gradient-accent);
}

.shadow-card {
  box-shadow: var(--shadow-md);
}

.shadow-card-hover {
  box-shadow: var(--shadow-lg);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-bottom {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}

.animate-slide-in-bottom {
  animation: slide-in-bottom 0.4s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Utility classes */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Autocomplete: highlight sem quebrar a palavra; painel acima do hero */
.busca-ac-mark {
  padding: 0;
  margin: 0;
  border: 0;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.busca-ac-panel {
  background-color: hsl(var(--card));
  z-index: 200;
  position: absolute;
}

/* Conteúdo de notícia/blog (HTML do Blog IA) — sem depender do plugin Typography */
.noticia-conteudo {
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
  line-height: 1.75;
}

.noticia-conteudo > *:first-child {
  margin-top: 0;
}

.noticia-conteudo h1,
.noticia-conteudo h2,
.noticia-conteudo h3,
.noticia-conteudo h4 {
  color: hsl(var(--foreground));
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.noticia-conteudo h1 { font-size: 1.75rem; }
.noticia-conteudo h2 { font-size: 1.5rem; }
.noticia-conteudo h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.noticia-conteudo h4 { font-size: 1.125rem; margin-top: 1.25rem; }

.noticia-conteudo p {
  margin: 0 0 1.15rem;
  color: hsl(var(--muted-foreground));
}

.noticia-conteudo ul,
.noticia-conteudo ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  color: hsl(var(--muted-foreground));
}

.noticia-conteudo ul {
  list-style: disc;
}

.noticia-conteudo ol {
  list-style: decimal;
}

.noticia-conteudo li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
}

.noticia-conteudo li > p {
  margin-bottom: 0.35rem;
}

.noticia-conteudo strong,
.noticia-conteudo b {
  color: hsl(var(--foreground));
  font-weight: 650;
}

.noticia-conteudo a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.noticia-conteudo a:hover {
  opacity: 0.85;
}

.noticia-conteudo blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid hsl(var(--primary));
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
  border-radius: 0 0.5rem 0.5rem 0;
}

.noticia-conteudo hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid hsl(var(--border));
}

/* Banner Premium (home) */
.premium-banner-track {
  position: relative;
}

.premium-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 240px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,.06));
  transition: transform .2s ease, box-shadow .2s ease;
}

.premium-banner-slide:hover .premium-banner {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg, 0 16px 40px rgba(0,0,0,.1));
}

.premium-banner-media {
  position: relative;
  min-height: 240px;
}

.premium-banner-media img,
.premium-banner-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.premium-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, hsl(var(--card)) 100%);
  pointer-events: none;
}

.premium-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.75rem 1.75rem 1rem;
  gap: 0.65rem;
}

.premium-banner-cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.premium-banner-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: hsl(var(--foreground));
  line-height: 1.2;
  margin: 0;
}

.premium-banner-text {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36ch;
}

.premium-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.premium-banner-cta,
.premium-banner-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.premium-banner-cta {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary)));
  color: hsl(var(--primary-foreground));
}

.premium-banner-wa {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

.premium-banner-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.premium-banner-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: hsl(var(--muted-foreground) / 0.35);
  cursor: pointer;
}

.premium-banner-dot.is-active {
  background: hsl(var(--primary));
  width: 1.25rem;
}

@media (max-width: 768px) {
  .premium-banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .premium-banner-media {
    min-height: 180px;
  }
  .premium-banner-overlay {
    background: linear-gradient(180deg, transparent 30%, hsl(var(--card)) 95%);
  }
  .premium-banner-content {
    padding: 1.25rem 1.25rem 1.4rem;
  }
}

/* Descrição do classificado: à esquerda, igual ao texto do editar */
.classificado-descricao {
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left !important;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Fotos de classificado: quadro fixo, imagem inteira (sem cortar) */
.classificado-foto-frame {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.classificado-foto-completa {
  display: block;
  object-fit: contain;
  object-position: center;
}

