/* OpenEKKO — mobil düzen katmanı.
   Sayfalardaki satır içi stilleri telefon genişliğinde ezer (bu yüzden !important).
   Mobil görünüm "hareketi azalt" ayarından bağımsızdır: telefonda dekoratif
   animasyonlar her zaman kapalıdır, içerik her iki durumda da aynı görünür. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
#oe-root img { max-width: 100%; }

@media (max-width: 640px) {
  #oe-root { overflow-x: clip; }

  /* ---- Hareket: ayardan bağımsız, sabit ---- */
  .oe-flow, .oe-drift, .oeb-flow, .oeb-drift, .oeb-marquee { animation: none !important; }
  .oe-flow, .oeb-flow { stroke-dasharray: none !important; }
  /* Kayan sektör şeridi: kaydırılabilir tek sıra, yinelenen ikinci yarı gizli */
  #oe-root section:has(> .oeb-marquee) { overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #oe-root section:has(> .oeb-marquee)::-webkit-scrollbar { display: none; }
  .oeb-marquee { font-size: 20px !important; gap: 22px !important; padding: 18px 20px !important; }
  .oeb-marquee > span:nth-child(n+17) { display: none; }

  /* ---- Üst menü: logo + butonlar tek satır, linkler yatay kaydırılan şerit ---- */
  #oe-root header nav { padding: 12px 16px !important; gap: 10px 12px !important; flex-wrap: wrap !important; }
  #oe-root header nav > a:first-child img { width: 72px !important; height: auto !important; }
  #oe-root header nav > div:nth-of-type(1) {
    order: 3; flex: 1 0 100% !important; flex-wrap: nowrap !important; overflow-x: auto;
    gap: 22px !important; font-size: 14px !important; white-space: nowrap;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -16px !important; padding: 4px 16px 2px !important;
  }
  #oe-root header nav > div:nth-of-type(1)::-webkit-scrollbar { display: none; }
  #oe-root header nav > div:nth-of-type(1) > * { flex: none; }
  #oe-root header nav > div:nth-of-type(2) { order: 2; margin-left: auto; flex-wrap: nowrap !important; gap: 6px !important; align-items: center; }
  #oe-root header nav > div:nth-of-type(2) > * { font-size: 14px !important; padding: 9px 12px !important; white-space: nowrap; min-height: 40px; box-sizing: border-box; }

  /* Talep Oluştur başlığı: adımlar yatay şerit */
  #oe-root header > div { padding: 12px 16px !important; gap: 10px 12px !important; }
  #oe-root header > div > ol { order: 3; flex: 1 0 100% !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 -16px !important; padding: 0 16px !important; }
  #oe-root header > div > ol::-webkit-scrollbar { display: none; }
  #oe-root header > div > ol > li { flex: none; white-space: nowrap; }
  #oe-root header > div > a:last-child { order: 2; margin-left: auto; }

  /* ---- Bölüm boşlukları ---- */
  #oe-root [style*="padding: 120px 24px"], #oe-root [style*="padding: 112px 24px"],
  #oe-root [style*="padding: 104px 24px"], #oe-root [style*="padding: 96px 24px"],
  #oe-root [style*="padding: 88px 24px"] { padding-top: 56px !important; padding-bottom: 56px !important; }
  #oe-root [style*="padding: 112px 24px 40px"], #oe-root [style*="padding: 88px 24px 24px"],
  #oe-root [style*="padding: 72px 24px 24px"], #oe-root [style*="padding: 48px 24px 24px"] { padding-bottom: 16px !important; }
  #oe-root [style*="padding: 112px 24px 40px"], #oe-root [style*="padding: 88px 24px 24px"] { padding-top: 56px !important; }
  #oe-root [style*="padding: 80px 24px 104px"] { padding-top: 40px !important; padding-bottom: 56px !important; }
  #oe-root [style*="padding: 72px 24px 40px"], #oe-root [style*="padding: 64px 24px 40px"] { padding-top: 48px !important; padding-bottom: 32px !important; }
  #oe-root [style*="padding: 40px 24px 96px"], #oe-root [style*="padding: 48px 24px 96px"] { padding-top: 28px !important; padding-bottom: 56px !important; }
  #oe-root [style*="padding: 56px 24px 0"] { padding-top: 32px !important; }
  #oe-root [style*="padding: 72px 48px"], #oe-root [style*="padding: 56px 48px"], #oe-root [style*="padding: 56px 40px"] { padding: 36px 24px !important; }
  #oe-root [style*="padding: 88px 48px 56px"] { padding: 44px 24px 36px !important; gap: 40px !important; }
  #oe-root section[style="padding: 20px"], #oe-root section[style^="padding: 20px;"] { padding: 12px !important; }
  #oe-root [style*="gap: 64px"] { gap: 40px !important; }
  #oe-root [style*="gap: 56px"] { gap: 36px !important; }
  #oe-root [style*="gap: 48px"]:not(.oeb-marquee) { gap: 32px !important; }

  /* ---- Kartlar ---- */
  #oe-root [style*="padding: 40px;"], #oe-root [style*="padding: 36px;"] { padding: 24px !important; }
  #oe-root [style*="padding: 32px;"] { padding: 22px !important; }
  #oe-root [style*="font-size: 72px"] { font-size: 52px !important; }
  /* auto-fit ızgaralar dar ekranda tek sütuna insin (320px'te taşmasın) */
  #oe-root [style*="grid-template-columns: repeat(auto-fit"], #oe-root [style*="grid-template-columns: repeat(auto-fill"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* "Tanıştırılmak istiyorum / Tanıştırabilirim" anahtarı tam genişlik */
  #oe-root [style*="gap: 6px; background: #0C0848; border: 1px solid #2A2375; border-radius: 999px; padding: 6px"] { width: 100%; box-sizing: border-box; }
  #oe-root [style*="gap: 6px; background: #0C0848; border: 1px solid #2A2375; border-radius: 999px; padding: 6px"] > button { flex: 1 1 0; padding: 10px 8px !important; }
  #oe-root [style*="flex: 1 1 500px"], #oe-root [style*="flex: 1 1 460px"], #oe-root [style*="flex: 1 1 420px"],
  #oe-root [style*="flex: 1 1 380px"], #oe-root [style*="flex: 999 1 560px"], #oe-root [style*="flex: 3 1 460px"] { flex-basis: 100% !important; max-width: 100% !important; }
  #oe-root input[style*="flex: 1 1 420px"] { flex-basis: 100% !important; }
  #oe-root form button[style*="flex: 0 0 auto"] { flex: 1 1 auto !important; }

  /* openekko: hero şeritleri butonların altına binmesin */
  .oe-ribbon { top: -12px !important; }

  /* openekko2: "Seçili alan" panelindeki süs halkası başlığın üstüne binmesin */
  #oe-root [style*="right: -60px"][style*="top: -60px"][style*="border-radius: 50%"] { width: 150px !important; height: 150px !important; right: -70px !important; top: -70px !important; border-width: 20px !important; opacity: 0.45 !important; }

  /* ---- Fırsatlar: filtre paneli tam genişlik, daha sıkı ---- */
  #oe-root aside[style*="max-width: 300px"] { max-width: none !important; flex-basis: 100% !important; gap: 20px !important; }
  #oe-root aside[style*="max-width: 300px"] > fieldset:first-of-type { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 12px !important; }
  #oe-root aside[style*="max-width: 300px"] > fieldset:first-of-type > legend { grid-column: 1 / -1; }

  /* ---- Talep Oluştur ---- */
  #oe-root fieldset[style*="padding: 28px"] { padding: 18px !important; }
  #oe-root aside[style*="max-width: 520px"] { max-width: none !important; }

  /* ---- Panel: kenar menü üstte yatay şerit ---- */
  #oe-root aside[style*="max-width: 280px"] {
    max-width: none !important; flex: 1 0 100% !important; width: 100%; min-width: 0 !important; padding: 12px 16px 10px !important; gap: 10px !important;
    border-right: 0 !important; border-bottom: 1px solid #1E1A63; min-height: 0 !important; height: auto !important; position: static !important;
  }
  #oe-root aside[style*="max-width: 280px"] > nav {
    flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; gap: 6px !important;
    margin: 0 -16px !important; padding: 0 16px 4px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  #oe-root aside[style*="max-width: 280px"] > nav::-webkit-scrollbar { display: none; }
  #oe-root aside[style*="max-width: 280px"] > nav > a { flex: none; white-space: nowrap; padding: 9px 12px !important; font-size: 14px; gap: 8px !important; }
  #oe-root aside[style*="max-width: 280px"] > div { display: none !important; }
  #oe-root main[style*="padding: 28px 32px 64px"] { padding: 20px 16px 48px !important; gap: 18px !important; }
  #oe-root main input[style*="width: 260px"] { width: auto !important; flex: 1 1 0; min-width: 0; }
  #oe-root main section[style*="padding: 24px"] { padding: 18px !important; }
  #oe-root [style*="font-size: 34px"] { font-size: 28px !important; }
  /* Ağ haritası: dar ekranda orantılı küçült */
  #oe-root [style*="height: 420px"][style*="overflow: hidden"] { zoom: 0.78; }
  /* Tanıştırma akışı tablosu: satırlar kart olarak */
  #oe-root div:has(> table[style*="min-width: 760px"]) { overflow: visible !important; }
  #oe-root table[style*="min-width: 760px"] { min-width: 0 !important; display: block; }
  #oe-root table[style*="min-width: 760px"] thead { display: none; }
  #oe-root table[style*="min-width: 760px"] tbody { display: block; }
  #oe-root table[style*="min-width: 760px"] tr { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 14px 0; border-top: 1px solid #1E1A63; }
  #oe-root table[style*="min-width: 760px"] td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
  #oe-root table[style*="min-width: 760px"] td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  #oe-root table[style*="min-width: 760px"] td:not(:first-child) { display: contents; }
  #oe-root table[style*="min-width: 760px"] td:not(:first-child)::before { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9893C6; align-self: center; }
  #oe-root table[style*="min-width: 760px"] td:nth-child(2)::before { content: "Rolün"; }
  #oe-root table[style*="min-width: 760px"] td:nth-child(3)::before { content: "Zincir"; }
  #oe-root table[style*="min-width: 760px"] td:nth-child(4)::before { content: "Aşama"; }
  #oe-root table[style*="min-width: 760px"] td:nth-child(5)::before { content: "Tahmini pay"; }
}

