/**
 * ==========================================
 * BANNER DE COOKIES - LGPD COMPLIANCE
 * ==========================================
 */

/* Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: radial-gradient(circle at top, #174283 0%, #0b1b33 40%, #020617 100%);
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    visibility 0.4s ease;
  border-top: 1px solid rgba(248, 175, 65, 0.35);
}

/* Mostrar */
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Esconder */
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
}

/* Conteúdo */
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

/* Ícone */
.cookie-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: rotate 3s ease-in-out infinite;
  color: #f8af41;
}

@keyframes rotate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(10deg); }
}

/* Texto */
.cookie-text {
  flex: 1;
}

.cookie-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f8af41;
}

.cookie-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cookie-description a {
  color: #f8af41;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-description a:hover {
  color: #ffd27d;
}

/* Ações */
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Botão principal */
.btn-accept {
  background: #066839;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(6, 104, 57, 0.28);
}

.btn-accept:hover {
  background: #0a7d46;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(6, 104, 57, 0.38);
}

/* Botão secundário */
.btn-reject {
  background: rgba(23, 66, 131, 0.35);
  color: #ffffff;
  border: 1px solid rgba(248, 175, 65, 0.55);
}

.btn-reject:hover {
  background: rgba(23, 66, 131, 0.55);
  border-color: #f8af41;
}

/* Botão fechar */
.cookie-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  background: rgba(23, 66, 131, 0.45);
  border: 1px solid rgba(248, 175, 65, 0.45);
  border-radius: 50%;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cookie-close:hover {
  background: rgba(248, 175, 65, 0.16);
  border-color: #f8af41;
  transform: rotate(90deg);
}

/* Tablet */
@media (max-width: 1024px) {
  .cookie-content {
    flex-wrap: wrap;
  }

  .cookie-icon {
    font-size: 2.5rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cookie-icon {
    font-size: 2rem;
  }

  .cookie-title {
    font-size: 1.1rem;
  }

  .cookie-description {
    font-size: 0.9rem;
  }

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

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

  .cookie-close {
    top: 8px;
    right: 8px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .cookie-title {
    font-size: 1rem;
  }

  .cookie-description {
    font-size: 0.85rem;
  }

  .btn-cookie {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}