/* =============================================================
   ETERP — EK STİLLER
   style.css ve nav-extra.css'e DOKUNMAZ. Tüm yeni sınıflar
   "etp-" ön ekiyle yazılmıştır.

   KIRILMA NOKTALARI (nav-extra.css ile uyumlu):
     901px ve üzeri  -> masaüstü. .nav-tool-group görünür.
     900px ve altı   -> .nav-tool-group gizlenir (nav-extra.css).
     680px ve altı   -> hamburger devreye girer (style.css).
   ============================================================= */


/* =============================================================
   1) DİL SEÇİCİ
   İKİ AYRI ELEMENT kullanılır:
     .etp-lang-list -> masaüstü yatay şerit
     .etp-lang-m    -> mobil açılır kutu (<details>)
   Sebep: <details> kapalıyken tarayıcı <summary> dışındaki
   içeriği render etmez. Tek elementle masaüstünde listeyi
   göstermek güvenilir değil, o yüzden ayrıldı.
   ============================================================= */

.etp-langwrap {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

/* --- masaüstü şerit --- */
.etp-lang-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.etp-lang-list a {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.etp-lang-list a:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.etp-lang-list a[aria-current="true"] { color: #0b1f3a; background: #fff; }

/* --- mobil açılır kutu: masaüstünde tamamen kapalı --- */
.etp-lang-m { display: none; }


/* =============================================================
   2) AÇILIR HİZMET MENÜSÜ — YALNIZCA MASAÜSTÜ
   Tüm blok 901px ve üzerine kilitlendi. Mobilde .main-nav'ın
   konumlandırmasına kesinlikle dokunulmaz; hamburger menünüz
   style.css'teki davranışıyla çalışmaya devam eder.
   ============================================================= */

@media (min-width: 901px) {

  .main-nav { position: relative; }

  .etp-sub::after {
    content: " ▾";
    font-size: .8em;
    opacity: .7;
  }

  .etp-dd {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 26px;
    width: min(640px, calc(100vw - 40px));
    padding: 22px 24px;
    margin-top: 10px;
    background: #0e2748;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
  }

  /* Link ile panel arasındaki boşlukta imleç kaybolmasın */
  .etp-dd::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
  }

  .etp-sub:hover + .etp-dd,
  .etp-sub:focus + .etp-dd,
  .etp-dd:hover,
  .etp-dd:focus-within { display: grid; }

  .etp-dd-col h5 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3fa9f5;
  }

  .etp-dd-col a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
    transition: color .13s ease;
  }

  .etp-dd-col a:hover { color: #fff; }

  [dir="rtl"] .etp-dd { left: auto; right: 0; }
  [dir="rtl"] .etp-dd-col { text-align: right; }
}


/* =============================================================
   3) MOBİL ARAÇ ÇUBUĞU
   nav-extra.css 900px altında .nav-tool-group'u gizliyor, bu da
   Barkod Oluştur bağlantısını mobilde erişilemez
   kılıyordu. Bu çubuk yalnızca mobilde görünür; masaüstünde
   display:none olduğu için oradaki görünümü hiç etkilemez.
   ============================================================= */

.etp-mbar { display: none; }

@media (max-width: 900px) {
  .etp-mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 16px 12px;
    background: #0b1f3a;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  .etp-mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;              /* dokunma hedefi için asgari yükseklik */
    padding: 10px 8px;
    border: 1px solid rgba(63, 169, 245, .40);
    border-radius: 8px;
    background: rgba(63, 169, 245, .14);
    color: #eaf4ff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }

  .etp-mbar a:active { background: rgba(63, 169, 245, .28); }
}


/* =============================================================
   4) MOBİL BAŞLIK DÜZENİ
   ============================================================= */

@media (max-width: 900px) {

  /* masaüstü şerit gizlenir, açılır kutu devreye girer */
  .etp-langwrap { margin-right: 8px; }
  .etp-lang-list { display: none; }

  .etp-lang-m {
    position: relative;
    display: inline-block;
  }

  .etp-lang-m > summary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #eaf4ff;
    list-style: none;
    cursor: pointer;
    user-select: none;
  }

  .etp-lang-m > summary::-webkit-details-marker { display: none; }
  .etp-lang-m > summary::marker { content: ""; }
  .etp-lang-m > summary::after { content: "▾"; font-size: 10px; opacity: .75; }

  .etp-lang-m[open] > summary {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .40);
  }
  .etp-lang-m[open] > summary::after { content: "▴"; }

  .etp-lang-mlist {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 148px;
    padding: 6px;
    background: #0e2748;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .40);
  }

  .etp-lang-mlist a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
  }

  .etp-lang-mlist a[aria-current="true"] { color: #0b1f3a; background: #fff; }

  [dir="rtl"] .etp-langwrap { margin-right: 0; margin-left: 8px; }
  [dir="rtl"] .etp-lang-mlist { right: auto; left: 0; }


  /* ---------------------------------------------------------
     HİZMETLER LİSTESİ — mobilde hamburger menü içinde
     Açılır panel değil, girintili düz liste olarak görünür.
     Renkler currentColor'dan alınır; menü arka planınız açık
     da olsa koyu da olsa okunur kalır.
     --------------------------------------------------------- */
  .etp-dd {
    display: block;
    position: static;
    width: auto;
    margin: 2px 0 12px;
    padding: 8px 0 2px 14px;
    background: none;
    border: none;
    border-left: 2px solid rgba(63, 169, 245, .40);
    border-radius: 0;
    box-shadow: none;
  }

  .etp-dd::before { display: none; }

  .etp-dd-col { margin-bottom: 12px; }
  .etp-dd-col:last-child { margin-bottom: 0; }

  .etp-dd-col h5 {
    margin: 0 0 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: inherit;
    opacity: .55;
  }

  .etp-dd-col a {
    display: block;
    padding: 8px 0;
    font-size: 13.5px;
    line-height: 1.3;
    color: inherit;
    opacity: .85;
    text-decoration: none;
  }

  .etp-dd-col a:active { opacity: 1; }

  [dir="rtl"] .etp-dd {
    padding: 8px 14px 2px 0;
    border-left: none;
    border-right: 2px solid rgba(63, 169, 245, .40);
  }
}