/* Çok dar telefonlar (≤ 400px) */
@media (max-width: 400px) {
  /* Dil düğmesi üst satıra sığmıyor; demoda işlevsiz olduğundan gizlenir */
  #oe-root header nav > div:nth-of-type(2) > button { display: none !important; }
  #oe-root header nav > div:nth-of-type(2) > * { padding: 9px 10px !important; }
  #oe-root [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] { gap: 10px !important; }
  #oe-root [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"] > [style*="padding: 26px"] { padding: 18px !important; }
}

/* ---- Panel v2 (genel bakış) + herkese açık profil ---- */
@media (max-width: 640px) {
  #oe-root [data-oe="actions"] { width: 100%; }
  #oe-root [data-oe="actions"] input[type="search"] { flex: 1 0 100%; width: auto !important; min-width: 0; }
  #oe-root [data-oe="actions"] > a { flex: 1 1 0; text-align: center; padding-left: 10px !important; padding-right: 10px !important; font-size: 14px !important; }
  #oe-root [data-oe="mode"] { align-self: stretch !important; }
  #oe-root [data-oe="mode"] > button { flex: 1 1 0; padding: 10px 8px !important; font-size: 13px !important; }
  #oe-root [data-oe="hero"] { padding: 20px !important; gap: 20px !important; }
  #oe-root [data-oe="hero"] [style*="font-size: 40px"] { font-size: 30px !important; }
  #oe-root [data-oe="hero"] [style*="font-size: 22px"] { font-size: 18px !important; }
  #oe-root [data-oe="kpi"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #oe-root [data-oe="kpi"] > div { padding: 14px !important; border-radius: 16px !important; }
  #oe-root [data-oe="kpi"] [style*="font-size: 36px"] { font-size: 28px !important; }
  #oe-root [data-oe="pbar"] { padding: 12px 16px !important; }
  #oe-root [data-oe="pbar"] img { width: 72px !important; height: auto !important; }
  #oe-root [data-oe="pbar"] a { font-size: 14px !important; }
  #oe-root [data-oe="phero"] { padding: 24px 20px !important; gap: 18px !important; }
  #oe-root [data-oe="phero"] > div:first-of-type + div { width: 84px !important; height: 84px !important; font-size: 28px !important; }
  #oe-root [data-oe="phero"] h1 { font-size: 30px !important; }
}

