/* ✅ MAIN WRAPPER */
.smart-faq-box {
  background: #fff;
  border: 1px solid #e2e2e2;
  padding: 24px;
  border-radius: 12px;
  margin: 30px 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  position: relative;
}

.smart-faq-box h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  padding-left: 14px;
  border-left: 4px solid #1a73e8;
}

/* ✅ COMMENT BOX */
.faq-item {
  margin-bottom: 20px;
  padding: 16px 18px;
  background: #f8f9fb;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
}

.faq-q {
  font-weight: 600;
  margin-bottom: 4px;
  color: #222;
  font-size: 15px;
}

.faq-a {
  margin-top: 4px;
  color: #555;
  font-size: 14.5px;
  line-height: 1.5;
}

/* ✅ REPLIES */
.faq-reply {
  margin-left: 20px;
  margin-top: 10px;
  font-size: 14px;
  color: #444;
  padding-left: 14px;
  border-left: 2px solid #ccc;
}

/* ✅ ADMIN LABEL */
.admin-label {
  color: red;
  font-weight: bold;
  font-size: 12px;
}

/* ✅ REPLY FORM */
.faq-reply-form {
  margin-top: 14px;
  margin-left: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-reply-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.faq-reply-btn {
  padding: 8px 14px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-reply-btn:hover {
  background: #0f5ec7;
}

/* ✅ ADD NEW COMMENT */
#faq-question {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-top: 12px;
  font-size: 14.5px;
}

#faq-submit {
  margin-top: 12px;
  padding: 10px 18px;
  background: #28a745;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 15px;
}

#faq-submit:hover {
  background: #218838;
}

/* ✅ LOAD MORE / VIEW ALL BUTTON */
.faq-more-btn,
.faq-view-all-btn {
  margin-top: 14px;
  padding: 10px 20px;
  background: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
}

.faq-more-btn:hover,
.faq-view-all-btn:hover {
  background: #222;
}

/* ✅ POPUP OVERLAY (COMMON) */
.faq-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ✅ POPUP BOX – Common Design */
.faq-popup-box {
  background: #fff;
  padding: 24px;
  width: 95%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.3s ease;
  scroll-behavior: smooth;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}

/* ✅ Fix comment popup box style same as FAQ */
#faq-popup .faq-popup-box {
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ✅ Close Button */
.faq-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  z-index: 99999;
}

.faq-close:hover {
  color: #333;
}

/* ✅ ACTIONS (VOTE + REPLY) */
.faq-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
  margin-left: 20px;
  flex-wrap: wrap;
}

/* ✅ VOTE BUTTONS */
.faq-votes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-votes .vote-btn {
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background-color: #f1f3f4;
  color: #333;
}

.vote-btn.like {
  background-color: #e3f2fd;
  color: #1a73e8;
}

.vote-btn.dislike {
  background-color: #ffebee;
  color: #d32f2f;
}

.vote-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.vote-btn.voted.like {
  border: 1px solid #1a73e8;
  background-color: #d2e3fc;
  color: #0b59d0;
}

.vote-btn.voted.dislike {
  border: 1px solid #d32f2f;
  background-color: #ffcdd2;
  color: #b71c1c;
}

/* ✅ REPLY BUTTON */
.show-reply-btn {
  background: #eaf1fb;
  color: #1a73e8;
  border: 1px solid #b6d2fb;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-reply-btn:hover {
  background: #d8eafc;
}

/* ✅ ANIMATION */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ✅ MOBILE RESPONSIVE */
@media (max-width: 600px) {
  .faq-popup-box,
  #discussion-popup .faq-popup-box,
  #faq-popup .faq-popup-box {
    width: 95%;
    padding: 16px;
  }

  .faq-reply-form {
    flex-direction: column;
  }

  .faq-reply-btn {
    width: 100%;
  }

  .faq-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .faq-votes .vote-btn {
    width: 100%;
    justify-content: center;
  }
}
.faq-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
  margin-left: 20px;
  flex-wrap: wrap;
  position: relative;
}

.report-spam-btn {
  background: none;
  color: #999;
  border: none;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: auto;
  order: 2;
  align-self: center;
}

.report-spam-btn:hover {
  color: #c00;
}

/* ✅ 3-dot options menu wrapper */
.faq-options-wrapper {
  position: relative;
  display: inline-block;
}

.faq-options-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  padding: 0 6px;
  line-height: 1;
}

.faq-options-menu {
  display: none;
  position: absolute;
  top: 20px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 10;
  min-width: 130px;
}

.faq-options-menu button {
  width: 100%;
  background: none;
  border: none;
  padding: 8px 12px;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.faq-options-menu button:hover {
  background-color: #f2f2f2;
}