/* Dar telefonlarda başlık satırının taşmasını önle */
@media (max-width: 480px) {
  .site-header .nav-cta .btn { padding: 9px 12px; font-size: 12.5px; }
  .etp-lang-m > summary { padding: 8px 9px; }
  .etp-mbar { grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px 12px 11px; }
  .etp-mbar a { font-size: 12.5px; padding: 10px 6px; }
}


/* =============================================================
   5) ARAPÇA — SAĞDAN SOLA
   ============================================================= */

[dir="rtl"] body,
[dir="rtl"] .wrap { text-align: right; }

[dir="rtl"] .site-header .wrap,
[dir="rtl"] .nav-cta,
[dir="rtl"] .main-nav,
[dir="rtl"] .cta-row,
[dir="rtl"] .footer-bottom,
[dir="rtl"] .cta-band { flex-direction: row-reverse; }

[dir="rtl"] .breadcrumb { flex-direction: row-reverse; justify-content: flex-end; }

[dir="rtl"] ul,
[dir="rtl"] ol { padding-right: 1.25em; padding-left: 0; }

[dir="rtl"] .checklist li { flex-direction: row-reverse; }

[dir="rtl"] .specs-table th,
[dir="rtl"] .specs-table td { text-align: right; }

[dir="rtl"] .faq-item summary { text-align: right; }

[dir="rtl"] .service-card .go,
[dir="rtl"] .blog-card { text-align: right; }

[dir="rtl"] .go { direction: rtl; }

[dir="rtl"] p,
[dir="rtl"] li { line-height: 1.85; }

[dir="rtl"] .wa-float { right: auto; left: 22px; }
