/* ========== PAINEL DE COOKIES (LGPD) ========== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  animation: slideUp 0.4s ease-out;
  border-top: 3px solid var(--blue);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}

.cookie-text p {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  max-width: 500px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  font-size: 14px;
  padding: 10px 18px;
}

#acceptCookies {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

#acceptCookies:hover {
  background: var(--green-d);
  border-color: var(--green-d);
}

#rejectCookies {
  background: transparent;
  color: #cbd5e1;
  border-color: #cbd5e1;
}

#rejectCookies:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#cookiePreferences {
  background: transparent;
  color: var(--blue-l);
  border-color: var(--blue-l);
}

#cookiePreferences:hover {
  background: rgba(0, 87, 184, 0.1);
}

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

/* Modal de preferências de cookies (opcional) */
.cookie-preferences-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.cookie-preferences-modal.hidden {
  display: none;
}

.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-content h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text);
}

.cookie-preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cookie-preference-item:last-child {
  border-bottom: none;
}

.cookie-preference-item label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.cookie-preference-item input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.cookie-preference-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 30px;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cookie-modal-actions .btn {
  flex: 1;
}

/* Responsivo */
@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-text {
    width: 100%;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .cookie-banner {
    padding: 16px 0;
  }

  .cookie-preferences-modal {
    padding: 12px;
  }

  .cookie-modal-content {
    padding: 24px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
