/**
 * Botifex app UI utilities — spacing, typography, forms.
 * Uses existing brand colors only (no palette changes).
 */

/* Calmer background (same gradients, no animation) */
body::before {
  animation: none !important;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- Page & section copy ---- */
.page-intro {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.72);
  max-width: 52rem;
}

.section-help,
.card-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(148, 163, 184, 0.85);
  font-weight: 400;
}

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.page-toc a {
  color: rgba(56, 189, 248, 0.9);
  text-decoration: none;
}

.page-toc a:hover {
  text-decoration: underline;
}

/* ---- Cards (same colors as dashboard) ---- */
.card {
  background: rgba(17, 24, 40, 0.88);
  backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.card-header {
  margin-bottom: 1rem;
}

.card-header h2 {
  margin: 0;
}

/* ---- Forms ---- */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.app-select,
.select {
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

.app-input,
.input,
.main input[type="text"],
.main input[type="number"],
.main input[type="tel"],
.main input[type="email"],
.main select,
.main textarea {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 191, 255, 0.3);
  background: rgba(22, 33, 62, 0.8);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

.main .field-group {
  margin-bottom: 14px;
}

/* ---- Buttons (sentence case, existing colors) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #00bfff 100%);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8, #0dcaf0);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-muted {
  background: linear-gradient(135deg, #6c757d, #868e96);
  color: #fff;
}

.btn:hover {
  opacity: 0.92;
}

/* ---- Start here strip ---- */
.start-here-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 123, 255, 0.08);
  border: 1px solid rgba(58, 144, 255, 0.28);
}

.start-here-strip.is-hidden {
  display: none;
}

.start-here-strip h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.start-here-strip > .start-here-intro {
  flex: 1 1 200px;
  min-width: 0;
}

.start-here-strip > .start-here-intro p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.8);
}

.start-here-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 100%;
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.start-here-steps a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(17, 24, 40, 0.75);
  border: 1px solid rgba(58, 144, 255, 0.25);
  color: #7ec8ff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.start-here-steps a:hover {
  border-color: rgba(58, 144, 255, 0.45);
  background: rgba(17, 24, 40, 0.95);
}

.start-here-dismiss {
  flex-shrink: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(203, 213, 225, 0.75);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.start-here-dismiss:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

/* ---- Collapsible advanced sections ---- */
.dashboard-advanced-section {
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.14);
  background: rgba(10, 14, 28, 0.35);
  overflow: hidden;
}

.dashboard-advanced-section > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
  list-style: none;
  user-select: none;
}

.dashboard-advanced-section > summary::-webkit-details-marker {
  display: none;
}

.dashboard-advanced-section > summary::before {
  content: "▸ ";
  color: rgba(56, 189, 248, 0.85);
  margin-right: 4px;
}

.dashboard-advanced-section[open] > summary::before {
  content: "▾ ";
}

.dashboard-advanced-section > .dashboard-advanced-inner {
  padding: 0 18px 18px;
}

/* Getting started modal — linked steps */
.getting-started-feature-link {
  display: inline-block;
  margin-top: 8px;
  padding-left: 48px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}

.getting-started-feature.is-core .getting-started-feature-link {
  padding-left: 52px;
}

.getting-started-feature-link:hover {
  text-decoration: underline;
}

.getting-started-quick-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.getting-started-quick-step {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.22);
}

.getting-started-quick-step strong {
  display: block;
  margin-bottom: 4px;
  color: #f1f5f9;
  font-size: 0.92rem;
}

.getting-started-quick-step p {
  margin: 0 0 6px;
  padding-left: 0 !important;
  font-size: 0.85rem;
  color: rgba(203, 213, 225, 0.88);
}

/* Toast notifications (hunt profiles & shared) */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  z-index: 10050;
  max-width: 320px;
  word-wrap: break-word;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.notification.error {
  background: rgba(255, 71, 87, 0.9);
  border: 1px solid rgba(255, 71, 87, 0.5);
}

.notification.success {
  background: rgba(0, 255, 136, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.5);
}

.notification.info,
.notification.warning {
  background: rgba(0, 191, 255, 0.9);
  border: 1px solid rgba(0, 191, 255, 0.5);
}

/* Hunt profiles panel */
.wishlist-share-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 105, 180, 0.06);
  border: 1px solid rgba(255, 105, 180, 0.22);
}

.wishlist-share-panel h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ff8ec8;
}

.wishlist-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wishlist-url-input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(74, 158, 255, 0.3);
  background: rgba(10, 14, 32, 0.8);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
}

.wishlist-panel-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(74, 158, 255, 0.35);
  background: rgba(74, 158, 255, 0.12);
  color: #4a9eff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wishlist-panel-btn:hover {
  background: rgba(74, 158, 255, 0.22);
}

.wishlist-panel-btn.is-public-toggle.on-wishlist {
  border-color: rgba(0, 255, 157, 0.4);
  background: rgba(0, 255, 157, 0.1);
  color: #00ff9d;
}

.hunt-public-badge {
  background: rgba(255, 105, 180, 0.15);
  border: 1px solid rgba(255, 105, 180, 0.35);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.68rem;
  color: #ff8ec8;
  font-weight: 600;
}

.saved-search-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.hunt-profile-save-form .settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

@media (max-width: 768px) {
  .hunt-profile-save-form .settings-form-grid {
    grid-template-columns: 1fr;
  }
}
