/* Software on Linux — Typeahead styles
   These styles are for the Twitter Typeahead autocomplete library.
   The library injects these classes into the DOM dynamically, so they cannot be expressed as Tailwind utilities. */

:root {
  /* Color references for typeahead */
  --color-bg-elevated:   #1c2236;
  --color-border-mid:    rgba(255,255,255,0.12);
  --color-border:        rgba(255, 255, 255, 0.07);
  --color-bg-card:       #131828;
  --color-bg-hover:      #202640;
  --color-text-muted:    #4a546a;
  --color-text:          #e0e5f2;
  --color-amber:         #f5bd0c;
  --color-text-dim:      #8899b4;
  --color-blue:          #4da5f4;
  --color-blue-light:    #78c2ff;
  --shadow:              0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:           0 8px 48px rgba(0,0,0,0.55);
}

.twitter-typeahead { width: 100%; display: block !important; }
.tt-hint { color: var(--color-text-muted) !important; background: transparent !important; }
.tt-input { position: relative !important; }
.tt-menu {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-mid);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  margin-top: 6px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  z-index: 1040;
}
.tt-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.tt-suggestion.tt-cursor,
.tt-suggestion:hover { background: var(--color-bg-hover); }
.tt-sug-img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 2px;
}
.tt-sug-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 6px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
}
.tt-sug-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.3;
}
.tt-sug-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
  line-height: 1.3;
  margin-top: 1px;
}
.tt-empty-message {
  padding: 14px 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* Gradient overlays for hero sections (cannot be expressed in Tailwind utilities) */
.block-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,189,12,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.prog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 15% 50%, rgba(245,189,12,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Error page command prompt prefix */
.error-prompt::before {
  content: '$ ';
  color: var(--color-amber);
}

/* Google reCAPTCHA container */
.g-recaptcha { margin: 4px 0; }
