/* =========================================================
   Pusat Tanya Jawab (Q&A) & Smart Multi-Color Search Styles
   Portofolio Digital Guru — Diah Pitaloka, S.Pd.I
   ========================================================= */

/* ── Rainbow Gradient Flow Animation ── */
@keyframes rainbowFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neonPulseGlow {
  0% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(13, 148, 136, 0.35); }
  50% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(139, 92, 246, 0.5), 0 0 20px rgba(236, 72, 153, 0.35); }
  100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(13, 148, 136, 0.35); }
}

/* ── Smart Multi-Color Search Engine Bar ── */
.smart-search-container {
  margin: 0 auto 36px;
  max-width: 860px;
  position: relative;
}

.smart-search-border {
  padding: 2.5px;
  border-radius: 20px;
  background: linear-gradient(120deg, #0d9488, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981);
  background-size: 300% 300%;
  animation: rainbowFlow 5s ease infinite, neonPulseGlow 4s ease-in-out infinite;
}

.smart-search-inner {
  display: flex;
  align-items: center;
  background: rgba(11, 18, 33, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 17.5px;
  padding: 8px 16px 8px 20px;
  gap: 12px;
}

.smart-search-icon {
  font-size: 1.35rem;
  color: #2dd4bf;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smart-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  font-weight: 500;
}

.smart-search-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.smart-search-clear {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.smart-search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.smart-search-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  white-space: nowrap;
}

/* ── Multi-Color Category Filter Chips ── */
.multi-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.chip-btn:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* Specific Multi-Color Active States */
.chip-btn.active.chip--all {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.chip-btn.active.chip--publik {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(6, 182, 212, 0.25));
  color: #2dd4bf;
  border-color: #2dd4bf;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.4);
}

.chip-btn.active.chip--admin {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.25));
  color: #c084fc;
  border-color: #a855f7;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.chip-btn.active.chip--pedagogis {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.35), rgba(244, 63, 94, 0.25));
  color: #f472b6;
  border-color: #ec4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

.chip-btn.active.chip--arab {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.25));
  color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.chip-btn.active.chip--tech {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.25));
  color: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

/* Quick Search Suggestions / Tag Pills */
.search-tag-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: #64748b;
}

.search-tag-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.75rem;
}

.search-tag-pill:hover {
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.3);
}

/* ── Neon Text Highlight for Search Matches ── */
mark.neon-highlight {
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.35), rgba(236, 72, 153, 0.35));
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(45, 212, 191, 0.8);
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

/* ── Q&A Accordion Item Styles ── */
.qa-group-section {
  margin-bottom: 40px;
}

.qa-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qa-group-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.qa-group-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.qa-group-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 2px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-item {
  background: rgba(22, 32, 50, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-margin-top: 100px;
}

.qa-item:hover {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.qa-item.expanded {
  border-color: rgba(45, 212, 191, 0.6);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(13, 148, 136, 0.2);
}

.qa-question-btn {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.qa-question-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.qa-q-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(45, 212, 191, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.qa-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.qa-item.expanded .qa-toggle-icon {
  transform: rotate(180deg);
  background: rgba(45, 212, 191, 0.2);
  color: #2dd4bf;
}

.qa-answer-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  background: rgba(15, 23, 42, 0.45);
  border-top: 1px solid transparent;
}

.qa-item.expanded .qa-answer-box {
  max-height: 900px;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.qa-answer-content {
  padding: 20px 24px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.qa-answer-content p {
  margin-bottom: 12px;
}

.qa-answer-content p:last-child {
  margin-bottom: 0;
}

.qa-answer-content strong {
  color: #fff;
}

.qa-answer-content ul, .qa-answer-content ol {
  padding-left: 20px;
  margin: 10px 0;
}

.qa-answer-content li {
  margin-bottom: 6px;
}

/* Empty search state */
.qa-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(22, 32, 50, 0.5);
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 20px;
}

.qa-empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
}

.qa-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.qa-empty-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto 20px;
}

/* ── Helpdesk Quick Connect Card ── */
.helpdesk-banner {
  background: radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.25) 0%, rgba(15, 23, 42, 0.8) 90%);
  border: 1.5px solid rgba(45, 212, 191, 0.4);
  border-radius: 20px;
  padding: 30px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.helpdesk-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.helpdesk-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0;
}

.helpdesk-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-helpdesk-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-helpdesk-wa:hover {
  background: #1ebc59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-helpdesk-guest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-helpdesk-guest:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ── Multi-Color Neon Search Highlighter ── */
mark.neon-highlight {
  display: inline;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 4px;
  font-weight: 700;
  color: #ffffff !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

mark.neon-highlight-c1 {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(244, 63, 94, 0.5));
  border: 1px solid rgba(244, 114, 182, 0.7);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.55), inset 0 0 6px rgba(244, 114, 182, 0.3);
}

mark.neon-highlight-c2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.45), rgba(59, 130, 246, 0.5));
  border: 1px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55), inset 0 0 6px rgba(56, 189, 248, 0.3);
}

mark.neon-highlight-c3 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(234, 179, 8, 0.5));
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55), inset 0 0 6px rgba(251, 191, 36, 0.3);
}

mark.neon-highlight-c4 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(20, 184, 166, 0.5));
  border: 1px solid rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55), inset 0 0 6px rgba(52, 211, 153, 0.3);
}

mark.neon-highlight-c5 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(139, 92, 246, 0.5));
  border: 1px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.55), inset 0 0 6px rgba(192, 132, 252, 0.3);
}
