/* InterviewHQ — custom CSS supplement for Tailwind CDN */

/* ------------------------------------------------------------------ */
/* Typography                                                           */
/* ------------------------------------------------------------------ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------ */
/* Company cards — smooth hover lift                                   */
/* ------------------------------------------------------------------ */
.company-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.company-card:hover {
  transform: translateY(-2px);
}

/* Company logo wrapper — prevent layout shift on img load */
.company-logo-wrap {
  flex-shrink: 0;
}
.company-logo-wrap img {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Chip utility used in question detail                                 */
/* ------------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #374151;
  background: #1f2937;
  color: #9ca3af;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* Line clamp for search previews                                       */
/* ------------------------------------------------------------------ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* HTMX loading/transition states                                       */
/* ------------------------------------------------------------------ */
.htmx-request .htmx-indicator { display: inline; }
.htmx-indicator { display: none; }

.htmx-swapping { opacity: 0; transition: opacity 0.1s ease; }
.htmx-added { opacity: 0; }
.htmx-settling { opacity: 1; transition: opacity 0.2s ease; }

/* ------------------------------------------------------------------ */
/* Scrollbar polish (Webkit)                                            */
/* ------------------------------------------------------------------ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4b5563;
}

/* ------------------------------------------------------------------ */
/* Focus ring polish                                                    */
/* ------------------------------------------------------------------ */
select:focus, input:focus {
  outline: none;
}

/* ------------------------------------------------------------------ */
/* Gradient text utility                                                */
/* ------------------------------------------------------------------ */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
