/* ===== Corrida.blog – Custom UX/UI Styles ===== */

/* Hero com imagem de fundo */
.hero-bg {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.95) 0%, rgba(30, 64, 175, 0.9) 100%),
              url('https://images.unsplash.com/photo-1552674605-db6ffd4facb5?w=1200&q=80') center/cover;
  background-attachment: fixed;
}

/* Hover de cards genéricos */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Cards de pilares / categorias */
.pillar-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  border-color: rgb(59, 130, 246);
}

/* Bolinha de ícone nos pilares */
.icon-circle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: 12px;
}

/* FAQ estilizado com seta animada */
details summary {
  list-style: none;
  position: relative;
  padding-left: 28px;
  transition: color 0.2s ease;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 12px;
  transition: transform 0.3s ease;
  color: #2563eb;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] {
  border-left: 3px solid #3b82f6;
  padding-left: 12px;
}

details > p {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Badge com animação (Popular / Novo) */
.badge-new {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

/* Thumbnails dos artigos */
.thumbnail-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .thumbnail-img {
    width: 100%;
    height: 180px;
  }
}

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1d4ed8;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Newsletter sticky bar no rodapé */
.newsletter-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%);
  color: white;
  padding: 12px 16px;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 50;
}

.newsletter-sticky.show {
  transform: translateY(0);
}

/* Prova social no hero (badge de leitores) */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
}

/* Underline animado nos links do nav */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link[data-current="true"]::after {
  width: 100%;
}

/* Indicador de página ativa (setado via JS) */
.nav-link[data-current="true"] {
  color: #2563eb;
  font-weight: 600;
}
/* Underline animado nos links do nav */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link[data-current="true"]::after {
  width: 100%;
}

/* Indicador de página ativa */
.nav-link[data-current="true"] {
  color: #2563eb;
  font-weight: 600;
}
