/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; }

body {
  background-color: #0b1020 !important;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.2s ease-out;
  min-height: 100vh;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

button, a { -webkit-user-select: none; user-select: none; }

/* ── Force dark on any Tailwind bg overrides ───────────────── */
.bg-white, .bg-gray-50, .bg-gray-100, .bg-slate-50, .bg-slate-100 {
  background-color: #121a2b !important;
}

/* ── Form inputs ───────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #4f6494 !important;
  box-shadow: 0 0 0 2px rgba(79,100,148,0.15);
}

/* Force placeholder color across all browsers */
input::placeholder { color: #64748b !important; opacity: 1 !important; }
textarea::placeholder { color: #64748b !important; opacity: 1 !important; }
::-webkit-input-placeholder { color: #64748b !important; }
::-moz-placeholder { color: #64748b !important; opacity: 1 !important; }
:-ms-input-placeholder { color: #64748b !important; }

/* ── Buttons base ──────────────────────────────────────────── */
button { cursor: pointer; }
button:active { transform: scale(0.97); }

/* YES button hover */
.btn-yes:hover {
  background-color: #84cc16 !important;
  color: #000 !important;
  border-color: #84cc16 !important;
}

/* NO button hover */
.btn-no:hover {
  background-color: #f472b6 !important;
  color: #000 !important;
  border-color: #f472b6 !important;
}

/* ── Reaction pills ────────────────────────────────────────── */
.reaction-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 9999px;
  border: 1px solid #243047;
  background: rgba(255,255,255,0.03);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
}
.reaction-btn:hover { opacity: 0.75; }
.reaction-btn-sm {
  padding: 3px 8px;
  font-size: 0.6875rem;
}
.reaction-btn.reacted {
  background: rgba(167,139,250,0.18) !important;
  border-color: rgba(167,139,250,0.5) !important;
  color: #a78bfa !important;
}

/* ── Progress bar ──────────────────────────────────────────── */
.progress-track {
  background: #243047;
  border-radius: 9999px;
  overflow: hidden;
  height: 6px;
}
.progress-fill {
  background: #84cc16;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* ── Nav links ─────────────────────────────────────────────── */
nav a { color: #94a3b8 !important; text-decoration: none; transition: color 0.15s; }
nav a:hover { color: #f8fafc !important; }

/* ── Responsive nav ───────────────────────────────────────── */
.nav-mobile-btn { display: none !important; }
.mobile-menu { display: none; }
.mobile-menu.hidden { display: none !important; }

@media (max-width: 768px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-btn { display: block !important; }
  .mobile-menu { display: block; }
  .mobile-menu.hidden { display: none !important; }
}

/* Mobile menu link hover */
.mobile-menu a:hover {
  background: rgba(255,255,255,0.04);
}

/* ── Scrollbar (dark) ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0b1020; }
::-webkit-scrollbar-thumb { background: #243047; border-radius: 3px; }
