/**
 * Anasayfa — split light hero (sabit metin + 3–4 sütun dikey akış)
 */

.mat-split-hero {
  --mat-sh-bg: #f7f5f1;
  --mat-sh-ink: #141820;
  --mat-sh-muted: #5c6578;
  --mat-sh-brand: #900216;
  --mat-sh-border: rgba(15, 23, 42, 0.1);
  --mat-sh-visible-rows: 3;
  --mat-sh-tile-h: 120px;
  --mat-sh-gap: 8px;
  --mat-sh-flow-h: calc(
    var(--mat-sh-tile-h) * var(--mat-sh-visible-rows) +
    var(--mat-sh-gap) * (var(--mat-sh-visible-rows) - 1)
  );
  --mat-sh-flow-cols: 2;
  position: relative;
  color: var(--mat-sh-ink);
  background: var(--mat-sh-bg);
  overflow: hidden;
  border-bottom: 1px solid var(--mat-sh-border);
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  scroll-margin-top: var(--mat-header-offset, 76px);
}

.mat-split-hero__shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 28px);
}

body.home-page .mat-split-hero__shell {
  max-width: min(1680px, 98vw);
  padding: 0 clamp(20px, 3.2vw, 52px);
}

.mat-split-hero__grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
  align-items: start;
}

/* Yazı | profil | akış — yükseklik sabit, genişlik akışa */
.mat-split-hero--has-profile .mat-split-hero__grid {
  grid-template-columns: minmax(250px, 32%) minmax(280px, 340px) minmax(0, 1fr);
}

/* Sol: metin — sadece kendi yüksekliği, uzatılmaz */
.mat-split-hero__copy {
  display: flex;
  align-items: flex-start;
  align-self: start;
  height: auto;
  min-height: 0;
  min-width: 0;
  padding: 0.25rem clamp(0.75rem, 1.5vw, 1.25rem) 0 0;
  border-right: 1px solid var(--mat-sh-border);
}

.mat-split-hero--has-profile .mat-split-hero__copy {
  border-right: 1px solid var(--mat-sh-border);
}

.mat-split-hero__copy-inner {
  width: 100%;
  max-width: 580px;
}

.mat-split-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mat-sh-brand) !important;
  margin-bottom: 0.55rem;
}

.mat-split-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--mat-sh-ink) !important;
  margin: 0 0 0.4rem;
}

.mat-split-hero__kicker {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: #3d4658 !important;
  margin: 0 0 0.65rem;
}

.mat-split-hero__lede {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mat-sh-muted) !important;
  margin: 0 0 0.65rem;
  max-width: 58ch;
}

.mat-split-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.mat-split-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--mat-sh-border);
  background: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--mat-sh-ink) !important;
}

.mat-split-hero__stat strong {
  font-weight: 800;
  color: var(--mat-sh-ink) !important;
}

.mat-split-hero__stat i {
  color: var(--mat-sh-brand);
  font-size: 0.68rem;
}

.mat-split-hero__stat--text {
  font-weight: 700;
}

.mat-split-hero__stat-text {
  line-height: 1.2;
}

.mat-split-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
}

/* Orta: profil kartı — üstte hizalı, doğal boyut */
.mat-split-hero__profile {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: start;
  height: auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 0 0.35rem;
  border-right: 1px solid var(--mat-sh-border);
}

.mat-split-hero__profile .mat-hero-profile-carousel,
.mat-split-hero__profile .mat-hero-profile-carousel__single,
.mat-split-hero__profile .mat-hero-profile-carousel__slider,
.mat-split-hero__profile .mat-hero-profile {
  width: 100%;
  max-width: 100%;
}

.mat-split-hero__profile .mat-hero-profile--cover-only {
  width: 100%;
  max-width: 340px;
  height: auto;
  min-height: 0;
  max-height: var(--mat-sh-flow-h);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
}

.mat-split-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.68rem 1.1rem;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mat-split-hero__btn--primary {
  background: var(--mat-sh-brand);
  color: #fff !important;
  border: 2px solid var(--mat-sh-brand);
}

