/* ============================================================
   NOMES MAIS USADOS NO BRASIL — CSS
   significadonomes.com | Desde 2004
   ============================================================ */

/* ── Variáveis ── */
:root {
  --fem-color: #c2185b;
  --fem-light: #fce4ec;
  --fem-mid: #f48fb1;
  --masc-color: #1565c0;
  --masc-light: #e3f2fd;
  --masc-mid: #90caf9;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #b45309;
  --green: #15803d;
  --ibge-blue: #003476;
}

/* ── Layout geral ── */
.usados-page { background: #f8fafc; }

/* Corrige o padding-bottom excessivo do header nas páginas de artigo */
.usados-page .site-header {
  padding-bottom: 1.5rem;
}

.usados-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* ── Breadcrumb (sobrescreve o do nomes-bonitos.css) ── */
.usados-page .breadcrumb-nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}
.usados-page .breadcrumb-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  font-size: 0.83rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.usados-page .breadcrumb-container a {
  color: #1565c0;
  text-decoration: none;
  font-weight: 600;
}
.usados-page .breadcrumb-container a:hover { text-decoration: underline; }
.usados-page .breadcrumb-sep { color: #d1d5db; }

/* ── HERO ── */
.usados-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #c2185b 100%);
  border-radius: 20px;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.usados-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.usados-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.usados-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.usados-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: white;
}
.usados-hero-title span {
  color: #ffd54f;
}
.usados-hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}
.usados-hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.usados-hero-meta span {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
}

/* ── INTRO / IBGE ── */
.usados-intro {
  margin-bottom: 2.5rem;
}
.ibge-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
  border: 1px solid #c7d7f9;
  border-left: 5px solid var(--ibge-blue);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.ibge-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.ibge-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ibge-blue);
  margin: 0 0 0.7rem;
}
.ibge-card p {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

/* Estatísticas de impacto */
.usados-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.usados-stat-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.usados-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary, #1565c0);
  margin-bottom: 0.3rem;
}
.usados-stat-label {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
}

