/**
 * MODAL LGPD/COOKIES - MM Filmes
 * Barra de consentimento de cookies conforme LGPD
 * Tema: dark — combina com o design do site
 */

.lgpd-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1f2a44 0%, #0b0c10 100%);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
  border-top: 2px solid #45f3ff;
  padding: 1.25rem 0;
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideUpLGPD 0.5s ease-out forwards;
}

.lgpd-modal.lgpd-hidden {
  transform: translateY(110%);
  pointer-events: none;
  animation: none;
}

.lgpd-modal-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lgpd-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #45f3ff 0%, #2563eb 100%);
  border-radius: 12px;
  flex-shrink: 0;
}

.lgpd-icon-wrapper i {
  color: #0b0c10;
  font-size: 1.4rem;
}

.lgpd-text {
  flex: 1;
  min-width: 260px;
}

.lgpd-text h5 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
}

.lgpd-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.55;
}

.lgpd-text a {
  color: #45f3ff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.lgpd-text a:hover {
  color: #ffffff;
}

.lgpd-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  align-items: center;
}

.lgpd-btn {
  padding: 0.65rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Montserrat', sans-serif;
}

.lgpd-btn-accept {
  background: linear-gradient(135deg, #45f3ff 0%, #2563eb 100%);
  color: #0b0c10;
  box-shadow: 0 4px 14px rgba(69, 243, 255, 0.25);
}

.lgpd-btn-accept:hover {
  background: linear-gradient(135deg, #6ff7ff 0%, #3b82f6 100%);
  box-shadow: 0 6px 18px rgba(69, 243, 255, 0.4);
  transform: translateY(-2px);
  color: #0b0c10;
}

.lgpd-btn-reject {
  background: transparent;
  color: #9ca3af;
  border: 1px solid #374151;
}

.lgpd-btn-reject:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #6b7280;
  color: #e0e0e0;
}

/* Animação de entrada */
@keyframes slideUpLGPD {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 992px) {
  .lgpd-modal {
    padding: 1rem 0;
  }

  .lgpd-modal-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .lgpd-icon-wrapper {
    margin: 0 auto;
  }

  .lgpd-actions {
    width: 100%;
    flex-direction: column;
  }

  .lgpd-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .lgpd-text h5 {
    font-size: 0.95rem;
  }

  .lgpd-text p {
    font-size: 0.8125rem;
  }

  .lgpd-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Acessibilidade — foco visível */
.lgpd-btn:focus-visible {
  outline: 3px solid #45f3ff;
  outline-offset: 3px;
}

/* Impressão — ocultar */
@media print {
  .lgpd-modal {
    display: none !important;
  }
}
