/* ============================================
   HAAN RDP VPS MART - faq.css
   FAQ Page Specific Styles
   ============================================ */

/* === PAGE HERO === */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  background: var(--dark-2);
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* === FAQ SEARCH === */
.faq-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.faq-search {
  width: 100%;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 16px 56px 16px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.faq-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.faq-search::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
}

/* === FAQ SECTION === */
.faq-section {
  padding: 80px 0 100px;
  background: var(--dark);
}

/* === CATEGORY TABS === */
.faq-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.faq-tab {
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.faq-tab:hover {
  background: rgba(0,102,255,0.08);
  border-color: rgba(0,102,255,0.3);
  color: var(--text-primary);
}

.faq-tab.active {
  background: rgba(0,102,255,0.15);
  border-color: rgba(0,102,255,0.5);
  color: var(--primary-light);
  font-weight: 600;
}

/* === FAQ LIST === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* === FAQ ITEM === */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.hidden {
  display: none;
}

/* === FAQ QUESTION BUTTON === */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-item.open .faq-question {
  color: var(--primary-light);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-light);
}

/* === FAQ ANSWER === */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* === HIGHLIGHT SEARCH TERM === */
.highlight {
  background: rgba(0,102,255,0.25);
  border-radius: 3px;
  padding: 0 2px;
  color: var(--accent);
}

/* === NO RESULTS === */
.no-results {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
}

.no-results a {
  color: var(--primary-light);
  font-weight: 500;
}

/* === TERMS SECTION === */
.terms-section {
  padding: 80px 0;
  background: var(--dark-2);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.terms-card {
  background: var(--dark-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.terms-card:hover {
  border-color: rgba(0,102,255,0.3);
  transform: translateY(-3px);
}

.terms-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.terms-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .terms-grid { grid-template-columns: 1fr; }
  .faq-tabs { gap: 6px; }
  .faq-tab { padding: 6px 14px; font-size: 0.82rem; }
}
