/* ========================================
   BANNER DE COOKIES PROFISSIONAL
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem 0;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.cookie-icon {
  color: #2e3d6a;
  font-size: 1.5rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.cookie-text h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.cookie-text p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #2e3d6a;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-text a:hover {
  color: #1e2d5a;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-accept-all {
  background: #2e3d6a;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  min-height: 44px; /* Tamanho mínimo para touch */
  user-select: none; /* Evitar seleção de texto */
  -webkit-tap-highlight-color: transparent; /* Remover highlight padrão do mobile */
}

.btn-accept-all:hover {
  background: #1e2d5a;
  transform: translateY(-1px);
}

.btn-reject {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  min-height: 44px; /* Tamanho mínimo para touch */
  user-select: none; /* Evitar seleção de texto */
  -webkit-tap-highlight-color: transparent; /* Remover highlight padrão do mobile */
}

.btn-reject:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
  .cookie-banner {
    padding: 1.25rem 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  
  .cookie-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-icon {
    font-size: 1.75rem;
    margin-top: 0;
  }
  
  .cookie-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .cookie-text p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
    gap: 1rem;
    flex-direction: row;
  }
  
  .btn-accept-all,
  .btn-reject {
    flex: 1;
    justify-content: center;
    max-width: 160px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }
  
  /* Garantir que os botões sejam clicáveis */
  .btn-accept-all:active,
  .btn-reject:active {
    transform: scale(0.98);
  }
  
  /* Melhorar visibilidade em mobile */
  .cookie-banner {
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 1rem 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
  
  .cookie-container {
    padding: 0 1rem;
    gap: 1.25rem;
  }
  
  .cookie-content {
    gap: 0.875rem;
  }
  
  .cookie-icon {
    font-size: 1.5rem;
  }
  
  .cookie-text h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .cookie-text p {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  
  .cookie-actions {
    gap: 0.75rem;
  }
  
  .btn-accept-all,
  .btn-reject {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    max-width: 140px;
    border-radius: 8px;
  }
  
  /* Melhorar espaçamento em mobile pequeno */
  .cookie-text {
    margin-bottom: 0.5rem;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  .cookie-container {
    padding: 0 0.75rem;
    gap: 1rem;
  }
  
  .cookie-content {
    gap: 0.75rem;
  }
  
  .cookie-icon {
    font-size: 1.4rem;
  }
  
  .cookie-text h4 {
    font-size: 0.95rem;
  }
  
  .cookie-text p {
    font-size: 0.75rem;
  }
  
  .btn-accept-all,
  .btn-reject {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
    max-width: 130px;
  }
}

/* ========================================
   NOTIFICAÇÕES
   ======================================== */

.cookie-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem 1.5rem;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 4px solid #2e3d6a;
}

.cookie-notification.show {
  transform: translateX(0);
}

.cookie-notification-success {
  border-left-color: #2e3d6a;
}

.cookie-notification-info {
  border-left-color: #2e3d6a;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-content i {
  font-size: 1.25rem;
}

.cookie-notification-success .notification-content i {
  color: #2e3d6a;
}

.cookie-notification-info .notification-content i {
  color: #2e3d6a;
}

.notification-content span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
}
