/* Anasayfa hero: sıcak, aydınlık zemin ve aile fotoğrafı. Yalnız index.php yükler. */

.hero.hx {
  display: flex;
  align-items: center;
  min-height: min(100vh, 920px);
  padding: 136px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(232, 196, 150, 0.42) 0%, rgba(232, 196, 150, 0) 62%),
    radial-gradient(45% 55% at -5% 95%, rgba(173, 205, 235, 0.38) 0%, rgba(173, 205, 235, 0) 65%),
    linear-gradient(180deg, #fffaf3 0%, #fbf5ec 58%, #f5ede1 100%);
}

/* ─── Arka plan süsleri ─── */
.hx-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.hx-glow--sun {
  top: 70px;
  right: 6%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 214, 160, 0.55) 0%, rgba(255, 214, 160, 0.18) 45%, rgba(255, 214, 160, 0) 70%);
}

.hx-glow--sky {
  bottom: -160px;
  left: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(150, 190, 230, 0.35) 0%, rgba(150, 190, 230, 0) 70%);
}

.hx-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  width: 100%;
  height: 46%;
}

.hx-route path {
  fill: none;
  stroke: rgba(166, 124, 82, 0.28);
  stroke-width: 2;
  stroke-dasharray: 2 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hx-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hx-sym {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s, 28px);
  height: var(--s, 28px);
  color: rgba(166, 124, 82, 0.26);
  transform: rotate(var(--r, 0deg));
  animation: hxDrift 14s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.hx-sym svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-sym--sky {
  color: rgba(84, 128, 176, 0.24);
}

.hx-sym--code {
  width: auto;
  height: auto;
  padding: 3px 7px 2px;
  border: 1.5px solid currentColor;
  border-radius: 7px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
}

@keyframes hxDrift {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(var(--r, 0deg)) translateY(-7px); }
}

/* ─── Izgara ─── */
.hero.hx .container.hx-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "main visual"
    "meta visual";
  column-gap: 72px;
  row-gap: 28px;
  align-items: center;
}

.hx--solo .container.hx-grid {
  grid-template-columns: minmax(0, 760px);
  grid-template-areas: "main" "meta";
}

.hx-main {
  grid-area: main;
  align-self: end;
  min-width: 0;
}

.hx-meta {
  grid-area: meta;
  align-self: start;
  min-width: 0;
}

.hx-visual {
  grid-area: visual;
  min-width: 0;
}

