/* =====================================================================
   Sektör ilk ekranı · ortak bileşen (KARAR-WT6, Hat 1, 12.11.2026)
   Sektör sayfasının ilk ekranı ana sayfadaki (K1) o ürünün dünyası gibi açılır:
   WebTechTR'nin ince siyah-beyaz çerçevesi (logo, menü, tek sarı «Kayıt ol») + bütün ekran ürünün dünyası
   (k1/dunya/<ürün>/ modülü: görseli, iki sakin rengi + vurgusu, kendi imza geçişi, kendi okuma düzeni).
   Dev yazı = sayfanın h1'i, dünyanın kartında (dolu yüzey). Kullanım: NASIL.md.
   Sıra: ortak.css → sektor-ilk.css → k1/dunya/<ürün>/dunya.css (modül bu dosyadaki temel kuralları ezer).
   Temel kurallar K1 vitrininden (k1/index.html «3. ekran: vitrin») aynı özgüllükle taşındı: :where(.sektor-ilk) özgüllük eklemez,
   modülün .dunya[data-urun="…"] kuralları K1'deki gibi baskın kalır.
   Hareket yalnız transform / opacity; filter: blur geçişi yok. Betiksizde ve hareket azaltmada durgun son kare.
   ===================================================================== */

.sektor-ilk {
  --si-murekkep: #0E0F12; --si-kagit: #F4F1EA; --si-soluk: #CFCBC2; --si-sari: #FFE600;
  --si-yan: 24px;
  --es: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--si-zemin, var(--si-murekkep)); color: var(--si-kagit); color-scheme: dark;
}
/* KARAR-WT7 «gri ton ekran yok»: afiş inmeden (yavaş bağlantı, bağlantı ön izlemesi) görünen zemin de dünyanın kendi zemin rengi
   (k1/dunya/sira.json · kartın --z'si; değişken kardeş öğeden okunamadığı için burada, ürün başına bir satır) */