.mat-split-hero__btn--primary:hover {
  background: #6b0110;
  border-color: #6b0110;
  color: #fff !important;
}

.mat-split-hero__btn--outline {
  background: #fff;
  color: var(--mat-sh-brand) !important;
  border: 2px solid var(--mat-sh-brand);
}

.mat-split-hero__btn--outline:hover {
  background: rgba(144, 2, 22, 0.05);
  color: var(--mat-sh-brand) !important;
}

/* Sağ: 2 sütun — sabit pencere, track dışarı taşmaz */
.mat-split-hero__flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mat-sh-gap);
  min-width: 0;
  min-height: 0;
  width: 100%;
  align-self: start;
  justify-self: stretch;
  height: var(--mat-sh-flow-h);
  max-height: var(--mat-sh-flow-h);
  overflow: hidden;
  isolation: isolate;
}

.mat-split-hero__flow::before,
.mat-split-hero__flow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.mat-split-hero__flow::before {
  top: 0;
  background: linear-gradient(180deg, var(--mat-sh-bg) 0%, rgba(247, 245, 241, 0) 100%);
}

.mat-split-hero__flow::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--mat-sh-bg) 0%, rgba(247, 245, 241, 0) 100%);
}

.mat-split-hero__flow-col {
  overflow: hidden;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding-top: 0;
}

.mat-split-hero__flow-col--2 {
  padding-top: calc((var(--mat-sh-tile-h) + var(--mat-sh-gap)) * 0.32);
}

.mat-split-hero__flow-track {
  display: flex;
  flex-direction: column;
  gap: var(--mat-sh-gap);
  will-change: transform;
  animation: matSplitHeroFlowUp 52s linear infinite;
}

.mat-split-hero__tile {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  flex: 0 0 var(--mat-sh-tile-h);
  height: var(--mat-sh-tile-h);
  min-height: var(--mat-sh-tile-h);
  max-height: var(--mat-sh-tile-h);
  border-radius: 12px;
  overflow: hidden;
  background: #e8e3dc center/cover no-repeat;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.mat-split-hero__tile video,
.mat-split-hero__tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mat-split-hero__tile-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(155deg, #efe8e0 0%, #ddd5cb 100%);
}

@keyframes matSplitHeroFlowUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .mat-split-hero__flow-track {
    animation: none !important;
  }
}

@media (max-width: 1199.98px) {
  .mat-split-hero__grid {
    grid-template-columns: minmax(250px, 36%) minmax(0, 1fr);
  }

  .mat-split-hero--has-profile .mat-split-hero__grid {
    grid-template-columns: minmax(230px, 31%) minmax(260px, 320px) minmax(0, 1fr);
  }
}

@media (max-width: 991.98px) {
  .mat-split-hero {
    padding-top: 1rem;
  }

  .mat-split-hero__grid,
  .mat-split-hero--has-profile .mat-split-hero__grid {
    grid-template-columns: 1fr;
  }

  .mat-split-hero__copy {
    border-right: none;
    padding: 0 0 0.75rem;
  }

  .mat-split-hero__copy-inner {
    max-width: none;
  }

  .mat-split-hero__profile {
    max-width: 320px;
    margin: 0 auto 0.75rem;
    padding: 0;
    border-right: none;
    align-self: start;
  }

  .mat-split-hero__flow {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 575.98px) {
  .mat-split-hero__btn {
    width: 100%;
  }

  .mat-split-hero {
    --mat-sh-tile-h: 108px;
  }

  .mat-split-hero__profile .mat-hero-profile--cover-only {
    max-width: 260px;
  }
}

/* Anasayfa hero — orantılı akış + metin (tüm ziyaretçiler) */
body.home-page .mat-split-hero {
  --mat-sh-visible-rows: 3;
  --mat-sh-gap: 12px;
  --mat-sh-tile-h: clamp(186px, 21vh, 236px);
  --mat-sh-tile-w: calc(var(--mat-sh-tile-h) * 1.14);
}

body.home-page .mat-split-hero__grid {
  align-items: center;
}

body.home-page .mat-split-hero--has-profile .mat-split-hero__grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(1rem, 2.5vw, 2rem);
}

