/* ==========================================================================
   faqCard Component Styles
   Matches reference card layout for QnA / FAQ:
   - Rounded border card (6px radius matching app aesthetic)
   - Question title in bold dark font
   - Author line in subtle grey font
   - Optional description with bold 'read more'
   - Bottom tag pills for Status and Upvotes count
   - Bottom input row with "Write your question here ..." and "Post" button
   ========================================================================== */

.faq-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.faq-card:hover {
  border-color: #dce1e8;
}

.faq-card-title {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 3px 0;
}

.faq-card-author {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 8px 0;
}

.faq-card-description {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.faq-card-read-more {
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.faq-card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;
}

.faq-card-tags-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-card-tag {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background-color: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.3;
  white-space: nowrap;
}

/* Standalone Upvote Icon Button on Bottom Right Corner */
.faq-upvote-icon-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}

.faq-upvote-icon-btn:hover {
  transform: translateY(-1px);
}

.faq-upvote-icon-btn:active {
  transform: translateY(0) scale(0.95);
}

.faq-upvote-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
  stroke: #4b5563;
  fill: none;
  stroke-width: 1.5; /* Thinner lines */
  stroke-linejoin: round;
  stroke-linecap: round;
  flex-shrink: 0;
  display: block;
  transition: fill 0.18s ease, stroke 0.18s ease;
}

/* Filled with brand blue when clicked */
.faq-upvote-icon-btn.is-upvoted .faq-upvote-icon {
  fill: #5170FF;
  stroke: #5170FF;
}

/* Clickable Upvote Pill for Unanswered Questions */
.faq-upvote-pill {
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.faq-upvote-pill:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* Active Upvoted State (Clicked) */
.faq-upvote-pill.is-upvoted {
  color: #5170FF;
  border-color: #5170FF;
  background-color: rgba(81, 112, 255, 0.08);
  font-weight: 600;
}

/* Bottom Question Input Bar */
.faq-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  box-sizing: border-box;
}

.faq-input-field {
  flex: 1;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13.5px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-input-field::placeholder {
  color: #6b7280;
}

.faq-input-field:focus {
  border-color: #5170FF;
  box-shadow: 0 0 0 3px rgba(81, 112, 255, 0.12);
}

.faq-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.faq-post-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.faq-post-btn:active {
  background-color: #f3f4f6;
}

.faq-post-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