/* ── SUMÁRIO ── */
.usados-sumario {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}
.usados-sumario p {
  margin: 0 0 0.6rem;
  color: #374151;
  font-size: 0.88rem;
}
.usados-sumario ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.3rem 1.5rem;
}
.usados-sumario a {
  color: var(--primary, #1565c0);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.87rem;
}
.usados-sumario a:hover { text-decoration: underline; }

/* ── SEÇÕES ── */
.usados-section {
  margin-bottom: 3.5rem;
}
.usados-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
}
.usados-section-header.feminino {
  background: linear-gradient(135deg, var(--fem-color), #e91e63);
  color: white;
}
.usados-section-header.masculino {
  background: linear-gradient(135deg, var(--masc-color), #1976d2);
  color: white;
}
.usados-section-header.regiao {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: white;
}
.usados-section-header.curiosidades {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
}
.usados-section-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.usados-section-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: white;
}
.usados-section-header p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* ── RANKING GRID ── */
.usados-ranking-grid {
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.usados-rank-card {
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 1.3rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: 0 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  align-items: start;
}
.usados-rank-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.usados-rank-card.destaque.feminino-card {
  background: linear-gradient(135deg, #fff5f7, #fce4ec);
  border-color: var(--fem-mid);
}
.usados-rank-card.destaque.masculino-card {
  background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
  border-color: var(--masc-mid);
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  padding-top: 0.2rem;
  color: #9ca3af;
  grid-row: 1 / 3;
}
.rank-ouro { color: var(--gold); }
.rank-prata { color: var(--silver); }
.rank-bronze { color: var(--bronze); }

.rank-info { grid-column: 2; }

.rank-nome {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #111827;
}
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.tag-pop {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 99px;
}
.rank-significado {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.65;
  margin: 0 0 0.5rem;
}
.rank-curiosidade {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  background: #f9fafb;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0 0 0.8rem;
}
.rank-btn {
  grid-column: 2;
  display: inline-block;
  background: var(--primary, #1565c0);
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: opacity 0.2s;
  width: fit-content;
}
.rank-btn:hover { opacity: 0.85; }

/* ── MINI RANKING (11-20) ── */
.usados-rank-mini-grid {
  grid-column: 1 / -1;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 0.5rem;
}
.rank-mini-titulo {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 1rem;
}
.rank-mini-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
}
.rank-mini-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
}
.rank-mini-item.feminino-mini { background: #fce4ec; }
.rank-mini-item.masculino-mini { background: #e3f2fd; }
.rank-mini-pos {
  font-weight: 800;
  color: #6b7280;
  min-width: 26px;
}
.rank-mini-nome {
  font-weight: 700;
  color: #111827;
  flex: 1;
}
.rank-mini-orig {
  font-size: 0.75rem;
  color: #6b7280;
}
.rank-mini-link {
  color: var(--primary, #1565c0);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

/* ── TAGS DE ORIGEM ── */
.tag-origem {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag-origem.hebraico { background: #fef3c7; color: #92400e; }
.tag-origem.latino { background: #e0f2fe; color: #0369a1; }
.tag-origem.grego { background: #ede9fe; color: #6d28d9; }
.tag-origem.germanico { background: #f0fdf4; color: #15803d; }
.tag-origem.celta { background: #ecfdf5; color: #065f46; }
.tag-origem.arabe { background: #fff7ed; color: #c2410c; }

/* ── NOMES MODERNOS ── */
.usados-tendencia-intro {
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  padding: 1.2rem 1.5rem 0.5rem;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.65;
}

.usados-moderno-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.2rem 1.5rem 1.5rem;
}
.usados-moderno-card {
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 1.2rem 1rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.usados-moderno-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.usados-moderno-card.feminino-mod {
  background: linear-gradient(160deg, #fff5f7, #fce4ec);
  border-color: #f48fb1;
}
.usados-moderno-card.masculino-mod {
  background: linear-gradient(160deg, #f0f7ff, #e3f2fd);
  border-color: #90caf9;
}
.mod-rank {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.usados-moderno-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.5rem;
}
.usados-moderno-card .tag-origem {
  display: inline-block;
  margin-bottom: 0.7rem;
}
.usados-moderno-card p {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.55;
  margin: 0 0 0.8rem;
}
.usados-moderno-card a {
  color: var(--primary, #1565c0);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.usados-moderno-card a:hover { text-decoration: underline; }

/* ── REGIÕES ── */
.usados-regiao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem;
}
.usados-regiao-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.regiao-header {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.7rem 1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.regiao-header.nordeste { background: #b45309; }
.regiao-header.sudeste  { background: #1565c0; }
.regiao-header.sul      { background: #15803d; }
.regiao-header.norte    { background: #065f46; }
.regiao-header.centroeste { background: #7c3aed; }
.regiao-body { padding: 1rem; }
.regiao-desc {
  font-size: 0.83rem;
  color: #374151;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}
.regiao-nomes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.regiao-nome-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
}
.regiao-nome-tag.fem { background: var(--fem-light); color: var(--fem-color); }
.regiao-nome-tag.masc { background: var(--masc-light); color: var(--masc-color); }

/* ── CURIOSIDADES ── */
.usados-curiosidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem;
}
.curiosidade-card {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 1.2rem;
}
.curio-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}
.curiosidade-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6d28d9;
  margin: 0 0 0.5rem;
}
.curiosidade-card p {
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}

/* ── FAQ ── */
.usados-faq {
  margin-bottom: 3rem;
}
.usados-faq h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1.2rem;
}
.faq-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-item summary {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item p {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.7;
  padding: 0 1.2rem 1.1rem;
  margin: 0;
  border-top: 1px solid #f3f4f6;
}

/* ── CTA FINAL ── */
.usados-cta {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 60%, #c2185b 100%);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: white;
  margin-bottom: 3rem;
}
.usados-cta-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}
.usados-cta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.8rem;
}
.usados-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.usados-cta-btns {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.usados-cta-btn {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: opacity 0.2s, transform 0.2s;
}
.usados-cta-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.usados-cta-btn.primary {
  background: white;
  color: #1565c0;
}
.usados-cta-btn.secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 640px) {
  .usados-rank-card {
    grid-template-columns: 44px 1fr;
  }
  .rank-nome { font-size: 1.15rem; }
  .usados-moderno-grid { grid-template-columns: 1fr 1fr; }
  .usados-regiao-grid { grid-template-columns: 1fr; }
  .usados-curiosidades-grid { grid-template-columns: 1fr; }
  .ibge-card { flex-direction: column; gap: 0.8rem; }
  .usados-stats { grid-template-columns: 1fr 1fr; }
  .usados-sumario ul { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .usados-moderno-grid { grid-template-columns: 1fr; }
  .rank-mini-lista { grid-template-columns: 1fr; }
}
