/* ============================================================
   components.css — Componentes reutilizáveis de UI
   Botões, badges, cards, imagens
   ============================================================ */

/* ─── Autor Card ─── */
.autor-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface, #F8F9FF);
  border: 1px solid var(--border, #E8EDF5);
  border-radius: 12px;
  margin: 32px 0;
}
.autor-card__foto {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.autor-card__foto--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary, #0D47A1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.autor-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.autor-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light, #888);
  font-weight: 600;
}
.autor-card__nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #1A1A2E);
}
.autor-card__bio {
  font-size: 13px;
  color: var(--text-light, #555);
  margin: 0;
  line-height: 1.5;
}

/* ─── Botões ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semi);
  border: none;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-brand-blue);
  color: var(--color-text-white);
}

.btn--primary:hover {
  background: var(--color-brand-blue-mid);
  box-shadow: var(--shadow-md);
}

.btn--yellow {
  background: var(--color-brand-yellow);
  color: var(--color-brand-blue);
}

.btn--yellow:hover {
  background: #e6c100;
  box-shadow: 0 4px 16px rgba(255, 214, 0, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

/* ─── Badge / Tag ─── */
.badge {
  display: inline-block;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 9px;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge--blue {
  background: var(--color-brand-blue-pale);
  color: var(--color-brand-blue);
}

.badge--yellow {
  background: var(--color-brand-yellow);
  color: var(--color-brand-blue);
}

.badge--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

/* ─── Categoria pill (category bar) ─── */
.cat-pill {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.cat-pill:hover {
  color: var(--color-brand-blue);
}

.cat-pill--active {
  color: var(--color-brand-blue);
  border-bottom-color: var(--color-brand-yellow);
}

/* ─── Imagem com placeholder ─── */
.img-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-md);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.img-wrapper:hover img {
  transform: scale(1.04);
}

.img-wrapper__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  opacity: 0.25;
  background: var(--color-border);
}

/* ─── Card de notícia ─── */
.news-card {
  background: var(--color-bg-white);
  cursor: pointer;
  padding: var(--space-5);
  transition: background var(--transition-fast);
}

.news-card:hover {
  background: #FAFCFF;
}

.news-card__image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.news-card__image--lg { height: 160px; }
.news-card__image--sm { height: 90px; }

.news-card__divider {
  width: 24px;
  height: 2px;
  background: var(--color-brand-yellow);
  margin-bottom: var(--space-3);
}

.news-card__category {
  font-size: 9px;
  font-weight: var(--font-weight-semi);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-brand-blue);
  margin-bottom: var(--space-2);
  display: block;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semi);
  color: var(--color-text-primary);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}

.news-card__title--sm {
  font-size: var(--font-size-sm);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-hint);
}

.news-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-text-hint);
  flex-shrink: 0;
}

/* ─── Card de destino ─── */
.dest-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 110px;
  transition: transform var(--transition-normal);
}

.dest-card:hover {
  transform: scale(1.02);
}

.dest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dest-card__placeholder {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-color: #1A2E4A;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.dest-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.dest-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-3);
}

.dest-card__country {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: var(--font-weight-semi);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

.dest-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semi);
  color: var(--color-text-white);
}

/* ─── Item de promoção (lista editorial) ─── */
.promo-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-bg-section);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.promo-item:last-child {
  border-bottom: none;
}

.promo-item:hover {
  opacity: 0.75;
}

.promo-item__dot {
  width: 5px;
  height: 5px;
  background: var(--color-brand-yellow);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.promo-item__info {
  flex: 1;
  min-width: 0;
}

.promo-item__rota {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-item__rota em {
  color: var(--color-brand-blue);
  font-style: normal;
}

.promo-item__cia {
  font-size: var(--font-size-xs);
  color: var(--color-text-hint);
  margin-top: 2px;
}

.promo-item__preco {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semi);
  color: var(--color-brand-blue);
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-item__arrow {
  font-size: var(--font-size-xs);
  color: var(--color-text-hint);
  flex-shrink: 0;
}

/* ─── Card de dica ─── */
.dica-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  padding-right: 88px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  position: relative;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.dica-card:hover {
  border-color: var(--color-brand-blue);
  box-shadow: var(--shadow-sm);
}

.dica-card__number {
  position: absolute;
  top: var(--space-3);
  right: var(--space-5);
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: var(--font-weight-semi);
  color: var(--color-brand-blue-pale);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}


.dica-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semi);
  color: var(--color-brand-blue);
  margin-bottom: var(--space-2);
}