.sektor-ilk[data-urun="chotel"] { --si-zemin: #0A1636; }
.sektor-ilk[data-urun="hairise"] { --si-zemin: #110D33; }
.sektor-ilk[data-urun="apudra"] { --si-zemin: #F2D4E3; }
.sektor-ilk[data-urun="odakly"] { --si-zemin: #140E3A; }
.sektor-ilk[data-urun="seansirdasi"] { --si-zemin: #042215; }
.sektor-ilk[data-urun="setflow"] { --si-zemin: #08100B; }
.sektor-ilk[data-urun="aesthio"] { --si-zemin: #230C30; }
.sektor-ilk[data-urun="wenu"] { --si-zemin: #002321; }
.sektor-ilk[data-urun="ilkadim"] { --si-zemin: #332502; }
.sektor-ilk[data-urun="limbaura"] { --si-zemin: #2C0C27; }
.sektor-ilk[data-urun="belletmen"] { --si-zemin: #180C31; }
.sektor-ilk[data-urun="eglentos"] { --si-zemin: #2D0C17; }
.sektor-ilk[data-urun="araogun"] { --si-zemin: #0C2606; }
.sektor-ilk[data-urun="ustakalfa"] { --si-zemin: #051E33; }
.sektor-ilk[data-urun="tailmedic"] { --si-zemin: #07120E; }
.sektor-ilk[data-urun="yevmio"] { --si-zemin: #331506; }
/* vizör köşeleri (K1 çerçevesi; yalnız ilk ekranda, sayfanın gerisinde yok) */
.sektor-ilk::after {
  content: ''; position: absolute; inset: 8px; z-index: 8; pointer-events: none;
  --c: rgba(244, 241, 234, .42);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 18px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px 18px no-repeat;
}
.sektor-ilk :focus-visible { outline: 3px solid var(--y, var(--si-kagit)); outline-offset: 3px; border-radius: 6px; }

/* ---------- afiş (ilk kare): dünyanın durgun karesi KENDİ RENKLERİYLE (KARAR-WT7: gri ton yok; gri→renk dönüşümü kalktı);
   dünyanın imza hareketi (nesnelerin ve aygıtların gelişi) bunun üstünde oynar. Afiş dosyada hazır (`data-ton="hazir"`,
   NASIL.md §3 A, renkli); yedek yol: modülün durgun karesi doğrudan (süzgeç yok). Modül gelmezse ve betiksizde de renkli durgun kare.
   Tam ekran kalmalı: tarayıcı tam ekran görseli «arka plan» sayıp LCP adayı yapmaz → LCP ilk karedeki h1 (FCP ile aynı an;
   telefonda aşağıdaki tembel görseller LCP hesabına girmez). Modülün sonradan açılan görselleri sektor-ilk.js «ısıtma» ile aday olmaz. ---------- */
.sektor-ilk .si-afis { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; }
.sektor-ilk .si-afis img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--si-afis-konum, 50% 50%); }
.sektor-ilk > .dunya { z-index: 1; }

/* ---------- dünya: K1 vitrin temeli (yer tutucu ızgara: solda kart, sağda aygıtlar; modül kendi düzenini kurar) ---------- */
:where(.sektor-ilk) .dunya { position: relative; isolation: isolate; overflow: hidden; height: 100vh; height: 100svh; min-height: 560px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: 'kart aygit'; align-items: center; gap: 32px 56px;
  padding: 104px 48px 64px; background: transparent; color: var(--y); outline: none; }
:where(.sektor-ilk) .d-sahne { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
:where(.sektor-ilk) .d-durgun { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
:where(.sektor-ilk) .d-kart { grid-area: kart; position: relative; z-index: 3; width: min(440px, 100%); padding: 24px 26px 22px; }
:where(.sektor-ilk) .d-levha { position: absolute; inset: 0; z-index: -1; border-radius: 24px; background: rgba(var(--k), .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 30px 60px -30px rgba(0, 0, 0, .65); transform-origin: 0 0; }
:where(.sektor-ilk) .dunya[data-acik] .d-levha { box-shadow: inset 0 0 0 1px rgba(58, 13, 42, .12), 0 30px 60px -32px rgba(90, 20, 60, .4); }
:where(.sektor-ilk) .d-no { margin: 0; font: 600 13px/1.35 var(--es); letter-spacing: .11em; text-transform: uppercase; color: var(--ys); }
:where(.sektor-ilk) .d-no b { color: var(--y); font-weight: 700; }
:where(.sektor-ilk) .d-sektor { margin: 10px 0 0; width: max-content; font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: .95; color: var(--v); white-space: nowrap; transform-origin: 0 0; }
:where(.sektor-ilk) .d-ad { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font-size: 26px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
:where(.sektor-ilk) .d-ad img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
:where(.sektor-ilk) .d-sayi { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 16px 0 0; }
:where(.sektor-ilk) .d-sayi b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
:where(.sektor-ilk) .d-sayi span { font-size: 15px; color: var(--ys); }
:where(.sektor-ilk) .d-is { margin: 12px 0 0; font-size: 16px; line-height: 1.5; max-width: none; }
:where(.sektor-ilk) .d-ornek { margin: 8px 0 0; font-size: 14px; color: var(--ys); }
:where(.sektor-ilk) .d-eylem { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
:where(.sektor-ilk) .d-dugme, :where(.sektor-ilk) .d-ince { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap; }
:where(.sektor-ilk) .d-dugme { background: var(--b); color: var(--by); font-weight: 720; }
:where(.sektor-ilk) .d-dugme svg { width: 17px; height: 17px; flex: none; }
:where(.sektor-ilk) .d-ince { padding: 0 16px; border: 1px solid color-mix(in srgb, var(--y) 42%, transparent); color: var(--y); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { :where(.sektor-ilk) .d-ince:hover { border-color: var(--y); } :where(.sektor-ilk) .d-dugme:hover { text-decoration: underline; text-underline-offset: 3px; } }
:where(.sektor-ilk) .d-kart :focus-visible { outline-color: var(--y); }
:where(.sektor-ilk) .d-aygitlar { grid-area: aygit; position: relative; z-index: 2; justify-self: end; width: min(100%, 720px); margin: 0; }
:where(.sektor-ilk) .d-dizustu { position: relative; background: #121317; border-radius: 16px; padding: 10px 10px 12px; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }
:where(.sektor-ilk) .d-ekran { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #0B0C0F; }
:where(.sektor-ilk) .d-ekran img, :where(.sektor-ilk) .d-ekran video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
:where(.sektor-ilk) .d-ekran video { opacity: 0; transition: opacity .4s; }
:where(.sektor-ilk) .d-ekran video.oynuyor { opacity: 1; }
:where(.sektor-ilk) .d-telefon { position: absolute; left: -6%; bottom: -9%; width: 21%; padding: 5px; background: #0E0F12; border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12); }
:where(.sektor-ilk) .d-telefon img { width: 100%; height: auto; aspect-ratio: 400 / 866; object-fit: cover; border-radius: 19px; }
:where(.sektor-ilk) .d-not { position: absolute; right: 0; top: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 14px 0 0; font-size: 13px; line-height: 1.3; }
:where(.sektor-ilk) .d-not span { padding: 4px 10px; border-radius: 999px; background: rgba(var(--k), .92); color: var(--y); }
html.kayit-kipi :where(.sektor-ilk) .d-ekran video { transition: none; }

/* ---------- dev yazı: h1 dünyanın kartında, dev sözcüğün yerinde (.d-sektor.si-bas) ----------
   Modülün .d-sektor kuralları (büyük harf, tek satır, dar sütun) h1'e geçmesin: 4 sınıf özgüllük, modülde en çok 3.
   Boy kartın iç genişliğinden (kap birimi): --si-k (çarpan), --si-min / --si-max sayfanın <section style>'ından ayarlanır. */
.sektor-ilk .dunya .d-sektor.si-bas { width: auto; max-width: 100%; white-space: normal; text-transform: none; font: inherit; letter-spacing: normal;
  color: var(--y); transform: none; container-type: inline-size; }
.sektor-ilk .si-bas h1 { margin: 0; font-size: clamp(var(--si-min, 26px), calc(var(--si-k, 1) * 10.4cqi), var(--si-max, 72px)); font-weight: 800;
  line-height: 1.02; letter-spacing: -.04em; color: var(--y); text-wrap: balance; max-width: none; hyphens: manual; overflow-wrap: normal; }
.sektor-ilk .si-bas h1 em { font-style: normal; color: var(--v); }
/* ana düğme dar kartta taşmaz (320 px): yazı gerekirse iki satıra iner */
.sektor-ilk .dunya .d-eylem .d-dugme { max-width: 100%; white-space: normal; text-align: left; }
/* fiyat satırı: kartın künyesi gibi (örnek işletme satırının biçemi); modüller .d-ornek'i telefonda gizleyebilir, bu gizlenmez */
.sektor-ilk .si-fiyat { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--ys); }
.sektor-ilk .si-fiyat b { color: var(--y); font-weight: 800; font-size: 1.15em; letter-spacing: -.01em; margin-right: 4px; }

/* İsteğe bağlı: kartı tek sütun akışa çevirir (modülün kartı çok sütunlu ızgaraysa ve h1 dar sütuna sıkışıyorsa):
   <section class="sektor-ilk v-canli" data-kart="tek" …> */
.sektor-ilk[data-kart="tek"] .dunya .d-kart { display: flex !important; flex-direction: column !important; align-items: stretch; }
.sektor-ilk[data-kart="tek"] .dunya .d-kart > * { grid-column: auto !important; grid-row: auto !important; }

/* ---------- açılış (yalnız betik + hareket varken): ilk kare WebTechTR afişi (mürekkep zemin + dolu kartta h1);
   dünya imza geçişiyle açılır, aygıtlar dünyanın içine girer. Betik gelmezse 3,2 sn'de son kare kendiliğinden (yedek). ---------- */
@keyframes si-yedek { to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .js .sektor-ilk:not(.si-hazir) .d-aygitlar { opacity: 0; animation: si-yedek .45s 3.2s forwards; }
}

/* ---------- WebTechTR çerçevesi: ortak üst bant ince cam haplara döner (K1 dili) ---------- */
html:has(.sektor-ilk) { scroll-padding-top: 80px; }
html:has(.sektor-ilk) .ust { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; pointer-events: none; }
html:has(.sektor-ilk) .ust-ic { max-width: none; min-height: 0; padding: 14px 24px 0; gap: 12px; }
html:has(.sektor-ilk) .ust .logo, html:has(.sektor-ilk) .ust-menu, html:has(.sektor-ilk) .ust-cagri { pointer-events: auto;
  background: rgba(14, 15, 18, .66); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 24px -14px rgba(0, 0, 0, .7); }
html:has(.sektor-ilk) .ust .logo { height: 48px; padding: 0 16px 0 8px; gap: 10px; border-radius: 999px; color: #F4F1EA; }
html:has(.sektor-ilk) .ust .logo-yazi b { color: #0E0F12; padding: 0 .04em; }
html:has(.sektor-ilk) .ust .logo-yazi b::before { top: .02em; bottom: -.06em; height: auto; left: -.04em; right: -.04em; }
html:has(.sektor-ilk) .ust-menu { margin: 0 0 0 auto; height: 52px; display: flex; align-items: center; padding: 0 0 0 8px; border-right: 0; border-radius: 999px 0 0 999px; }
html:has(.sektor-ilk) .ust-menu ul { gap: 2px; }
html:has(.sektor-ilk) .ust-menu a { color: #F4F1EA; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { html:has(.sektor-ilk) .ust-menu a:hover { background: rgba(255, 255, 255, .1); } }
html:has(.sektor-ilk) .ust-cagri { height: 52px; padding: 0 4px 0 2px; border-left: 0; border-radius: 0 999px 999px 0; margin-left: -12px; }
html:has(.sektor-ilk) .ust-cagri .dugme-sari { min-height: 44px; padding: 0 18px; box-shadow: none; }
html:has(.sektor-ilk) .ust :focus-visible { outline: 3px solid var(--si-sari, #FFE600); outline-offset: 3px; }
html:has(.sektor-ilk) .menu-dugme { display: none !important; }
@media (max-width: 1023px) {
  html:has(.sektor-ilk) .ust-ic { padding: 14px 16px 0; justify-content: space-between; }
  html:has(.sektor-ilk) .ust-menu { display: none !important; }
  html:has(.sektor-ilk) .ust .logo { height: 44px; }
  html:has(.sektor-ilk) .ust-cagri { height: 48px; margin-left: auto; padding: 0 2px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
  html:has(.sektor-ilk) .ust-cagri .dugme-sari { min-height: 44px; padding: 0 16px; }
  /* cam gezinme altta: alt bilgi onun arkasında kalmasın */
  html:has(.sektor-ilk) .altbilgi { padding-bottom: 112px; }
}

/* ---------- cam gezinme (telefon; k1/cam-nav): seçili hap ürünün rengi (sira.json renk.hap), sarı yalnız «Kayıt ol» ---------- */
.si-nav { display: none; }
.js .si-nav .cn:not(.cn--hazir) { visibility: hidden; }
@media (max-width: 1023px) {
  .si-nav { display: block; position: fixed; z-index: 45; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 60px; }
  .si-nav .cn { --cn-cam: rgba(14, 15, 18, .70); --cn-kenar: rgba(255, 255, 255, .22); --cn-yazi: #F4F1EA; --cn-vurgu: var(--dv, #F4F1EA); --cn-vurgu-ust: var(--dv, #FFFFFF);
    --cn-vurgu-alt: var(--dv, #E4DFD4); --cn-vurgu-yazi: #0E0F12; --cn-vurgu-kenar: rgba(255, 255, 255, .45); --cn-ustunde: #FFFFFF; --cn-isima: transparent; --cn-yukseklik: 60px; }
}

/* ---------- telefon ve dikey tablet (K1 vitrin temeli) ---------- */
@media (max-width: 1023px) {
  .sektor-ilk { --si-yan: 16px; }
  :where(.sektor-ilk) .dunya { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'aygit' 'kart'; align-content: space-between; gap: 18px; padding: 84px 16px 100px; }
  :where(.sektor-ilk) .d-kart { width: 100%; max-width: 560px; padding: 18px 18px 16px; }
  :where(.sektor-ilk) .d-aygitlar { justify-self: center; width: min(68%, 520px); }
  :where(.sektor-ilk) .d-not { display: none; }
}
@media (max-width: 599px) {
  :where(.sektor-ilk) .d-kart { padding: 16px 16px 14px; }
  :where(.sektor-ilk) .d-levha { border-radius: 20px; }
  :where(.sektor-ilk) .d-no { font-size: 13px; letter-spacing: .05em; }
  :where(.sektor-ilk) .d-sektor { font-size: 36px; margin-top: 8px; }
  :where(.sektor-ilk) .d-ad { font-size: 21px; margin-top: 8px; gap: 10px; }
  :where(.sektor-ilk) .d-ad img { width: 28px; height: 28px; border-radius: 8px; }
  :where(.sektor-ilk) .d-sayi { margin-top: 10px; } :where(.sektor-ilk) .d-sayi b { font-size: 30px; } :where(.sektor-ilk) .d-sayi span { font-size: 14px; }
  :where(.sektor-ilk) .d-is { font-size: 15px; line-height: 1.45; margin-top: 8px; }
  :where(.sektor-ilk) .d-ornek { font-size: 13px; margin-top: 6px; }
  :where(.sektor-ilk) .d-eylem { margin-top: 12px; gap: 6px; }
  :where(.sektor-ilk) .d-dugme, :where(.sektor-ilk) .d-ince { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  :where(.sektor-ilk) .d-aygitlar { width: 78%; justify-self: end; margin-right: 1%; }
  :where(.sektor-ilk) .d-dizustu { border-radius: 11px; padding: 6px 6px 8px; } :where(.sektor-ilk) .d-ekran { border-radius: 4px; }
  :where(.sektor-ilk) .d-telefon { width: 25%; left: -12%; bottom: -14%; padding: 3px; border-radius: 14px; } :where(.sektor-ilk) .d-telefon img { border-radius: 11px; }
  .sektor-ilk .si-fiyat { font-size: 13px; margin-top: 8px; }
  /* telefonda kart + aygıt payı ≤ %50 (dünyanın odağı açıkta): dev yazı + fiyat + tek düğme; uzun cümle ve ikinci bağlantı
     masaüstünde kalır (ikincisi sayfanın sonundaki «ürünün kendi sitesi» bandında da var) */
  .sektor-ilk.v-canli .dunya .d-bilgi .d-is, .sektor-ilk.v-canli .dunya .d-eylem .d-ince { display: none; }
  :where(.sektor-ilk.v-canli) .d-ornek { display: none; }
  :where(.sektor-ilk.v-canli) .d-eylem { margin-top: 10px; }
}
/* kısa telefon (Safari araç çubuğu açıkken ~660–760 px) */
@media (max-width: 1023px) and (max-height: 759px) {
  :where(.sektor-ilk.v-canli) .dunya { padding-top: 78px; padding-bottom: 88px; gap: 12px; }
  :where(.sektor-ilk.v-canli) .d-sayi { display: none; }
  :where(.sektor-ilk.v-canli) .d-is { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  :where(.sektor-ilk.v-canli) .d-ornek { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :where(.sektor-ilk.v-canli) .d-aygitlar { width: 46%; }
}
@media (min-width: 1600px) {
  .sektor-ilk { --si-yan: 32px; }
  :where(.sektor-ilk) .dunya { padding-inline: 72px; }
  html:has(.sektor-ilk) .ust-ic { padding-inline: 32px; }
}
/* betiksiz: modülün betikle yerleştirdiği aygıtlar (ör. telefonda mutlak konum) akışta kalır; durgun kare <noscript>'ten */
html:not(.js) .sektor-ilk .dunya .d-aygitlar { opacity: 1; }
