/**
 * Estilos para o Hub de Comparação de Corretoras — lucrar.pt
 */

:root {
  --lcr-gold-accent: #efd7a0;
  --lcr-gold-glow: rgba(239, 215, 160, 0.15);
  --lcr-bg-card: rgba(255, 255, 255, 0.03);
  --lcr-border-card: rgba(255, 255, 255, 0.08);
  --lcr-text-muted: #a3a3a3;
  --lcr-green-accent: #00c16a;
}

/* Container Principal */
.lcr-hub-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  box-sizing: border-box;
}

/* Barra de Ações (Filtros e Pesquisa) */
.lcr-hub-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
  background: rgba(255, 255, 255, 0.02);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--lcr-border-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .lcr-hub-actions-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Barra de Pesquisa */
.lcr-hub-search-wrap {
  position: relative;
  flex: 1;
  max-width: 100%;
}

@media (min-width: 768px) {
  .lcr-hub-search-wrap {
    max-width: 380px;
  }
}

.lcr-hub-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--lcr-text-muted);
  pointer-events: none;
}

#lcr-hub-search {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 46px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--lcr-border-card);
  border-radius: 24px;
  color: #f1f5f9;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

#lcr-hub-search:focus {
  border-color: var(--lcr-gold-accent);
  box-shadow: 0 0 12px var(--lcr-gold-glow);
  background: rgba(0, 0, 0, 0.35);
}

/* Filtros por Corretora */
.lcr-hub-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .lcr-hub-filter-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
}

.lcr-hub-filter-label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--lcr-text-muted);
  letter-spacing: 0.05em;
}

.lcr-hub-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botões do Filtro */
.lcr-hub-filter-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 40px !important;
  padding: 0 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--lcr-border-card) !important;
  border-radius: 20px !important;
  color: #f1f5f9 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lcr-hub-filter-btn img {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  background: transparent !important;
}

.lcr-hub-filter-btn-text {
  display: inline-block !important;
}

.lcr-hub-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  text-decoration: none !important;
}

.lcr-hub-filter-btn.active {
  background: var(--lcr-gold-accent) !important;
  border-color: var(--lcr-gold-accent) !important;
  color: #0e1116 !important;
}

.lcr-hub-filter-btn.active:hover {
  transform: none !important;
  text-decoration: none !important;
}

/* Grelha de Cartões (Matchups) */
.lcr-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .lcr-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lcr-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cartão Visual de Matchup */
.lcr-hub-card {
  background: var(--lcr-bg-card);
  border: 1px solid var(--lcr-border-card);
  border-radius: 20px;
  padding: 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: lcrFadeInUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lcr-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--lcr-gold-accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lcr-hub-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 215, 160, 0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(239, 215, 160, 0.05);
}

.lcr-hub-card:hover::before {
  opacity: 1;
}

/* Estrutura do Confronto (Logos e VS) */
.lcr-hub-matchup {
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  padding: 10px 0;
}

.lcr-hub-broker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 40%;
}

.lcr-hub-logo-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #151a22;
  border: 2px solid var(--lcr-border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

.lcr-hub-logo-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lcr-hub-logo-placeholder {
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--lcr-gold-accent);
}

.lcr-hub-broker-name {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* VS Badge */
.lcr-hub-vs-badge {
  font-size: 12px;
  font-weight: 900;
  color: #0e1116;
  background: var(--lcr-gold-accent);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 10px rgba(239, 215, 160, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Corpo do Cartão */
.lcr-hub-card-body {
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.lcr-hub-matchup-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.lcr-hub-taglines {
  font-size: 13px;
  color: var(--lcr-text-muted);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* Botões */
.lcr-hub-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.lcr-hub-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  border-radius: 21px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.lcr-hub-btn:hover {
  text-decoration: none !important;
}

/* Botão Comparação Completa (Estilo Dourado/Creme) */
.lcr-hub-btn--comparison {
  background: transparent !important;
  border: 1px solid var(--lcr-gold-accent) !important;
  color: var(--lcr-gold-accent) !important;
}

.lcr-hub-btn--comparison:hover {
  background: var(--lcr-gold-accent) !important;
  color: #0e1116 !important;
  box-shadow: 0 0 10px var(--lcr-gold-glow) !important;
}

/* Botão Análise (Estilo Verde/Escuro) */
.lcr-hub-btn--analysis {
  background: var(--lcr-green-accent) !important;
  border: 1px solid var(--lcr-green-accent) !important;
  color: #0e1116 !important;
}

.lcr-hub-btn--analysis:hover {
  background: #00e07c !important;
  border-color: #00e07c !important;
  box-shadow: 0 0 12px rgba(0, 193, 106, 0.2) !important;
}

/* Botão Desativado (Brevemente) */
.lcr-hub-btn--disabled {
  background: rgba(255,255,255,0.01) !important;
  border: 1px dashed rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.2) !important;
  cursor: not-allowed;
}

/* Estado Vazio */
.lcr-hub-vazio {
  text-align: center;
  padding: 60px 20px;
  color: var(--lcr-text-muted);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Centralização do Título Principal da Página nas rotas do Hub */
.page-id-71422 .page-header,
.page-id-71424 .page-header,
.page-id-71422 .entry-title,
.page-id-71424 .entry-title {
  text-align: center !important;
}

/* Micro-animações interativas ao passar o rato (hover) nos cartões */
.lcr-hub-card:hover .lcr-hub-logo-circle {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(0,0,0,0.6);
}

.lcr-hub-card:hover .lcr-hub-vs-badge {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 14px rgba(239, 215, 160, 0.45), 0 0 18px rgba(239, 215, 160, 0.35);
}

/* Animação Premium de entrada das informações */
@keyframes lcrFadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

