/* "Suggest a place?" link, theme toggle, suggestion modal */

.suggest-link {
  text-align: center;
  margin-top: 10rem;
}

.suggest-link button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: rgba(var(--c), 0.45);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.suggest-link button:hover {
  color: rgba(var(--c), 0.6);
}

.theme-toggle {
  position: fixed;
  top: max(0.7rem, env(safe-area-inset-top));
  right: max(0.7rem, env(safe-area-inset-right));
  z-index: 5;
  background: none;
  border: none;
  padding: 0.35rem;
  color: rgba(var(--c), 0.22);
  cursor: pointer;
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.theme-toggle::before {
  content: '☀'; /* switch to light */
  font-size: 0.9rem;
  display: block;
}

body.light-mode .theme-toggle::before {
  content: '☾'; /* switch to dark */
}

.theme-toggle:hover {
  color: rgba(var(--c), 0.5);
}

.suggest-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.suggest-modal {
  background: #1c1c1c;
  border: 1px solid rgba(var(--a), 0.2);
  border-radius: 1rem;
  padding: 2rem 1.75rem 1.75rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: fadeIn 0.2s ease;
}

body.light-mode .suggest-modal {
  background: #fff8f0;
  border-color: rgba(var(--a), 0.3);
}

.suggest-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(var(--c), 0.4);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 0.2rem 0.4rem;
}

.suggest-close:hover {
  color: rgba(var(--c), 0.8);
}

.suggest-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: rgba(var(--a), 0.9);
  margin: 0 0 0.3rem;
}

.suggest-desc {
  font-size: 0.88rem;
  color: rgba(var(--c), 0.5);
  margin: 0 0 1.2rem;
}

.suggest-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.suggest-field-row {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.suggest-input {
  flex: 1;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  background: rgba(var(--c), 0.05);
  border: 1px solid rgba(var(--c), 0.15);
  border-radius: 0.5rem;
  color: rgba(var(--c), 0.9);
  outline: none;
  transition: border-color 0.15s;
}

.suggest-input:focus {
  border-color: rgba(var(--a), 0.5);
}

.suggest-input::placeholder {
  color: rgba(var(--c), 0.3);
}

.suggest-remove-field {
  background: none;
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(var(--c), 0.25);
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  transition: color 0.15s;
}

.suggest-remove-field:hover {
  color: rgba(239, 68, 68, 0.7); /* red */
}

.suggest-add-field {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(var(--a), 0.7);
  cursor: pointer;
  padding: 0.3rem 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.suggest-add-field:hover {
  color: rgba(var(--a), 1);
}

.suggest-actions {
  margin-top: 1.2rem;
}

.suggest-submit {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  padding: 0.8rem;
  background: rgba(var(--a), 0.9);
  color: #000;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.suggest-submit:hover {
  background: rgb(var(--a));
}

.suggest-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.suggest-feedback {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  text-align: center;
}

.suggest-feedback-ok {
  color: rgba(34, 197, 94, 0.9); /* green */
}

.suggest-feedback-error {
  color: rgba(239, 68, 68, 0.85); /* red */
}
