/* Bileşen: Yapay zekâ arama kutusu (yazı iç sayfası) */

.ar-ai {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 2.4vw, 26px);
  margin-bottom: clamp(28px, 4vw, 44px);
  color: #fff;
  background: linear-gradient(140deg, #0a1930 0%, var(--ar-navy) 60%, #10213f 100%);
  border-radius: var(--ar-radius-lg);
}

/* Yeşil hale — marka ikinci rengi */
.ar-ai::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -70%;
  z-index: -1;
  width: 320px;
  aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--ar-green) 55%, transparent) 0%, transparent 68%);
  filter: blur(48px);
  pointer-events: none;
}

.ar-ai__ust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ar-ai .ar-ai__etiket {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ar-mint);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ar-ai__parilti {
  width: 7px;
  height: 7px;
  background: var(--ar-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ar-green) 60%, transparent);
  animation: ar-nabiz 2.4s ease-out infinite;
}

.ar-ai .ar-ai__olcu {
  display: flex;
  gap: 16px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--ar-on-dark-muted);
}

.ar-ai .ar-ai__olcu strong {
  color: #fff;
}

/* --- Form --- */

.ar-ai__form {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--ar-radius-full);
}

.ar-ai__form:focus-within {
  border-color: color-mix(in srgb, var(--ar-green) 60%, transparent);
}

.ar-ai__girdi {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font-family: var(--ar-font-body);
  font-size: 0.9375rem;
  color: #fff;
  background: none;
  border: 0;
}

.ar-ai__girdi::placeholder {
  /* Koyu zeminde soluk gri okunmuyor; beyaz opaklik kullaniliyor. */
  color: rgb(255 255 255 / 62%);
  opacity: 1;
}

.ar-ai__girdi:focus {
  outline: none;
}

.ar-ai__gonder {
  flex-shrink: 0;
  padding: 10px 22px;
  font-family: var(--ar-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ar-navy);
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: var(--ar-radius-full);
  transition: background-color var(--ar-transition), color var(--ar-transition);
}

.ar-ai__gonder:hover {
  color: #fff;
  background: var(--ar-green);
}

/* --- Motor seçimi --- */

.ar-ai__motorlar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ar-ai__motor {
  padding: 7px 15px;
  font-family: var(--ar-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ar-on-dark-muted);
  cursor: pointer;
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--ar-radius-full);
  transition: all var(--ar-transition);
}

.ar-ai__motor:hover {
  color: #fff;
  border-color: rgb(255 255 255 / 32%);
}

.ar-ai__motor.is-secili {
  color: #fff;
  background: color-mix(in srgb, var(--ar-green) 40%, transparent);
  border-color: color-mix(in srgb, var(--ar-green) 70%, transparent);
}

@media (width <= 560px) {
  .ar-ai__form {
    flex-wrap: wrap;
    border-radius: var(--ar-radius-md);
  }

  .ar-ai__gonder {
    width: 100%;
  }

  .ar-ai__motorlar {
    flex-wrap: nowrap;
    padding-right: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }

  .ar-ai__motorlar::-webkit-scrollbar {
    display: none;
  }

  .ar-ai__motor {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-ai__parilti {
    animation: none;
  }
}
