/* ==========================================================================
   Technomot — Ana sayfa
   Hero ve parça bulma formu, kategori ızgarası, yan sütun, marka şeridi,
   tanıtım blokları.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
/* Tek ve sabit bir hero: solda mesaj, sağda çalışan parça bulma formu.
   Slayt döngüsü yerine tek bir net eylem sunar. */

.tm-hero {
  position: relative;
  isolation: isolate;
  background: var(--tm-ink-800);
  overflow: hidden;
}

/* Zemin katmanı: teknik ızgara + cyan ışık + motor silüeti */
.tm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(98, 213, 243, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 213, 243, 0.055) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

.tm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
    58% 76% at 74% 26%,
    rgba(98, 213, 243, 0.19),
    transparent 68%
  );
}

.tm-hero__engine {
  position: absolute;
  right: -120px;
  bottom: -70px;
  z-index: -1;
  width: 620px;
  max-width: none;
  opacity: 0.17;
  pointer-events: none;
  mask-image: radial-gradient(72% 72% at 40% 45%, #000 55%, transparent 100%);
}

@media (max-width: 1279px) {
  .tm-hero__engine {
    display: none;
  }
}

.tm-hero__inner {
  display: grid;
  gap: var(--tm-space-8);
  align-items: center;
  padding-block: var(--tm-space-10);
}

@media (min-width: 960px) {
  .tm-hero__inner {
    grid-template-columns: minmax(0, 1fr) 392px;
    gap: var(--tm-space-12);
    padding-block: var(--tm-space-16);
  }
}

.tm-hero__title {
  margin: 0;
  max-width: 15ch;
  color: var(--tm-white);
  font-size: clamp(2rem, 1.15rem + 3.6vw, 3.5rem);
  font-weight: var(--tm-fw-black);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.tm-hero__title em {
  font-style: normal;
  color: var(--tm-accent-500);
}

.tm-hero__text {
  margin: var(--tm-space-5) 0 0;
  max-width: 46ch;
  color: #9db4c9;
  font-size: var(--tm-fs-md);
  line-height: var(--tm-lh-relaxed);
}

/* Güven satırı — rozet yığını yerine ince, ayraçlı bir dizi */
.tm-hero__facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--tm-space-3) var(--tm-space-5);
  margin: var(--tm-space-6) 0 0;
  padding: var(--tm-space-5) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  list-style: none;
  font-size: var(--tm-fs-sm);
  color: #7e97ae;
}

.tm-hero__facts li {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: var(--tm-space-2);
}

.tm-hero__facts b {
  color: var(--tm-white);
  font-size: var(--tm-fs-base);
  font-weight: var(--tm-fw-bold);
}

.tm-hero__facts li + li {
  padding-left: var(--tm-space-5);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 479px) {
  .tm-hero__facts li + li {
    padding-left: 0;
    border-left: 0;
  }
}

/* --- Parça bulma formu --------------------------------------------------- */

.tm-finder {
  padding: var(--tm-space-6);
  border: 1px solid rgba(98, 213, 243, 0.22);
  border-radius: var(--tm-radius-lg);
  background: rgba(10, 32, 56, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(2, 10, 20, 0.45);
}

.tm-finder__title {
  margin: 0 0 var(--tm-space-1);
  color: var(--tm-white);
  font-size: var(--tm-fs-lg);
  letter-spacing: -0.01em;
}

.tm-finder__lead {
  margin: 0 0 var(--tm-space-5);
  font-size: var(--tm-fs-sm);
  color: #7e97ae;
}

.tm-finder__grid {
  display: grid;
  gap: var(--tm-space-3);
}

.tm-finder label {
  display: block;
  margin-bottom: var(--tm-space-1);
  font-size: var(--tm-fs-2xs);
  font-weight: var(--tm-fw-bold);
  letter-spacing: var(--tm-ls-wider);
  text-transform: uppercase;
  color: #7e97ae;
}

.tm-finder select,
.tm-finder input {
  width: 100%;
  min-height: 46px;
  padding: var(--tm-space-2) var(--tm-space-3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tm-radius-sm);
  background: rgba(2, 10, 20, 0.5);
  color: var(--tm-white);
  font-size: var(--tm-fs-base);
}

.tm-finder select {
  appearance: none;
  padding-right: var(--tm-space-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2362d5f3'%3E%3Cpath d='M8 11.2 3.4 6.6 4.6 5.4 8 8.8l3.4-3.4 1.2 1.2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--tm-space-3) center;
  background-size: 16px;
}

.tm-finder select option {
  background: var(--tm-ink-800);
  color: var(--tm-white);
}

.tm-finder input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.tm-finder select:focus,
.tm-finder input:focus {
  outline: none;
  border-color: var(--tm-accent-500);
  box-shadow: 0 0 0 3px rgba(98, 213, 243, 0.25);
}

.tm-finder .tm-btn {
  margin-top: var(--tm-space-2);
}

.tm-finder__hint {
  margin: var(--tm-space-4) 0 0;
  padding-top: var(--tm-space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: var(--tm-fs-xs);
  line-height: var(--tm-lh-normal);
  color: #7e97ae;
}

.tm-finder__hint a {
  color: var(--tm-accent-500);
  font-weight: var(--tm-fw-semibold);
}

.tm-finder__hint a:hover {
  color: var(--tm-accent-300);
}

/* --- Ana sayfa üst ızgara (kategoriler + yan sütun) ---------------------- */

.tm-home-grid {
  display: grid;
  gap: var(--tm-space-6);
  align-items: start;
}

@media (min-width: 1024px) {
  .tm-home-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.tm-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--tm-space-4);
}

@media (min-width: 768px) {
  .tm-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Yan sütun */
.tm-side {
  display: grid;
  gap: var(--tm-space-4);
}

.tm-side__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-side__list li {
  margin: 0;
  border-bottom: 1px solid var(--tm-border);
}

.tm-side__list li:last-child {
  border-bottom: 0;
}

.tm-mini {
  display: flex;
  align-items: center;
  gap: var(--tm-space-3);
  padding: var(--tm-space-3);
  color: var(--tm-ink-700);
}

.tm-mini:hover {
  background: var(--tm-gray-25);
}

.tm-mini img {
  width: 62px;
  height: 48px;
  flex: none;
  object-fit: cover;
  border-radius: var(--tm-radius-sm);
  background: var(--tm-gray-100);
}

.tm-mini__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--tm-fs-xs);
  font-weight: var(--tm-fw-semibold);
  line-height: var(--tm-lh-snug);
}