/* ─── Metin ─── */
.hx-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(166, 124, 82, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 20px rgba(166, 124, 82, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.hx-badge i {
  font-size: 0.75rem;
  color: var(--gold);
}

.hx-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hx-title {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  overflow-wrap: anywhere;
}

.hx-hl {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  background: linear-gradient(120deg, #a67c52 0%, #c99b62 45%, #b07f4b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hx-hl::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -4px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 50 2, 120 1, 198 7' fill='none' stroke='%23c99b62' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.75;
}

.hx-desc {
  max-width: 540px;
  margin: 0 0 34px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.hx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hx-btn {
  padding: 17px 34px;
  box-shadow: 0 14px 30px -10px rgba(166, 124, 82, 0.6);
}

.hx-btn:hover {
  box-shadow: 0 18px 36px -10px rgba(166, 124, 82, 0.7);
}

.hx-btn i {
  transition: transform 0.3s ease;
}

.hx-btn:hover i {
  transform: translateX(4px);
}

.hx-btn-video {
  padding: 12px 26px 12px 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 37, 68, 0.1);
  color: var(--brand-navy);
  box-shadow: 0 8px 22px rgba(15, 37, 68, 0.06);
}

.hx-btn-video:hover {
  color: var(--gold-dark);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.hx-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  font-size: 0.7rem;
}

/* ─── Canlı kullanıcı ve sayılar ─── */
.hx-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hx-live i {
  font-size: 0.78rem;
  color: var(--gold);
}

.hx-live .hlu-count {
  color: var(--brand-navy);
}

.hx-live .hlu-label {
  color: var(--text-muted);
}

.hx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  border: 1px solid rgba(166, 124, 82, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px -24px rgba(15, 37, 68, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hx-stat {
  min-width: 0;
  padding: 18px 8px 16px;
  text-align: center;
}

.hx-stat + .hx-stat {
  border-left: 1px solid rgba(166, 124, 82, 0.16);
}

.hx-stat-num {
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--gold-dark);
  white-space: nowrap;
}

.hx-stat-num small {
  margin-left: 1px;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
}

.hx-stat-label {
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Görsel ─── */
.hx-frame {
  position: relative;
  width: min(100%, 460px);
  margin-left: auto;
  margin-right: 28px;
}

.hx-frame::before {
  content: '';
  position: absolute;
  inset: -18px -26px 30px 26px;
  border: 2px solid rgba(166, 124, 82, 0.32);
  border-radius: 260px 260px 40px 40px;
}

.hx-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 260px 260px 40px 40px;
  background: #efe3d2;
  box-shadow:
    0 50px 90px -40px rgba(15, 37, 68, 0.45),
    0 24px 50px -24px rgba(166, 124, 82, 0.45);
}

.hx-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hx-card {
  position: absolute;
  left: -96px;
  bottom: 34px;
  z-index: 3;
  width: 300px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 50px -22px rgba(15, 37, 68, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hx-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hx-card-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7f1d2d, #a3283b);
  color: #f6d9a8;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px -8px rgba(127, 29, 45, 0.6);
}

.hx-card-head strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--brand-navy);
  line-height: 1.25;
}

.hx-card-head div span {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.hx-card-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(166, 124, 82, 0.16);
}

.hx-card-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hx-card-list i {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
  font-size: 0.6rem;
}

.hx-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px -16px rgba(15, 37, 68, 0.35);
  animation: hxFloat 8s ease-in-out infinite;
}

.hx-chip--1 { top: 24%; right: -40px; animation-delay: -2s; }
.hx-chip--2 { top: 4%; right: 8%; animation-delay: -4s; }
.hx-chip--3 { bottom: 30%; right: -48px; animation-delay: -6s; }

.hx-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(166, 124, 82, 0.12);
  color: var(--gold-dark);
  font-size: 0.8rem;
}

.hx-chip-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hx-chip-text strong {
  font-size: 0.84rem;
  color: var(--brand-navy);
}

.hx-chip-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hx-frame--plain::before {
  content: none;
}

.hx-frame--plain .hx-card {
  position: relative;
  left: auto;
  bottom: auto;
  width: auto;
  margin: 0;
}

.hx-frame--plain .hx-chip {
  display: none;
}

/* Hakkımızda rozeti: "2018'den" */
.about-experience-badge .number small {
  margin-left: 1px;
  font-size: 0.5em;
  font-weight: 700;
}

/* ─── Giriş hareketleri ─── */
@keyframes hxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes hxUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hx-main > *,
.hx-meta,
.hx-frame {
  animation: hxUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hx-main > :nth-child(2) { animation-delay: 0.08s; }
.hx-main > :nth-child(3) { animation-delay: 0.16s; }
.hx-main > :nth-child(4) { animation-delay: 0.24s; }
.hx-meta { animation-delay: 0.32s; }
.hx-frame { animation-delay: 0.12s; animation-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  .hx-main > *,
  .hx-meta,
  .hx-frame,
  .hx-sym,
  .hx-chip {
    animation: none;
  }
}

/* ─── Duyarlı ─── */
@media (max-width: 1240px) {
  .hero.hx .container.hx-grid {
    column-gap: 48px;
  }

  .hx-frame {
    width: min(100%, 420px);
  }

  .hx-card {
    left: -70px;
    width: 280px;
  }
}

@media (max-width: 1023px) {
  .hero.hx {
    min-height: 0;
    padding: 136px 0 64px;
  }

  .hero.hx .container.hx-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "visual" "meta";
    row-gap: 40px;
  }

  .hx-main,
  .hx-meta {
    align-self: auto;
  }

  .hx-frame {
    width: min(100%, 440px);
    margin: 0 auto;
  }

  .hx-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: -64px 18px 0;
  }

  .hx-sym {
    display: none;
  }

  .hx-sym--m {
    display: block;
    left: var(--mx);
    top: var(--my);
  }

  .hx-chip--1,
  .hx-chip--3 {
    right: -10px;
  }

  .hx-stats {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .hero.hx {
    padding: 112px 0 52px;
  }

  .hx-glow--sun {
    top: 40px;
    right: -160px;
    width: 400px;
    height: 400px;
  }

  .hx-route {
    display: none;
  }

  .hx-badge {
    margin-bottom: 20px;
    font-size: 0.74rem;
  }

  .hx-title {
    font-size: clamp(2rem, 8.4vw, 2.6rem);
    margin-bottom: 16px;
  }

  .hx-desc {
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hx-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hx-actions .btn {
    justify-content: center;
  }

  .hx-frame::before {
    inset: -12px -12px 24px 12px;
  }

  .hx-photo,
  .hx-frame::before {
    border-radius: 200px 200px 30px 30px;
  }

  .hx-photo {
    border-width: 8px;
  }

  .hx-chip {
    display: none;
  }

  .hx-stat-num {
    font-size: 1.4rem;
  }
}

@media (max-width: 640px) {
  .hx-stats {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 18px;
  }

  .hx-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    text-align: left;
  }

  .hx-stat + .hx-stat {
    border-left: 0;
    border-top: 1px solid rgba(166, 124, 82, 0.16);
  }

  .hx-stat-num {
    flex: 0 0 104px;
    font-size: 1.35rem;
  }

  .hx-stat-label {
    margin-top: 0;
    font-size: 0.84rem;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hx-card {
    margin: -56px 10px 0;
  }

  .hx-stat {
    gap: 10px;
    padding: 11px 14px;
  }

  .hx-stat-num {
    flex-basis: 86px;
    font-size: 1.25rem;
  }

  .hx-stat-label {
    font-size: 0.78rem;
  }
}
