/**
 * suggestion.css — Floating Suggestion Box
 * @package TheUnhacked
 */

/* ── Container ─────────────────────────────────────────────────────────── */
.tuh-suggest {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
}

/* ── Tab trigger ────────────────────────────────────────────────────────── */
.tuh-suggest__tab {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.6rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--color-gold, #C9A84C);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tuh-suggest__tab:hover,
.tuh-suggest__tab.is-open {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.4);
}

.tuh-suggest__tab svg { flex-shrink: 0; }

.tuh-suggest__tab-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Panel ──────────────────────────────────────────────────────────────── */
.tuh-suggest__panel {
  width: 320px;
  background: rgba(13,13,22,0.97);
  border: 1px solid rgba(201,168,76,0.15);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 90vh;
  overflow-y: auto;
}

.tuh-suggest__panel:not([aria-hidden="true"]),
.tuh-suggest__panel[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.tuh-suggest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tuh-suggest__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.tuh-suggest__close {
  background: none;
  border: 1px solid var(--color-border, rgba(255,255,255,0.08));
  border-radius: 50%;
  width: 24px; height: 24px;
  cursor: pointer;
  color: var(--color-muted, rgba(242,242,245,0.55));
  font-size: 1rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.tuh-suggest__close:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* ── Intro ──────────────────────────────────────────────────────────────── */
.tuh-suggest__intro {
  font-size: 0.8rem;
  color: var(--color-muted, rgba(242,242,245,0.55));
  line-height: 1.55;
}

/* ── Form elements ──────────────────────────────────────────────────────── */
.tuh-suggest__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.tuh-suggest__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(242,242,245,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tuh-suggest__label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(242,242,245,0.35);
}

.tuh-suggest__select,
.tuh-suggest__input,
.tuh-suggest__textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #f2f2f5;
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.6rem 0.875rem;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.tuh-suggest__select:focus,
.tuh-suggest__input:focus,
.tuh-suggest__textarea:focus {
  outline: none;
  border-color: rgba(201,168,76,0.4);
}

.tuh-suggest__textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.tuh-suggest__chars {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(242,242,245,0.3);
  text-align: right;
}

.tuh-suggest__submit { width: 100%; justify-content: center; }

/* ── Success ────────────────────────────────────────────────────────────── */
.tuh-suggest__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem 1rem;
}

.tuh-suggest__success-icon { font-size: 2rem; }
.tuh-suggest__success p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .tuh-suggest__panel { width: calc(100vw - 40px); border-radius: 12px 0 0 12px; }
}