.tm-mini__price {
  display: block;
  margin-top: 3px;
  font-size: var(--tm-fs-sm);
  font-weight: var(--tm-fw-bold);
  color: var(--tm-text-price);
}

/* Yan sütun bilgi kutusu */
.tm-promo {
  padding: var(--tm-space-5);
  border-radius: var(--tm-radius-md);
  background: linear-gradient(150deg, var(--tm-ink-700), var(--tm-ink-900));
  color: var(--tm-white);
}

.tm-promo h3 {
  margin: 0 0 var(--tm-space-2);
  color: var(--tm-white);
  font-size: var(--tm-fs-base);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
}

.tm-promo p {
  margin: 0 0 var(--tm-space-4);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--tm-fs-sm);
  line-height: var(--tm-lh-normal);
}

.tm-promo__rows {
  display: grid;
  gap: var(--tm-space-2);
  margin-bottom: var(--tm-space-4);
}

.tm-promo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--tm-space-2) var(--tm-space-3);
  border-radius: var(--tm-radius-sm);
  background: rgba(255, 255, 255, 0.07);
  font-size: var(--tm-fs-xs);
}

.tm-promo__row b {
  color: var(--tm-accent-400);
  font-size: var(--tm-fs-sm);
}

/* --- Marka şeridi -------------------------------------------------------- */

.tm-brands {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
  gap: var(--tm-space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: var(--tm-space-2);
  scrollbar-width: thin;
}

.tm-brand-chip {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 84px;
  padding: var(--tm-space-3);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-md);
  background: var(--tm-surface);
  scroll-snap-align: start;
  transition: border-color var(--tm-transition-fast), box-shadow var(--tm-transition-fast);
}

.tm-brand-chip:hover {
  border-color: var(--tm-accent-400);
  box-shadow: var(--tm-shadow-sm);
}

.tm-brand-chip__name {
  font-size: var(--tm-fs-base);
  font-weight: var(--tm-fw-black);
  letter-spacing: var(--tm-ls-tight);
  color: var(--tm-ink-800);
}

.tm-brand-chip__count {
  font-size: var(--tm-fs-2xs);
  letter-spacing: var(--tm-ls-wide);
  text-transform: uppercase;
  color: var(--tm-gray-400);
}

/* --- Tanıtım bloğu ------------------------------------------------------- */

.tm-why {
  display: grid;
  gap: var(--tm-space-6);
  padding: var(--tm-space-8);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-surface);
  border: 1px solid var(--tm-border);
}

@media (min-width: 900px) {
  .tm-why {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    align-items: center;
  }
}

.tm-why h2 {
  margin: 0 0 var(--tm-space-3);
  font-size: var(--tm-fs-xl);
}

.tm-why p {
  color: var(--tm-gray-600);
  line-height: var(--tm-lh-relaxed);
}

.tm-why__list {
  display: grid;
  gap: var(--tm-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .tm-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tm-why__list li {
  display: flex;
  gap: var(--tm-space-3);
  margin: 0;
}

.tm-why__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: var(--tm-radius-sm);
  background: var(--tm-ink-800);
  color: var(--tm-accent-400);
  font-size: var(--tm-fs-sm);
  font-weight: var(--tm-fw-bold);
}

.tm-why__list h3 {
  margin: 0 0 3px;
  font-size: var(--tm-fs-base);
}

.tm-why__list p {
  margin: 0;
  font-size: var(--tm-fs-sm);
  line-height: var(--tm-lh-normal);
}

/* --- SEO metin alanı ----------------------------------------------------- */

.tm-seo-block {
  padding: var(--tm-space-8) 0;
  border-top: 1px solid var(--tm-border);
}

.tm-seo-block__grid {
  display: grid;
  gap: var(--tm-space-6);
}

@media (min-width: 900px) {
  .tm-seo-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tm-seo-block h2 {
  font-size: var(--tm-fs-lg);
}

.tm-seo-block p {
  color: var(--tm-gray-600);
  font-size: var(--tm-fs-sm);
  line-height: var(--tm-lh-relaxed);
}
