/* FAQ page — Mesleğim Hayatım public FAQ */

.faq-page {
  --faq-accent: var(--accent-orange, #f97316);
  --faq-accent-soft: rgba(249, 115, 22, 0.14);
  --faq-line: rgba(255, 255, 255, 0.1);
  --faq-surface: rgba(18, 61, 90, 0.35);
  position: relative;
  z-index: 1;
}

/* --- Hero --- */
.faq-hero {
  position: relative;
  padding: 140px 24px 48px;
  text-align: center;
  overflow: hidden;
}

.faq-hero-glow {
  position: absolute;
  inset: 20% 50% auto;
  width: min(520px, 80vw);
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.22), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.faq-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.faq-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: var(--faq-accent-soft);
  color: var(--faq-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: faqFadeUp 0.55s ease both;
}

.faq-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  animation: faqFadeUp 0.55s ease 0.06s both;
}

.faq-lead {
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.65);
  animation: faqFadeUp 0.55s ease 0.12s both;
}

.faq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 11, 24, 0.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  animation: faqFadeUp 0.55s ease 0.18s both;
}

.faq-search:focus-within {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.faq-search svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.faq-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
}

.faq-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.faq-meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: faqFadeUp 0.55s ease 0.22s both;
}

/* --- List --- */
.faq-main {
  padding: 8px 20px 80px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 16px;
  border: 1px solid var(--faq-line);
  background: var(--faq-surface);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  animation: faqFadeUp 0.5s ease both;
  animation-delay: calc(0.04s * var(--faq-i, 1) + 0.15s);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 61, 90, 0.5);
}

.faq-item[open] {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(165deg, rgba(249, 115, 22, 0.1), rgba(18, 61, 90, 0.55));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.faq-question {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px 16px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-index {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--faq-accent);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.faq-q-text {
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.4;
  color: #f8fafc;
  text-align: left;
}

.faq-toggle {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.28s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--faq-accent-soft);
  border-color: rgba(249, 115, 22, 0.4);
  color: var(--faq-accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  padding: 0 20px 0 54px;
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 0 solid transparent;
}

.faq-item[open] .faq-answer-inner {
  padding-bottom: 20px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0 20px 0 0;
}

.faq-answer-inner p {
  margin: 0 0 0.75em;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* --- Empty states --- */
.faq-empty,
.faq-empty-search {
  max-width: 480px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 20px;
}

.faq-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--faq-accent);
  background: var(--faq-accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.faq-empty h2,
.faq-empty-search p {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.25rem;
}

.faq-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}

.faq-empty-search p {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

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

@keyframes faqFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .faq-hero {
    padding: 120px 16px 36px;
  }

  .faq-question {
    gap: 10px 12px;
    padding: 16px;
  }

  .faq-q-text {
    font-size: 0.95rem;
  }

  .faq-answer-inner,
  .faq-item[open] .faq-answer-inner {
    padding-left: 16px;
    margin-right: 0;
  }

  .faq-item[open] .faq-answer-inner {
    margin: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-eyebrow,
  .faq-title,
  .faq-lead,
  .faq-search,
  .faq-meta,
  .faq-item {
    animation: none;
  }

  .faq-answer,
  .faq-toggle {
    transition: none;
  }
}