/* ---- Uygulama kabuğu v3: tüm panel sayfaları, mesajlar, görüşmeler, giriş ---- */
@media (max-width: 640px) {
  /* Üyelik menüsü: logo satırının sağında küçük avatar düğmesi */
  #oe-root aside[style*="max-width: 280px"] { position: relative !important; }
  #oe-root [data-oe="usermenu"] { position: absolute; top: 10px; right: 14px; width: auto !important; padding: 3px !important; border: 0 !important; background: transparent !important; }
  #oe-root [data-oe="usermenu"] > span:nth-of-type(2), #oe-root [data-oe="usermenu"] > svg { display: none !important; }
  #oe-root [data-oe="nudge"] { padding: 12px 14px !important; }
  #oe-root [data-oe="nudge"] > a { flex: 1 1 100%; text-align: center; }
  #oe-root [data-oe="stepper"] { padding: 14px 16px !important; }
  #oe-root [data-oe="stepper"] ol li > span { width: 14px !important; }
  #oe-root [data-oe="tabs"]::-webkit-scrollbar { display: none; }
  /* Mesajlar: liste ve konuşma ayrı ekranlar */
  #oe-root [data-oe="chat"] { min-height: 0 !important; }
  #oe-root [data-oe="chat"][data-open="0"] [data-oe="cthread"] { display: none !important; }
  #oe-root [data-oe="chat"][data-open="1"] [data-oe="clist"] { display: none !important; }
  #oe-root [data-oe="clist"] { max-width: none !important; flex-basis: 100% !important; }
  #oe-root [data-oe="cthread"] { flex-basis: 100% !important; }
  #oe-root [data-oe="cback"] { display: flex !important; }
  #oe-root [data-oe="msgs"] { max-height: 56vh !important; min-height: 260px !important; padding: 14px !important; }
  /* Görüşmeler: takvim ızgarası */
  #oe-root [data-oe="calgrid"] > div { grid-template-columns: 38px repeat(5, minmax(0, 1fr)) !important; min-width: 0 !important; gap: 4px !important; }
  #oe-root main select { max-width: 100%; }
  #oe-root #planla [style*="flex: 1 1 280px"] { min-width: 0; flex-basis: 100% !important; }
  #oe-root [data-oe="calgrid"] button { font-size: 10px !important; min-height: 36px !important; padding: 0 !important; }
  /* Giriş / Üye Ol */
  #oe-root [data-oe="auth"] { padding: 18px 16px 32px !important; flex-basis: 100% !important; }
  #oe-root [data-oe="authhero"] { padding: 36px 20px 40px !important; flex-basis: 100% !important; border-left: 0 !important; border-top: 1px solid #1C1763; gap: 20px !important; }
  #oe-root [data-oe="authhero"] h2 { font-size: 30px !important; }
  #oe-root main[style*="padding: 32px 24px 96px"], #oe-root main[style*="padding: 40px 24px 96px"] { padding: 20px 16px 56px !important; }
}
@media (max-width: 640px) {
  #oe-root aside[style*="max-width: 280px"] { overflow: visible !important; }
  #oe-root aside[style*="max-width: 280px"] > nav { overflow-y: hidden !important; flex: none !important; }
}
/* Kısa ekranlı masaüstü: itibar kartı gizlenir, menü ve üyelik düğmesi görünür kalır */
@media (min-width: 641px) and (max-height: 820px) { #oe-root [data-oe="rep"] { display: none !important; } }
/* Tablet (641–900px): yan menü daralır, içerik yanında kalır (alt satıra düşmez) */
@media (min-width: 641px) and (max-width: 900px) {
  #oe-root aside[style*="max-width: 280px"] { flex: 0 0 204px !important; padding: 20px 10px !important; }
  #oe-root aside[style*="max-width: 280px"] > nav { font-size: 14px !important; }
  #oe-root aside[style*="max-width: 280px"] > nav > a { gap: 9px !important; padding: 10px !important; }
  #oe-root aside[style*="max-width: 280px"] + main { flex: 1 1 0 !important; padding: 24px 20px 56px !important; }
  #oe-root [data-oe="rep"] { display: none !important; }
}

/* Ana sayfa: panel önizlemesi — telefonda yalnızca masaüstü görüntüsü, telefon çerçevesi altta ortada */
@media (max-width: 640px) {
  #oe-root [data-oe="panel-shots"] { padding-bottom: 0 !important; display: flex; flex-direction: column; align-items: center; }
  #oe-root [data-oe="phone-shot"] { position: relative !important; right: auto !important; bottom: auto !important; width: 62% !important; margin-top: -48px !important; border-width: 5px !important; border-radius: 24px !important; }
  #oe-root [data-oe="panel-shots"] > figure:first-child { border-radius: 14px !important; width: 100%; }
}
