/* necatigurbuz.com ortak eklemeler: yazılı menü, dil seçici, başlıklar, videolar, telefon katmanı. */

/* ---------- Menü (masaüstü): eski ahşap düğmelerin görünümü, gerçek yazı ---------- */
.ng-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; margin: 0 auto; }
.ng-nav a {
  display: flex; align-items: center; justify-content: center;
  width: 140px; height: 45px; padding: 0 6px; box-sizing: border-box;
  background: #2d1c15 url(image/Button/ng-ahsap.jpg) center / 100% 100% no-repeat;
  border: 1px solid #1a0f0a; text-decoration: none;
  font: italic 700 19px/1.05 "EB Garamond", "Times New Roman", Georgia, serif; text-align: center;
  color: #fff; text-shadow: 3px 4px 3px rgba(0, 0, 0, .8); letter-spacing: .01em;
  transition: filter .15s ease;
}
.ng-nav a:hover, .ng-nav a:focus-visible { filter: brightness(1.25); }
.ng-nav a[aria-current="page"], .ng-nav a.ng-bolum { background-image: url(image/Button/ng-ahsap-acik.jpg); }
.ng-nav.ng-alt { margin-top: 4px; }
.ng-nav.ng-alt a {
  width: 150px; background: #9a7520 url(image/Button/ng-altin.jpg) center / 100% 100% no-repeat;
  border-color: #6d5214; font-size: 19px; text-shadow: 2px 3px 2px rgba(0, 0, 0, .55);
}
.ng-nav.ng-alt a[aria-current="page"] { filter: brightness(.82); }
.ng-nav a:focus-visible { outline: 2px solid #FFD700; outline-offset: 2px; }

/* ---------- Dil seçici ---------- */
#ng-dil { position: fixed; top: 10px; right: 10px; z-index: 1995; font: 600 13px/1 Poppins, Arial, sans-serif; }
#ng-dil summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  background: #111; color: #FFD700; border: 2px solid #FFD700; box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
#ng-dil summary::-webkit-details-marker { display: none; }
#ng-dil summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
#ng-dil ul { position: absolute; right: 0; top: 46px; margin: 0; padding: 4px 0; list-style: none; min-width: 150px;
  background: #1E1E1E; border: 1px solid #FFD700; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
#ng-dil li a { display: block; padding: 10px 14px; color: #FFD700; text-decoration: none; text-align: left; font-weight: 500; }
#ng-dil li a:hover, #ng-dil li a:focus-visible { background: #2b2b2b; }
#ng-dil li a[aria-current="true"] { color: #fff; }

/* ---------- Başlık, giriş metni ---------- */
h1.ng-h1 { color: #FFD700; font-family: Poppins, sans-serif; font-size: 28px; line-height: 1.3; margin: 0 0 20px; text-align: center; font-weight: 700; }
.ng-giris { max-width: 940px; margin: 26px auto 6px; padding: 26px 30px; background: rgba(20, 14, 10, .82);
  border: 1px solid rgba(255, 215, 0, .35); border-radius: 12px; text-align: left; color: #f3e9c6; font-weight: 400; }
.ng-giris h1.ng-h1 { font-size: 26px; }
.ng-giris p { font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.ng-hizli { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 12px; justify-content: center; }
.ng-hizli a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid #FFD700; color: #FFD700; text-decoration: none; font-weight: 600; }
.ng-hizli a:hover, .ng-hizli a:focus-visible { background: #FFD700; color: #1a1208; }
.ng-adres { text-align: center; color: #FF9; font-weight: 600; }
.ng-adres a { color: #FFD700; }

/* ---------- Videolar ---------- */
.ng-video-giris { text-align: center; max-width: 720px; margin: 0 auto 24px !important; }
.ng-videolar { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 16px 0 34px; text-align: left; }
.ng-video { background: #1A1A1A; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 215, 0, .18); }
.ng-video h3 { font-size: 16px !important; line-height: 1.35; margin: 12px 14px 6px !important; color: #FFD700; text-align: left !important; }
.ng-video p { font-size: 14px; line-height: 1.55; margin: 0 14px 8px !important; font-weight: 400; color: #e9e2c5; text-align: left !important; }
.ng-video .ng-video-kanal { font-size: 13px; color: #b9b092; margin-bottom: 14px !important; }
.ng-video .ng-video-kanal a { color: #FFD700; }
.ng-video-oynat, .ng-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; background: #000; }
.ng-video-oynat { position: relative; cursor: pointer; overflow: hidden; }
.ng-video-oynat img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s ease, transform .3s ease; }
.ng-video-oynat::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
  border-radius: 12px; background: #d40000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.ng-video-oynat:hover img, .ng-video-oynat:focus-visible img { opacity: 1; transform: scale(1.03); }
.ng-video-oynat:focus-visible { outline: 3px solid #FFD700; outline-offset: -3px; }
.ng-video-sure { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font: 600 12px/1 Poppins, sans-serif; padding: 4px 6px; border-radius: 4px; }

/* ---------- Sağdan sola (Arapça) ---------- */
[dir="rtl"] .content-section, [dir="rtl"] .ng-giris, [dir="rtl"] .ng-video p, [dir="rtl"] .ng-video h3 { text-align: right !important; }
[dir="rtl"] #ng-dil { right: auto; left: 10px; }
[dir="rtl"] #ng-dil ul { right: auto; left: 0; }
[dir="rtl"] #ng-dil li a { text-align: right; }

/* ---------- Telefon katmanı (yalnız 820px ve altı) ---------- */
#ng-bar, #ng-menu { display: none; }

@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  body { padding: 64px 0 0 !important; font-size: 14px; background-attachment: scroll; }
  body.ng-kilit { overflow: hidden; }

  .ng-nav { display: none !important; }

  table { width: 100% !important; max-width: 100% !important; table-layout: fixed; }
  td, th { width: auto !important; height: auto !important; }
  img { max-width: 100%; height: auto; }
  iframe { max-width: 100% !important; }
  td[bgcolor] { padding: 14px 12px !important; }

  #ng-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; inset: 0 0 auto 0; height: 60px; z-index: 1990;
    padding: 0 92px 0 8px;
    background: rgba(12, 12, 12, .96);
    border-bottom: 1px solid rgba(255, 215, 0, .55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  }
  [dir="rtl"] #ng-bar { padding: 0 8px 0 92px; }
  #ng-ac {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
    display: grid; place-items: center; cursor: pointer;
    background: transparent; border: 1px solid rgba(255, 215, 0, .6); color: #FFD700;
  }
  #ng-ac span, #ng-ac span::before, #ng-ac span::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    position: relative; transition: transform .25s ease, background .25s ease;
  }
  #ng-ac span::before, #ng-ac span::after { content: ""; position: absolute; left: 0; }
  #ng-ac span::before { top: -6px; }
  #ng-ac span::after { top: 6px; }
  body.ng-acik #ng-ac span { background: transparent; }
  body.ng-acik #ng-ac span::before { transform: translateY(6px) rotate(45deg); }
  body.ng-acik #ng-ac span::after { transform: translateY(-6px) rotate(-45deg); }
  #ng-ad { flex: 1; min-width: 0; text-decoration: none; text-align: start; line-height: 1.15; }
  #ng-ad b { display: block; color: #FFD700; font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
  #ng-ad small { display: block; color: #FF9; font-size: 11px; font-weight: 400; letter-spacing: .06em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  #ng-dil { top: 10px; }
  #ng-dil summary { height: 40px; padding: 0 10px; }

  #ng-menu {
    display: block; position: fixed; inset: 60px 0 0 0; z-index: 1980;
    background: #121212; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 8px 0 calc(24px + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  body.ng-acik #ng-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
  #ng-menu ul { list-style: none; margin: 0; padding: 0; }
  #ng-menu > ul > li { border-bottom: 1px solid rgba(255, 215, 0, .14); }
  #ng-menu a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: 0 22px; text-decoration: none; text-align: start;
    color: #FF9; font-size: 17px; font-weight: 600; letter-spacing: .02em;
  }
  #ng-menu a::after { content: "›"; color: rgba(255, 215, 0, .55); font-size: 22px; font-weight: 400; }
  [dir="rtl"] #ng-menu a::after { content: "‹"; }
  #ng-menu a:active { background: rgba(255, 215, 0, .08); }
  #ng-menu a[aria-current="page"] { color: #FFD700; box-shadow: inset 3px 0 0 #FFD700; background: rgba(255, 215, 0, .06); }
  #ng-menu .ng-satir { display: flex; align-items: stretch; }
  #ng-menu .ng-satir a { flex: 1; }
  #ng-menu .ng-satir a::after { content: none; }
  #ng-menu .ng-katla {
    flex: 0 0 60px; border: 0; border-inline-start: 1px solid rgba(255, 215, 0, .14);
    background: transparent; color: #FFD700; cursor: pointer; display: grid; place-items: center;
  }
  #ng-menu .ng-katla::before {
    content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
  }
  #ng-menu .ng-genis .ng-katla::before { transform: translateY(2px) rotate(-135deg); }
  #ng-menu ul ul { display: none; padding: 0 0 8px; }
  #ng-menu .ng-genis > ul { display: block; }
  #ng-menu ul ul a { min-height: 44px; padding-inline-start: 40px; font-size: 15px; font-weight: 400; color: #e9e2b8; }
  #ng-menu .ng-iletisim { display: flex; gap: 10px; padding: 20px 22px 0; }
  #ng-menu .ng-iletisim a {
    flex: 1; justify-content: center; min-height: 46px; padding: 0 12px; border-radius: 10px;
    font-size: 15px; border: 1px solid rgba(255, 215, 0, .5); color: #FFD700;
  }
  #ng-menu .ng-iletisim a::after { content: none; }
  #ng-menu .ng-iletisim a.ng-wa { background: #25D366; border-color: #25D366; color: #fff; }
  #ng-ac:focus-visible, #ng-menu a:focus-visible, #ng-menu .ng-katla:focus-visible { outline: 2px solid #FFD700; outline-offset: -3px; }

  .slider-container { height: auto !important; aspect-ratio: 4 / 3; margin: 0 auto 8px !important; }
  .slide-text .main-text { font-size: 26px !important; }
  .slide-text .sub-text { font-size: 14px !important; }
  td[style*="padding-right: 5px"], td[style*="padding-left: 5px"], td[style*="padding-left: 2.5px"] { padding: 2px !important; }

  .highslide-gallery { display: block !important; }
  .highslide-gallery ul { display: flex !important; flex-wrap: wrap; justify-content: center; width: 100%; gap: 10px !important; margin: 12px auto !important; }
  .highslide-gallery li { width: calc(50% - 5px); margin: 0 !important; }
  .highslide-gallery img { max-width: 100% !important; max-height: none !important; width: 100%; aspect-ratio: 1; }
  .ud-model, .kanun-model, .kemence-model { padding: 12px !important; gap: 12px !important; }
  .ud-gallery, .ud-specs, .ud-wood, .kanun-gallery, .kanun-specs, .kanun-wood,
  .kemence-gallery, .kemence-specs, .kemence-wood { min-width: 100% !important; }
  p, li { overflow-wrap: anywhere; }
  .ng-giris { margin: 14px 8px 0; padding: 18px 16px; }
  .ng-giris h1.ng-h1 { font-size: 21px; }
  h1.ng-h1 { font-size: 23px; }
  .ng-videolar { grid-template-columns: 1fr; }

  #whatsapp-text { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #ng-menu, #ng-ac span, #ng-ac span::before, #ng-ac span::after, #ng-menu .ng-katla::before, .ng-video-oynat img { transition: none !important; }
}
