/* ═══════════════════════════════════════════════════
   Cookie Consent — Card Flutuante Premium
   ═══════════════════════════════════════════════════ */

#cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 520px;

  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0   rgba(255, 255, 255, 0.07) inset,
    0 24px 64px rgba(0, 0, 0, 0.75),
    0  8px 24px rgba(0, 0, 0, 0.5);

  opacity: 0;
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity   400ms ease;
}

#cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

#cookie-banner.hiding {
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  opacity: 0;
  pointer-events: none;
}

/* ── Topo: ícone + badge ── */
.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.cookie-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.cookie-header-text {
  flex: 1;
}

.cookie-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 0.1rem;
}

.cookie-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.cookie-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  animation: cookie-pulse 2.4s ease infinite;
}

@keyframes cookie-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Descrição ── */
.cookie-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

/* ── Divisor ── */
.cookie-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 0 1.25rem;
}

/* ── Rodapé: info de LGPD + botões ── */
.cookie-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-legal {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 100px;
}

/* ── Botões ── */
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  transition:
    transform     240ms cubic-bezier(0.16, 1, 0.3, 1),
    background    240ms ease,
    box-shadow    240ms ease,
    color         240ms ease;
}

.cookie-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 3px;
}

.cookie-btn:active { transform: scale(0.96) !important; }

/* Recusar */
.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Aceitar */
.cookie-btn-accept {
  background: #f2f2f2;
  color: #080808;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 2px 10px rgba(255,255,255,0.1);
}

.cookie-btn-accept:hover {
  background: #e4e4e4;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(0,0,0,0.08),
    0 5px 18px rgba(255,255,255,0.14);
}

/* ── Responsivo ── */
@media (max-width: 540px) {
  #cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateX(0) translateY(110%);
    padding: 1.5rem 1.25rem 1.75rem;
  }

  #cookie-banner.visible {
    transform: translateX(0) translateY(0);
  }

  #cookie-banner.hiding {
    transform: translateX(0) translateY(110%);
  }

  .cookie-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 1rem;
  }
}
