/* ═══ Yardım merkezi / SSS ═══ */

.faq {
  position: relative;
  isolation: isolate;
  min-height: 60vh;
  padding: clamp(36px, 6vw, 64px) 16px 72px;
  background:
    radial-gradient(90% 55% at 50% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 62%),
    var(--background);
}

.faq__inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.faq-hero {
  text-align: center;
  margin-bottom: 28px;
}

.faq-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.faq-hero__title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--foreground);
}

.faq-hero__sub {
  margin: 10px auto 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.faq-search {
  position: relative;
  display: block;
  max-width: 420px;
  margin: 22px auto 0;
}

.faq-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted-foreground);
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.25);
  outline: none;
}

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

.faq-search input:focus {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}

.faq-item--group {
  margin-bottom: 8px;
}

.faq-item__heading {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.faq-item__children {
  padding: 0 10px 10px;
}

.faq-item__children .faq-item {
  margin-bottom: 8px;
}

.faq-item__children .faq-item:last-child {
  margin-bottom: 0;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover,
.faq-item[open] {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.faq-item[open] {
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.22);
}

.faq-item > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 52px 16px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--foreground);
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted-foreground);
  border-bottom: 2px solid var(--muted-foreground);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s, border-color 0.2s;
}

.faq-item[open] > summary::after {
  transform: translateY(-20%) rotate(-135deg);
  border-color: var(--primary);
}

.faq-item__body {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.faq-item__body > *:first-child {
  margin-top: 0;
}

.faq-item__body > *:last-child {
  margin-bottom: 0;
}

.faq-item__body p {
  margin: 0 0 10px;
}

.faq-item__body a {
  color: var(--primary);
  font-weight: 600;
}

.faq-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted-foreground);
}

.faq-empty h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--foreground);
}

.faq-empty p {
  margin: 0;
  font-size: 14px;
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}

.faq-cta__text strong {
  display: block;
  font-size: 15px;
  color: var(--foreground);
}

.faq-cta__text p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted-foreground);
}

.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.faq-cta__btn:hover {
  background: var(--primary-hover);
  color: #fff;
}

@media (max-width: 640px) {
  .faq-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .faq-cta__btn {
    justify-content: center;
  }
}
