/* ========================================
   MGPS PPF Premium — Hero
   Ortak token'lar ppf-premium.css'ten gelir.
   Bu dosya mgps-premium-base'e bağımlı olarak enqueue edilir,
   yani her zaman ondan sonra yüklenir.
   ======================================== */

.mgps-ppf-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* Header akışta (position: relative) ve viewport yüksekliğinden pay yiyor.
       CSS header yüksekliğini okuyamadığı için kırılma noktası başına ölçülmüş
       offset kullanılıyor: 1440/1024px'te 130px, ≤768px'te 83px. */
    --mgps-ppf-hero-offset: 130px;
    height: calc(100vh - var(--mgps-ppf-hero-offset));   /* svh desteklemeyen tarayıcılar */
    height: calc(100svh - var(--mgps-ppf-hero-offset));
    min-height: 480px;
    max-height: 900px;
    display: flex;
    overflow: hidden;
    background-color: #000;
    isolation: isolate;
}

/* --- Medya katmanı --- */
.mgps-ppf-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mgps-ppf-hero__poster,
.mgps-ppf-hero__video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.mgps-ppf-hero__video {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(.25,.46,.45,.94);
}
.mgps-ppf-hero__video.is-ready {
    opacity: 1;
}

/* --- Karartma --- */
.mgps-ppf-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 35%),
        linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 100%);
}

/* --- İçerik iskeleti --- */
.mgps-ppf-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 96px 0 36px;
}
.mgps-ppf-hero__main {
    flex: 1;
    display: flex;
    align-items: center;
}
.mgps-ppf-hero__main > .mgps-container {
    width: 100%;
}
.mgps-ppf-hero__body {
    max-width: 720px;
}

/* --- Saç teli çizgi --- */
.mgps-ppf-hero__rule {
    display: block;
    width: min(420px, 60%);
    height: 1px;
    margin: 0 0 28px;
    background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 100%);
}

/* --- Tipografi --- */
.mgps-ppf-hero__title {
    font-family: var(--mgps-font-heading) !important;
    font-size: clamp(28px, 6.5vw, 68px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 20px;
    text-wrap: balance;
}
.mgps-ppf-hero__subtitle {
    font-family: var(--mgps-font-body);
    font-size: clamp(15px, 2vw, 24px);
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255,255,255,0.82);
    max-width: 34ch;
    margin: 0 0 32px;
}

/* --- CTA --- */
.mgps-ppf-hero__cta {
    display: inline-block;
    padding: 15px 38px;
    background: var(--mgps-accent);
    color: #fff;
    font-family: var(--mgps-font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition:
        box-shadow 0.3s cubic-bezier(.25,.46,.45,.94),
        transform 0.3s cubic-bezier(.25,.46,.45,.94);
}
.mgps-ppf-hero__cta:hover,
.mgps-ppf-hero__cta:focus {
    color: #fff;
    box-shadow: 0 0 28px rgba(196, 30, 58, 0.45);
    transform: translateY(-1px);
}
.mgps-ppf-hero__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* --- Alt şerit --- */
.mgps-ppf-hero__foot-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.14);
}
.mgps-ppf-hero__stats {
    display: flex;
    gap: clamp(32px, 6vw, 72px);
    margin: 0;
}
.mgps-ppf-hero__stat {
    margin: 0;
}
.mgps-ppf-hero__stat-num {
    font-family: var(--mgps-font-body);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.mgps-ppf-hero__stat-label {
    font-family: var(--mgps-font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 8px 0 0;
}

/* --- Kaydırma göstergesi --- */
.mgps-ppf-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    font-family: var(--mgps-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.mgps-ppf-hero__scroll svg {
    width: 12px;
    height: 18px;
    animation: mgps-ppf-hero-bob 2s cubic-bezier(.25,.46,.45,.94) infinite;
}
@keyframes mgps-ppf-hero-bob {
    0%, 100% { transform: translateY(0);   opacity: 0.5; }
    50%      { transform: translateY(4px); opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .mgps-ppf-hero__inner { padding: 88px 0 32px; }
    .mgps-ppf-hero__body  { max-width: 100%; }
}

@media (max-width: 768px) {
    .mgps-ppf-hero {
        --mgps-ppf-hero-offset: 83px;
        min-height: 440px;
        max-height: none;
    }
    .mgps-ppf-hero__scrim {
        background:
            linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%),
            rgba(0,0,0,0.55);
    }
    .mgps-ppf-hero__inner    { padding: 80px 0 28px; }
    .mgps-ppf-hero__rule     { width: 70%; margin-bottom: 20px; }
    .mgps-ppf-hero__subtitle { max-width: 100%; margin-bottom: 26px; }
    .mgps-ppf-hero__cta      { padding: 13px 28px; font-size: 13px; }
    .mgps-ppf-hero__scroll   { display: none; }
    .mgps-ppf-hero__stats    { gap: 32px; }
}

/* Kısa pencereler (dizüstü + tarayıcı çubukları). İçeriği sıkıştırıyoruz ki
   min-height tabanı düşük kalabilsin; taban yükselirse alt şerit ekran
   dışına taşar, tabanı kaldırırsak overflow:hidden içeriği kırpar. */
@media (max-height: 700px) {
    .mgps-ppf-hero__inner    { padding: 72px 0 24px; }
    .mgps-ppf-hero__title    { font-size: clamp(26px, 4.2vw, 44px); margin-bottom: 14px; }
    .mgps-ppf-hero__subtitle { font-size: clamp(14px, 1.6vw, 17px); margin-bottom: 20px; }
    .mgps-ppf-hero__rule     { margin-bottom: 18px; }
    .mgps-ppf-hero__cta      { padding: 12px 30px; }
    .mgps-ppf-hero__stat-num { font-size: clamp(24px, 3vw, 32px); }
}

/* WordPress yönetici çubuğu: giriş yapmış kullanıcılarda <html>'e padding-top
   ekleniyor (≥783px'te 32px, ≤782px'te 46px) ve sayfayı aşağı itiyor.
   WP bunu <body class="admin-bar"> ile bildiriyor, offset'e ekliyoruz.
   Ziyaretçilerde bu kurallar hiç devreye girmez. */
body.admin-bar .mgps-ppf-hero { --mgps-ppf-hero-offset: 162px; }   /* 130 + 32 */

@media (max-width: 782px) {
    body.admin-bar .mgps-ppf-hero { --mgps-ppf-hero-offset: 176px; }   /* 130 + 46 */
}
@media (max-width: 768px) {
    body.admin-bar .mgps-ppf-hero { --mgps-ppf-hero-offset: 129px; }   /* 83 + 46 */
}

/* --- Hareket tercihi --- */
@media (prefers-reduced-motion: reduce) {
    .mgps-ppf-hero__video,
    .mgps-ppf-hero__cta      { transition: none; }
    .mgps-ppf-hero__cta:hover,
    .mgps-ppf-hero__cta:focus { transform: none; }
    .mgps-ppf-hero__scroll svg { animation: none; }
}