body.home-page .mat-split-hero__copy {
  justify-self: start;
  align-self: center;
  width: 100%;
  max-width: 600px;
  border-right: none;
  padding-right: 0;
}

body.home-page .mat-split-hero__copy-inner {
  display: block;
  min-height: 0;
}

body.home-page .mat-split-hero__title {
  font-size: clamp(1.72rem, 2.55vw, 2.48rem);
  margin: 0 0 0.4rem;
}

body.home-page .mat-split-hero__kicker {
  font-size: clamp(0.98rem, 1.38vw, 1.16rem);
  margin: 0 0 0.65rem;
}

body.home-page .mat-split-hero__stats {
  margin-bottom: 0.75rem;
}

body.home-page .mat-split-hero__actions {
  gap: 0.55rem;
}

body.home-page .mat-split-hero--has-profile .mat-split-hero__copy {
  border-right: none;
}

body.home-page .mat-split-hero__profile {
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 340px;
  margin: 0;
  border-right: none;
  padding: 0;
}

body.home-page .mat-split-hero__flow {
  justify-self: end;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  grid-template-columns: repeat(2, var(--mat-sh-tile-w));
  height: var(--mat-sh-flow-h);
  max-height: var(--mat-sh-flow-h);
}

body.home-page .mat-split-hero__stat {
  padding: 0.44rem 0.84rem;
  font-size: 0.78rem;
}

body.home-page .mat-split-hero__btn {
  padding: 0.7rem 1.12rem;
  font-size: 0.86rem;
}

body.home-page .mat-split-hero__tile {
  width: var(--mat-sh-tile-w);
  max-width: 100%;
  height: var(--mat-sh-tile-h);
  min-height: var(--mat-sh-tile-h);
  max-height: var(--mat-sh-tile-h);
  flex: 0 0 var(--mat-sh-tile-h);
  aspect-ratio: 6 / 7;
}

/* Misafir + editöryal: altta siyah alıntı peek */
body.home-editorial-theme {
  --mat-editorial-peek: 9.5rem;
}

body.home-editorial-theme .mat-split-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--mat-header-offset, 76px) - var(--mat-editorial-peek));
  padding-top: clamp(0.85rem, 1.6vh, 1.25rem);
  padding-bottom: clamp(0.7rem, 1.4vh, 1.1rem);
  overflow: hidden;
}

body.home-editorial-theme .mat-split-hero__shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1199.98px) {
  body.home-page .mat-split-hero {
    --mat-sh-tile-h: clamp(170px, 18vh, 204px);
    --mat-sh-tile-w: calc(var(--mat-sh-tile-h) * 1.1);
  }

  body.home-page .mat-split-hero__shell {
    max-width: min(1440px, 96vw);
    padding: 0 clamp(16px, 2.5vw, 32px);
  }

  body.home-page .mat-split-hero__copy {
    max-width: 480px;
  }
}

@media (max-width: 991.98px) {
  body.home-page .mat-split-hero {
    --mat-sh-tile-h: 156px;
  }

  body.home-page .mat-split-hero--has-profile .mat-split-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  body.home-page .mat-split-hero__copy {
    max-width: none;
    border-right: none;
    padding: 0 0 0.75rem;
  }

  body.home-page .mat-split-hero__profile {
    margin: 0 auto 0.75rem;
  }

  body.home-page .mat-split-hero__copy-inner {
    min-height: 0;
    justify-content: flex-start;
  }

  body.home-page .mat-split-hero__flow {
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .mat-split-hero__tile {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
    aspect-ratio: 6 / 7;
  }

  body.home-editorial-theme .mat-split-hero {
    min-height: auto;
    display: block;
  }

  body.home-editorial-theme .mat-split-hero__shell {
    display: block;
  }
}