.dica-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ─── Item de notícia (acordeão na página de notícias) ─── */
.noticia-item {
  border-bottom: 1px solid var(--color-border);
}

.noticia-item:last-child {
  border-bottom: none;
}

.noticia-item__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-white);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.noticia-item__header:hover,
.noticia-item__header--open {
  background: #F0F7FF;
}


.noticia-item__meta {
  font-size: 9px;
  font-weight: var(--font-weight-semi);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-brand-blue-mid);
  margin-bottom: var(--space-1);
}

.noticia-item__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-snug);
}

.noticia-item__chevron {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.noticia-item__chevron--open {
  transform: rotate(180deg);
}

.noticia-item__body {
  display: none;
  padding: 0 var(--space-5) var(--space-5) calc(42px + var(--space-5) + var(--space-4));
  background: var(--color-bg-white);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.noticia-item__body--open {
  display: block;
}

/* ─── Filtro de categoria (página de notícias) ─── */
.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semi);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

.filter-btn--active {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: var(--color-text-white);
}

/* ─── Compartilhamento (usado em todas as páginas de detalhe) ─── */
.detalhe__compartilhar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  margin-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.detalhe__compartilhar-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semi);
  color: var(--color-text-muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semi);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  font-family: var(--font-body);
  line-height: 1;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.share-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.share-btn--whatsapp { background: #25D366; color: #fff; }
.share-btn--facebook  { background: #1877F2; color: #fff; }
.share-btn--copiar {
  background: var(--color-bg-light, #F0F4FF);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

@media (max-width: 480px) {
  .detalhe__compartilhar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ─── Status Badge de Promoções ─── */
.promo-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  line-height: 1.6;
}
.promo-status--ultimo_dia  { background: #fef3c7; color: #92400e; }
.promo-status--prorrogada  { background: #dbeafe; color: #1e40af; }
.promo-status--atualizada  { background: #ede9fe; color: #5b21b6; }
.promo-status--encerrada   { background: #fee2e2; color: #991b1b; }

/* Badge no card — posição absoluta sobre a imagem */
.dest-card { position: relative; }
.dest-card .promo-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  padding: 2px 10px;
}

/* Card encerrado — leve dessaturação */
.dest-card--encerrada .dest-card__img,
.dest-card--encerrada .dest-card__placeholder {
  filter: grayscale(60%);
  opacity: .85;
}

/* Aviso encerrada na página de detalhe */
.promo-aviso-encerrada {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md, 8px);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #856404;
}
.promo-aviso-encerrada a {
  color: #856404;
  font-weight: 600;
  text-decoration: underline;
}

/* Header do detalhe com título + badge lado a lado */
.promocao-detalhe__header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.promocao-detalhe__titulo {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
}

/* Botão CTA desabilitado para encerradas */
.btn--disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Perfil de Autor ─── */
.autor-perfil-section { padding: var(--space-10, 40px) 0; }

.autor-perfil {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.autor-perfil__foto {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-brand-blue, #1976D2);
}

.autor-perfil__foto--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light, #F0F4FF);
  font-size: 36px;
}

.autor-perfil__nome {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.autor-perfil__bio {
  margin: 0;
  color: var(--color-text-secondary, #555);
  line-height: 1.6;
}

/* Seções de conteúdo por autor */
.autor-secao { margin-bottom: 32px; }

.autor-secao__titulo {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text-secondary, #666);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-brand-blue, #1976D2);
  display: inline-block;
}

.autor-secao__lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.autor-secao__link {
  color: var(--color-text-primary, #111);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border, #f0f0f0);
  transition: color .15s;
}

.autor-secao__link:hover { color: var(--color-brand-blue, #1976D2); }

@media (max-width: 480px) {
  .autor-perfil { flex-direction: column; align-items: center; text-align: center; }
}
