/**
 * Netx Anasayfa — Hero & İstatistik
 * Bağımsız modül CSS (homepage.tpl)
 */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Değişkenler ── */
.nx-hero,
.nx-stats {
  --nx-blue: #1798c6;
  --nx-blue-dark: #12789e;
  --nx-blue-soft: #f0f9fc;
  --nx-text: #202124;
  --nx-muted: #696969;
  --nx-line: #ecedf2;
  --nx-bg: #f8f9fb;
  --nx-white: #ffffff;
  --nx-radius: 12px;
}

/* ── HERO ── */
.nx-hero {
  position: relative;
  overflow: hidden;
  background: var(--nx-white);
  border-bottom: 1px solid var(--nx-line);
}

/* Header ile aynı auto-container hizası */
.nx-hero > .auto-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 580px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.nx-hero__content {
  max-width: 580px;
  width: 100%;
}

.nx-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-blue);
  background: var(--nx-blue-soft);
  border: 1px solid #c5e8f4;
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 20px;
}

.nx-hero__title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--nx-text);
  margin: 0 0 18px;
}

.nx-hero__title em {
  font-style: normal;
  color: var(--nx-blue);
}

.nx-hero__lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--nx-muted);
  margin: 0 0 28px;
}

/* Domain arama */
.nx-hero__search {
  margin-bottom: 18px;
}

.nx-hero__search-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--nx-white);
  border: 2px solid var(--nx-line);
  border-radius: var(--nx-radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.nx-hero__search-row:focus-within {
  border-color: var(--nx-blue);
}

.nx-hero__search-icon {
  display: flex;
  align-items: center;
  padding-left: 18px;
  color: var(--nx-blue);
  font-size: 18px;
  flex-shrink: 0;
}

.nx-hero__search-row input.form-control {
  flex: 1;
  min-width: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 16px 12px !important;
  font-size: 15px;
}

.nx-hero__search-row .theme-btn {
  border-radius: 0 !important;
  margin: 0;
  padding: 0 28px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.nx-hero__search-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--nx-muted);
}

.nx-hero__search-note i {
  color: var(--nx-blue);
}

/* Popüler etiketler */
.nx-hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.nx-hero__tags > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-muted);
}

.nx-hero__tags a {
  font-size: 13px;
  color: var(--nx-muted);
  text-decoration: none;
  background: var(--nx-bg);
  border: 1px solid var(--nx-line);
  border-radius: 20px;
  padding: 5px 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nx-hero__tags a:hover {
  color: var(--nx-blue);
  border-color: var(--nx-blue);
  background: var(--nx-blue-soft);
}

/* Mini güven satırı */
.nx-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--nx-line);
}

.nx-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-text);
}

.nx-hero__pill i {
  color: var(--nx-blue);
  font-size: 16px;
}

/* Görsel — sağ kenara sıfır arka plan */
.nx-hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  overflow: hidden;
  background: #eef2f6;
  z-index: 1;
  pointer-events: none;
}

.nx-hero__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.nx-hero__visual-fade {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(to right, var(--nx-white) 0%, rgba(255, 255, 255, 0.9) 45%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── İSTATİSTİK ── */
.nx-stats {
  padding: 0;
  background: var(--nx-bg);
  border-bottom: 1px solid var(--nx-line);
}

.nx-stats .auto-container {
  padding-top: 0;
  padding-bottom: 0;
}

.nx-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  transform: translateY(-28px);
  position: relative;
  z-index: 2;
}

.nx-stats__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--nx-white);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-radius);
  padding: 22px 24px;
  margin: 0 6px;
  box-shadow: 0 4px 20px rgba(64, 79, 104, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nx-stats__item:first-child {
  margin-left: 0;
}

.nx-stats__item:last-child {
  margin-right: 0;
}

.nx-stats__item:hover {
  border-color: #c5e8f4;
  box-shadow: 0 8px 28px rgba(23, 152, 198, 0.1);
}

.nx-stats__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-blue-soft);
  border-radius: 10px;
  color: var(--nx-blue);
  font-size: 22px;
}

.nx-stats__body {
  min-width: 0;
}

.nx-stats__value {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--nx-text);
  line-height: 1.1;
  margin-bottom: 2px;
}

.nx-stats__value small {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--nx-muted);
}

.nx-stats__label {
  display: block;
  font-size: 13px;
  color: var(--nx-muted);
  line-height: 1.3;
}

.nx-stats__item--rating .nx-stats__icon {
  background: #fff8e6;
  color: #f5a623;
}

.nx-stats__spacer {
  height: 48px;
}

/* ── Responsive ── */
@media (max-width: 1199px) {
  .nx-hero__visual {
    width: 40%;
  }
}

@media (max-width: 991px) {
  .nx-hero {
    display: flex;
    flex-direction: column;
  }

  .nx-hero > .auto-container {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .nx-hero__content {
    max-width: 100%;
  }

  .nx-hero__visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 280px;
    order: -1;
  }

  .nx-hero__visual-fade {
    width: 100%;
    height: 35%;
    inset: 0 0 auto 0;
    background: linear-gradient(to bottom, var(--nx-white) 0%, transparent 100%);
  }

  .nx-stats__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    transform: none;
    padding: 32px 0;
  }

  .nx-stats__item {
    margin: 0;
  }

  .nx-stats__spacer {
    display: none;
  }

  .nx-hero__search-row {
    flex-wrap: wrap;
  }

  .nx-hero__search-row .theme-btn {
    width: 100%;
    border-radius: 0 0 10px 10px !important;
  }
}

@media (max-width: 575px) {
  .nx-stats__list {
    grid-template-columns: 1fr;
  }

  .nx-stats__value {
    font-size: 22px;
  }

  .nx-hero__pills {
    gap: 12px;
  }
}
