/* ═══════════════════════════════════════════════════════════════════════════
   Mascotya — Hero / Slider (mimeyoi.co anasayfa kapağı)
   Zaman güdümlü (--speed, varsayılan 5s) + kontrol şeridine tıklama. Yeni slayt sağdan eğik kenarlı
   perdeyle açılır (mkPerde), görsel yavaşça kayıp küçülür (mkGorsel). Harf animasyonları ve buton
   css/mh-header.css'teki .mw / .mh-btn sınıflarından gelir. Renk/font: sistem token'ları.
   ═══════════════════════════════════════════════════════════════════════════ */

.mk {
    position: relative; overflow: hidden; color: #fff;
    height: calc(100vh - var(--ann-h, 0px));
    height: calc(100svh - var(--ann-h, 0px));
    margin-top: calc(-1 * var(--header-h));
    background-color: var(--mh-ton, #2a2438);
    font-family: var(--mh-govde, inherit);
    -webkit-font-smoothing: antialiased;
}
.mk *, .mk *::before, .mk *::after { box-sizing: border-box; }
/* :where() → 0,0,1: Bootstrap p/h/ul boşluklarını ezer ama .mk-ad / .mk-alt / .mk-buton / .mh-btn gibi tek sınıflı
   kuralların margin-padding'ini EZMEZ (".mk p" 0,1,1 idi → ad/alt yazı/buton aralıkları ve buton iç boşluğu 0'a düşüyordu). */
:where(.mk) p, :where(.mk) h1, :where(.mk) h2, :where(.mk) ul, :where(.mk) dl, :where(.mk) dd { margin: 0; padding: 0; }
/* Bootstrap --bs-heading-color'ı ezer. font-size BURADA verilmez: (0,1,1) özgüllük .mk-ad ölçüsünü ezerdi */
.mk h1, .mk h2 { line-height: 1; color: inherit; }
.mk p, .mk li { line-height: 1; }
.mk ul { list-style: none; }
.mk a { color: inherit; text-decoration: none; }
.mk a:hover { opacity: 1; color: inherit; }

/* Slaytlar */
.mk-oge { position: absolute; inset: 0; visibility: hidden; z-index: 1; pointer-events: none; }
.mk-oge.is-active {
    visibility: visible; pointer-events: all; z-index: 3; transition-delay: 0s;
    animation: mkPerde 1s cubic-bezier(.785, .135, .15, .86) both;
}
.mk-oge.mk-ilk { animation: none; }   /* sayfa açılışında perde yok: hero görseli (LCP) hemen görünsün */
.mk-oge.is-prev { visibility: visible; z-index: 2; }
@keyframes mkPerde {
    0%   { clip-path: polygon(115% 0, 100% 0, 100% 100%, 100% 100%); }
    100% { clip-path: polygon(-1% 0, 100% 0, 100% 100%, -4% 100%); }
}
/* JS yokken (ya da kapalıyken) yalnız ilk slayt görünür; diğerleri zaten gizli */

.mk-ic { display: block; position: relative; width: 100%; height: 100%; color: #fff; }

/* Yazılar — 2026-11-19 kullanıcı isteği: solda, DİKEY ORTALI (mimeyoi'de sol alttaydı) */
.mk-ana { position: absolute; z-index: 2; top: 50%; bottom: auto; transform: translateY(-50%); color: #fff; }
.mk-durum { font-weight: 400; letter-spacing: .04em; }
.mk-ad { font-family: var(--mh-baslik, inherit); font-weight: 300; letter-spacing: .04em; }
.mk-alt { font-weight: 300; letter-spacing: .024em; }
.mk-oge .mk-buton { --btn-gec: .7s; }

/* Künye (sağ üst, tarihin altı) */
.mk-kunye { position: absolute; z-index: 2; color: #fff; }
.mk-kunye > li { font-weight: 400; letter-spacing: .04em; }
.mk-kunye dl { display: flex; justify-content: flex-end; }
.mk-kunye dt { margin-right: .3em; font-weight: inherit; }

/* Görsel */
.mk-gorsel { position: absolute; inset: 0; }
.mk-gorsel > picture, .mk-gorsel > video { position: absolute; inset: 0; display: block; }
/* Uzun hero başlığı: kelime aralarından kırılır (harfler .mw-k kelime gruplarında — mh-header.js) */
.mk-ad .mw { flex-wrap: wrap; max-width: 100%; row-gap: .06em; }
@media (max-width: 767px) and (orientation: portrait) { .mk-ana { right: 6.15385vw; } }
@media (min-width: 768px), (orientation: landscape) { .mk-ana { max-width: 48vw; } }

/* Konum mascotya-anasayfa tasarımından: masaüstünde ortalı, mobilde sola yakın (maskotlar görselin solunda kalır) */
.mk-gorsel img, .mk-gorsel video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 767px) and (orientation: portrait) { .mk-gorsel img, .mk-gorsel video { object-position: 20% 50%; } }
/* Yazı okunurluğu için degrade (tasarımdaki .slide::after): üstte header bandı, altta yazı bölgesi, solda yazı sütunu */
.mk-gorsel::after {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; content: '';
    background: linear-gradient(to bottom, rgba(14, 14, 14, .6), transparent 26%),
                linear-gradient(to top, rgba(14, 14, 14, .92), rgba(14, 14, 14, .25) 42%, transparent 62%),
                linear-gradient(to right, rgba(14, 14, 14, .35), transparent 55%);
}
/* Sahne: arka planı saydam (kesme) maskot görseli — koyu zemin + kırmızı/turuncu ışık; maskot masaüstünde sağda %90
   yükseklikte alta oturur, mobilde ortada %66 yükseklikte. Alt %22'si zemine erir. (tasarımdaki .s-stage) */
.mk-sahne {
    background: radial-gradient(60% 70% at 68% 48%, rgba(196, 40, 48, .42), transparent 70%),
                radial-gradient(40% 40% at 70% 20%, rgba(245, 146, 62, .18), transparent 70%), #0e0e0e;
}
.mk-sahne img.mk-kesme {
    position: absolute; top: auto; left: auto; right: max(6%, 20px); bottom: 0; width: auto; height: 90%; max-width: none;
    object-fit: contain; object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}
.mk-oge.is-active .mk-sahne img.mk-kesme { animation: mkKesme 1.4s .2s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes mkKesme { from { opacity: 0; transform: translateY(6%) scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) and (orientation: portrait) {
    .mk-sahne { background: radial-gradient(90% 50% at 50% 34%, rgba(196, 40, 48, .42), transparent 70%), #0e0e0e; }
    .mk-sahne img.mk-kesme { right: 50%; bottom: 24%; height: 66%; translate: 50% 0; object-position: 50% 100%; }
}
.mk-oge.is-active .mk-gorsel img, .mk-oge.is-prev .mk-gorsel img,
.mk-oge.is-active .mk-gorsel video, .mk-oge.is-prev .mk-gorsel video {
    transform-origin: left center;
    animation: mkGorsel calc(var(--speed) + 1s) linear alternate;
}
@keyframes mkGorsel {
    0%   { transform: translateX(0%) scale(1.2) rotateY(2deg); }
    100% { transform: translateX(-2%) scale(1.02) rotateY(-2deg); }
}
.mk-golge { position: absolute; inset: 0; pointer-events: none; }

/* Kontrol şeridi: başlık + (aktifte) alt yazı + ilerleme çizgisi */
.mk-kontrol button { font: inherit; background: none; border: 0; padding: 0; text-align: left; }
.mk-k { position: relative; color: #fff; cursor: pointer; transition: width 1s cubic-bezier(.165, .84, .44, 1); }
.mk-k-baslik { font-weight: 400; letter-spacing: .04em; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-k-alt {
    box-sizing: content-box; display: block; max-height: 0; overflow: hidden; line-height: 1;
    font-weight: 400; letter-spacing: .04em; white-space: nowrap; transition: max-height .5s;
}
.mk-k-alt > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.mk-k::before, .mk-k::after { width: 100%; height: 1px; background-color: #fff; content: ''; }
.mk-k::before { position: absolute; bottom: 0; left: 0; opacity: .2; }
.mk-k::after { display: block; transform: scaleX(0); transform-origin: right center; transition: transform .2s cubic-bezier(.39, .575, .565, 1); }
.mk-k.is-active .mk-k-alt { max-height: 1em; }
.mk-k.is-active::after { transform: none; transform-origin: left center; transition: transform var(--speed) cubic-bezier(.39, .575, .565, 1); }
@media (hover: hover) { .mk-k:hover .mk-k-alt { max-height: 1em; } }
.mk-k:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }

@media (max-width: 767px) and (orientation: portrait) {
    .mk-ana { left: 6.15385vw; }
    .mk-durum { font-size: 3.07693vw; }
    .mk-ad { margin-top: 5.12821vw; font-size: 8.20513vw; }
    .mk-alt { margin-top: 1.02565vw; font-size: 3.58975vw; }
    .mk-buton { margin-top: 4.10257vw; }
    .mk-kunye { top: 37.69231vw; right: 6.15385vw; }
    .mk-kunye > li { font-size: 2.56411vw; line-height: 1.6; }
    .mk-gorsel, .mk-gorsel > picture { perspective: 51.28206vw; }
    .mk-k { position: absolute; left: 6.15385vw; right: 6.15385vw; bottom: 6.15385vw; visibility: hidden; z-index: 4; }
    .mk-k-baslik, .mk-k-alt { display: none; }
    .mk-k.is-active { visibility: visible; }
}
@media (min-width: 768px), (orientation: landscape) {
    .mk-ana { left: 2.5vw; }
    .mk-durum { font-size: .72917vw; }
    .mk-ad { margin-top: 1.25vw; font-size: 3.33334vw; }
    .mk-alt { margin-top: .10417vw; font-size: 1.04167vw; }
    .mk-buton { margin-top: 1.875vw; margin-bottom: .37038vh; }
    .mk-kunye { top: 10.9375vw; right: 2.5vw; }
    .mk-kunye > li { font-size: .72917vw; line-height: 1.71429; }
    .mk-gorsel, .mk-gorsel > picture { perspective: 20.83334vw; }
    .mk-kontrol { display: flex; align-items: flex-end; position: absolute; gap: 0 1.25vw; right: 2.5vw; bottom: 4.44445vh; z-index: 4; }
    /* 2026-11-18 kullanıcı isteği: kontrol yazıları "çok ince, görünmüyor" → mimeyoi ölçüsünden büyük + 500 kalınlık
       (eski: başlık .83334vw, alt .52084vw = 1440'ta ~12px / ~7.5px); şerit genişliği de orantılı arttı (eski 6.77 / 14.79vw).
       Aktif öğe en az 240px (alt yazı ~235px) — dar ekranda soldaki hero yazısına çarpmasın diye en çok 28vw. */
    .mk-k { display: flex; flex-direction: column; width: 7.8125vw; }
    .mk-k-baslik { font-size: max(13px, .9375vw); font-weight: 500; }
    .mk-k-alt { font-size: max(11px, .625vw); font-weight: 500; }
    .mk-k::after { margin-top: .26042vw; }
    .mk-k.is-active { width: max(15.625vw, min(240px, 28vw)); }
    .mk-k.is-active .mk-k-alt { padding-top: .10417vw; padding-bottom: .20834vw; }
}

/* Kontrol şeridi maskotu (HeroSlide.MaskotResim): düğmenin üstünde küçük saydam görsel; aktif slaydınki tam opak ve
   tam boy, diğerleri soluk ve küçük (düğmeler alttan hizalı — maskotsuz düğme yalnız yazıyla kalır). */
.mk-k-maskot { display: block; pointer-events: none; }
.mk-k-maskot picture { display: contents; }
.mk-k-maskot img {
    display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left bottom;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); opacity: .55; transform: scale(.82); transform-origin: left bottom;
    transition: opacity .5s, transform .7s cubic-bezier(.165, .84, .44, 1);
}
.mk-k.is-active .mk-k-maskot img { opacity: 1; transform: none; }
@media (hover: hover) { .mk-k:hover .mk-k-maskot img { opacity: 1; transform: scale(.94); } .mk-k.is-active:hover .mk-k-maskot img { transform: none; } }
@media (max-width: 767px) and (orientation: portrait) {
    .mk-k-maskot { height: 16.41026vw; margin-bottom: 2.05129vw; }
}
@media (min-width: 768px), (orientation: landscape) {
    .mk-k-maskot { height: max(64px, 5.20834vw); margin-bottom: .62500vw; }
}
/* Tek slayt (tekli / video tipi) + maskot: yalnız maskot ve başlık; ilerleme çizgisi anlamsız */
.mk-kontrol--tek .mk-k { cursor: default; }
.mk-kontrol--tek .mk-k::before, .mk-kontrol--tek .mk-k::after { display: none; }

/* JS açıkken: bölünmeden önce hero yazısı görünmesin (bölününce harf harf girer) */
.mh-js .mk .mw-in:not(.mw-hazir) { visibility: hidden; }
/* Giriş beklemesi: ilk slaytın harfleri başlangıç konumunda tutulur, sonra animasyon oynar */
.mh-js .mk-oge.mk-bekle .mw-in.mw-hazir { visibility: hidden !important; }
.mh-js .mk-oge.mk-bekle .mw-in.mw-hazir .mw-c { transform: translateY(65%) !important; opacity: 0 !important; transition: none !important; }
.mh-js .mk-oge.mk-bekle .mh-btn-in::after { transform: scale(0) !important; width: var(--btn-nokta) !important; transition: none !important; }
.mh-js .mk-oge.mk-bekle .mh-btn-in::before { visibility: hidden !important; transition: none !important; }
.mh-js .mk-oge.mk-bekle .mh-btn-in > .mw, .mh-js .mk-oge.mk-bekle .mh-btn-in > .mh-btn-ok { clip-path: inset(0% 100% 0% 0%) !important; transition: none !important; }
/* Slayt bağlantısı klavyeyle odaklanınca halka tüm hero'ya değil butona çizilir */
.mk-ic:focus-visible { outline: none; }
.mk-ic:focus-visible .mk-buton { outline: 2px solid #fff; outline-offset: 4px; border-radius: 999px; }

/* Duyarlı tabanlar (2026-11-19): 768–1279px ve yatay telefonda vw ölçüleri 5–8px'e iniyordu; 1920'de değerler aynen.
   Yatay telefon (<768px, landscape) mobil vw düzeninde devleşiyordu → masaüstü düzeni + bu tabanlar. */
@media (min-width: 768px), (orientation: landscape) {
    .mk-durum { font-size: max(12px, .72917vw); }
    .mk-ad { font-size: max(30px, 3.33334vw); }
    .mk-alt { font-size: max(14px, 1.04167vw); }
    .mk-kunye > li { font-size: max(11px, .72917vw); }
}

@media (prefers-reduced-motion: reduce) {
    .mk-oge.is-active, .mk-oge.is-active .mk-gorsel img, .mk-oge.is-active .mk-gorsel video,
    .mk-oge.is-active .mk-sahne img.mk-kesme { animation: none !important; }
    .mk-k.is-active::after { transition: none; }
    .mk-k-maskot img { transition: none; }
}
