/* DO NOT EDIT – CORE
   Responsive hardening layer – Desktop-first approach
   Breakpoints: XS (≤479px), SM (480-767px), MD (768-1023px), LG (1024-1439px), XL (≥1440px)
   Yükleme sırası: tnc-global, tnc-visual-parity, tnc-responsive (en son)
*/

/* ==========================================================================
   1. ROOT & TYPOGRAPHY - Fluid Scaling
   ========================================================================== */

:root {
  /* Fluid tipografi - clamp() ile responsive ölçekleme */
  --tnc-font-size-h1: clamp(24px, 2.4vw, 36px);
  --tnc-font-size-h2: clamp(20px, 2vw, 28px);
  --tnc-font-size-h3: clamp(18px, 1.8vw, 24px);
  --tnc-font-size-h4: clamp(16px, 1.6vw, 20px);
  --tnc-font-size-body: clamp(14px, 1.4vw, 16px);
  --tnc-font-size-small: clamp(12px, 1.2vw, 14px);
  --tnc-line-height-base: 1.5;
  --tnc-line-height-heading: 1.3;
  --tnc-max-line-width: 72ch;
}

/* Başlıklar - fluid ölçekleme */
h1, .entry-title {
  font-size: var(--tnc-font-size-h1);
  line-height: var(--tnc-line-height-heading);
  max-width: var(--tnc-max-line-width);
}

h2 {
  font-size: var(--tnc-font-size-h2);
  line-height: var(--tnc-line-height-heading);
  max-width: var(--tnc-max-line-width);
}

h3 {
  font-size: var(--tnc-font-size-h3);
  line-height: var(--tnc-line-height-heading);
  max-width: var(--tnc-max-line-width);
}

h4 {
  font-size: var(--tnc-font-size-h4);
  line-height: var(--tnc-line-height-heading);
}

/* Gövde metni */
body, p, .entry-content {
  font-size: var(--tnc-font-size-body);
  line-height: var(--tnc-line-height-base);
  max-width: var(--tnc-max-line-width);
}

small, .muted {
  font-size: var(--tnc-font-size-small);
  line-height: 1.4;
}

/* Türkçe karakterler için harf taşması önleme */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Yatay scroll önleme - global */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* iOS 100vh hatası için dvh kullan */
html {
  min-height: 100dvh;
  /* Yatay scroll önleme */
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100dvh;
  /* Yatay scroll önleme */
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   2. HEADER - Responsive Layout & Navigation
   ========================================================================== */

/* Header yüksekliği tüm breakpoint'lerde sabit (CLS önleme) */
.tnc-header {
  min-height: 70px;
  height: auto;
  overflow: visible; /* Mobil menünün dışarı çıkması için */
  position: relative; /* Nav menü için referans */
}

.tnc-header__inner {
  min-height: 70px;
  overflow: visible; /* Mobil menünün dışarı çıkması için */
}

/* LG/XL: Yatay menü, sağda 3 ikon */
@media (min-width: 1024px) {
  .tnc-header__inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 16px;
    position: relative;
    padding: 16px 24px !important; /* Üst ve alt boşluk eklendi */
  }
  
  /* Menu toggle desktop'ta kesinlikle gizli */
  .tnc-menu-toggle {
    display: none !important;
  }
  
  /* Nav desktop'ta normal görünüm */
  .tnc-nav {
    justify-self: center;
    position: relative !important;
    position: static !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .tnc-actions {
    justify-self: end;
    gap: 8px;
  }
  
  /* Icon panelleri genişlikleri */
  .tnc-panel {
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(calc(100% + 40px)) !important;
    transform-origin: center right !important;
  }
  
  .tnc-panel.is-open {
    transform: translateY(-50%) translateX(0) !important;
  }
  
  .tnc-panel--lang {
    width: 520px;
    max-width: 640px;
  }
  
  .tnc-panel--music {
    width: 560px;
    max-width: 680px;
  }
  
  .tnc-panel--settings {
    width: 540px;
    max-width: 640px;
  }
}

/* MD: Menü kısalır, gap azaltılır, ikonlar korunur */
@media (min-width: 768px) and (max-width: 1023px) {
  .tnc-header__inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 12px;
    padding: 16px 20px !important; /* Üst ve alt boşluk eklendi */
    min-height: 70px;
    position: relative;
  }
  
  .tnc-logo-text {
    font-size: 16px;
  }
  
  .tnc-logo-slogan {
    font-size: 11px;
  }
  
  /* Menu toggle tablet'te gizli */
  .tnc-menu-toggle {
    display: none !important;
  }
  
  .tnc-nav {
    justify-self: center;
    position: relative !important;
    /* Tablet'te normal görünüm */
    position: static !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  .tnc-nav .menu {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row !important;
  }
  
  .tnc-nav .menu a {
    padding: 0 16px;
    font-size: 15px;
    height: 42px;
    width: auto !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .tnc-actions {
    justify-self: end;
    gap: 6px;
  }
  
  .tnc-iconbtn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  
  /* Icon panelleri MD genişlikleri - tablet için düzeltildi */
  .tnc-panel {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) translateX(calc(100% + 40px)) !important;
    transform-origin: center right !important;
    width: auto !important;
    max-width: calc(100vw - 40px) !important;
  }
  
  .tnc-panel.is-open {
    transform: translateY(-50%) translateX(0) !important;
  }
  
  .tnc-panel--lang {
    width: 420px !important;
    max-width: 520px !important;
  }
  
  .tnc-panel--music {
    width: 460px !important;
    max-width: 560px !important;
  }
  
  .tnc-panel--settings {
    width: 440px !important;
    max-width: 520px !important;
  }
}

/* SM: Menü overflow-x olmasın, burger menü aktif */
@media (min-width: 480px) and (max-width: 767px) {
  /* Header overflow kontrolü - menünün dışarı çıkması için */
  .tnc-header {
    overflow: visible !important;
  }
  
  .tnc-header__inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 10px;
    padding: 16px 16px !important; /* Üst ve alt boşluk eklendi */
    position: relative;
    overflow: visible !important; /* Nav menünün dışarı çıkması için */
    z-index: auto;
  }
  
  .tnc-logo-text {
    font-size: 15px;
  }
  
  .tnc-logo-slogan {
    font-size: 10px;
  }
  
  /* Menu toggle görünür ve doğru pozisyonda */
  .tnc-menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 1001;
    order: 2; /* Grid içinde sağa yerleştir */
  }
  
  /* Nav menüyü header'a göre absolute position - header__inner'dan çık */
  .tnc-nav {
    position: fixed !important; /* Fixed yapıyoruz ki header içinde takılı kalmasın */
    top: 70px !important; /* Header yüksekliği kadar aşağı */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important; /* Viewport genişliği */
    background: rgba(11, 15, 22, 0.98) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(142, 159, 189, 0.18);
    border-radius: 0;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-10px);
    transition: max-height 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                padding 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    /* Header grid'inden çık */
    grid-column: none !important;
    grid-row: none !important;
  }
  
  .tnc-nav.is-open {
    max-height: 600px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 16px 20px !important;
    transform: translateY(0) !important;
  }
  
  .tnc-nav .menu {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  
  .tnc-nav .menu a {
    width: 100% !important;
    padding: 12px 18px !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  .tnc-actions {
    gap: 4px;
    order: 3; /* Grid içinde en sağda */
  }
  
  .tnc-iconbtn {
    width: 40px;
    height: 40px;
  }
  
  /* Logo grid'de ilk sırada */
  .tnc-logo {
    order: 1;
  }
  
  /* Icon panelleri SM genişlikleri */
  .tnc-panel {
    width: 92%;
    max-width: 96%;
    left: 4%;
    right: 4%;
    top: auto;
    bottom: 80px;
    transform: translateY(0) scale(0.95);
  }
  
  .tnc-panel.is-open {
    transform: translateY(0) scale(1);
  }
}

/* XS: Küçük telefon */
@media (max-width: 479px) {
  /* Header overflow kontrolü - menünün dışarı çıkması için */
  .tnc-header {
    overflow: visible !important;
  }
  
  .tnc-header__inner {
    grid-template-columns: auto 1fr auto !important;
    gap: 8px;
    padding: 16px 12px !important; /* Üst ve alt boşluk eklendi */
    min-height: 64px;
    position: relative;
    overflow: visible !important; /* Nav menünün dışarı çıkması için */
    z-index: auto;
  }
  
  .tnc-logo-text {
    font-size: 14px;
  }
  
  .tnc-logo-slogan {
    font-size: 9px;
    display: none; /* Çok küçük ekranlarda gizle */
  }
  
  /* Menu toggle görünür ve doğru pozisyonda */
  .tnc-menu-toggle {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    position: relative;
    z-index: 1001;
    order: 2;
  }
  
  /* Nav menüyü header'a göre fixed position - header__inner'dan çık (XS için) */
  .tnc-nav {
    position: fixed !important; /* Fixed yapıyoruz ki header içinde takılı kalmasın */
    top: 64px !important; /* Header yüksekliği kadar aşağı (XS için 64px) */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important; /* Viewport genişliği */
    background: rgba(11, 15, 22, 0.98) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(142, 159, 189, 0.18);
    border-radius: 0;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(-10px);
    transition: max-height 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                visibility 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
                padding 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    /* Header grid'inden çık */
    grid-column: none !important;
    grid-row: none !important;
  }
  
  .tnc-nav.is-open {
    max-height: 600px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 16px 20px !important;
    transform: translateY(0) !important;
  }
  
  .tnc-nav .menu {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  
  .tnc-nav .menu a {
    font-size: 14px;
    padding: 10px 16px !important;
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }
  
  .tnc-actions {
    gap: 4px;
    order: 3;
  }
  
  .tnc-iconbtn {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
  
  /* Logo grid'de ilk sırada */
  .tnc-logo {
    order: 1;
  }
  
  /* Icon panelleri XS genişlikleri */
  .tnc-panel {
    width: 94%;
    max-width: 96%;
    left: 3%;
    right: 3%;
    bottom: 70px;
  }
}

/* Icon panelleri açılma pozisyonu - her ikonun tam altına, ekran kenarına yakınsa içeri doğru */
.tnc-panel {
  position: fixed;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1002;
}

/* Panel flip mekanizması - ekran kenarına yakınsa içeri doğru */
@media (max-width: 767px) {
  .tnc-panel {
    left: 4%;
    right: 4%;
    transform-origin: center bottom;
  }
}


/* Dokunmatik hedefler - en az 40×40px */
button, a, .tnc-iconbtn, .tnc-pill {
  min-width: 40px;
  min-height: 40px;
}

@media (max-width: 479px) {
  button, a, .tnc-iconbtn {
    min-width: 38px;
    min-height: 38px;
  }
}

/* Odak halkası - klavye odakta görünür */
:focus-visible {
  outline: 2px solid rgba(122, 162, 255, 0.7);
  outline-offset: 2px;
}

/* prefers-reduced-motion => animasyon min */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* CLS önleme - header yüksekliği sabit */
.tnc-header,
.tnc-header__inner {
  will-change: auto;
}

/* Z-index hierarchy - tutarlılık kontrolü */
.tnc-header {
  z-index: 1000;
}

.tnc-menu-toggle {
  z-index: 1001;
}

.tnc-panel {
  z-index: 1002; /* Header'ın üstünde */
}

#tnc-sphere-container {
  z-index: -1; /* Arka planda */
}

/* ==========================================================================
   3. SPHERE CANVAS - Performance Optimization (Homepage Only)
   ========================================================================== */

/* Canvas position: fixed; z-index: -1; pointer-events: none */
#tnc-sphere-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#tnc-sphere-container canvas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
}

/* MD/SM/XS: Render maliyetini düşür */
@media (max-width: 1023px) {
  #tnc-sphere-container {
    display: block !important;
    visibility: visible !important;
  }
  
  #tnc-sphere-container canvas {
    /* devicePixelRatio üst sınırı 2 */
    image-rendering: -webkit-optimize-contrast;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Safe area: header ve ikon panellerinin altına min 80-100px içerik boşluğu */
/* Fixed header için tüm sayfalarda içerik padding'i */
body.tnc-public #main {
  position: relative;
  z-index: 1;
  padding-top: 100px; /* Header için safe area */
}

body.tnc-public.home #main,
body.tnc-public.front-page #main {
  padding-top: 100px; /* Ana sayfa için (sphere için ekstra alan) */
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet için safe area */
  body.tnc-public #main {
    padding-top: 90px;
  }
  
  body.tnc-public.home #main,
  body.tnc-public.front-page #main {
    padding-top: 90px;
  }
  
  /* Küre canvas tablet'te görünür olmalı */
  #tnc-sphere-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: -1 !important;
  }
}

@media (max-width: 767px) {
  body.tnc-public #main {
    padding-top: 80px;
  }
  
  body.tnc-public.home #main,
  body.tnc-public.front-page #main {
    padding-top: 80px;
  }
}

/* Landscape mobilde canvas yeniden ölçeklensin */
@media (max-width: 767px) and (orientation: landscape) {
  #tnc-sphere-container {
    transform: scale(0.95);
  }
}

/* prefers-reduced-motion => küre animasyonu dur */
@media (prefers-reduced-motion: reduce) {
  #tnc-sphere-container {
    display: none;
  }
  
  body.tnc-public.home #main,
  body.tnc-public.front-page #main {
    padding-top: 20px;
  }
}

/* ==========================================================================
   4. CONTENT GRID - Responsive Layout
   ========================================================================== */

/* Container genişlikleri */
.container,
.tnc-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  /* Yatay scroll önleme */
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .container,
  .tnc-container {
    padding: 0 24px;
  }
}

@media (min-width: 1440px) {
  .container,
  .tnc-container {
    max-width: 1440px;
    padding: 0 32px;
  }
}

/* İçerik ızgarası - XS/SM: Tek kolon */
.entry-content,
.site-main {
  width: 100%;
  max-width: 100%;
}

/* WordPress columns/grid - XS/SM tek kolon */
@media (max-width: 767px) {
  .wp-block-columns,
  .wp-block-columns.alignwide {
    flex-direction: column;
    gap: 16px;
  }
  
  .wp-block-column {
    width: 100% !important;
    flex-basis: 100% !important;
  }
}

/* MD: İki kolon (ör. blog listesi) */
@media (min-width: 768px) and (max-width: 1023px) {
  .wp-block-columns:not(.alignfull) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  /* Görseller 16:9 kırpılsın */
  .wp-block-image img,
  .entry-content img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    height: auto;
  }
  
  /* Tablet için container padding */
  .container,
  .tnc-container {
    padding: 0 20px;
    max-width: 100%;
  }
  
  /* Entry content tablet görünümü */
  .entry-content {
    font-size: clamp(15px, 1.5vw, 16px);
    line-height: 1.6;
  }
  
  .entry-title {
    font-size: clamp(26px, 2.6vw, 32px);
    margin-bottom: 16px;
  }
}

/* LG/XL: Üç kolon */
@media (min-width: 1024px) {
  .wp-block-columns:not(.alignfull) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .wp-block-column {
    min-width: 320px; /* Kart başına min genişlik */
  }
}

/* Görsel/başlık taşması engelle */
.wp-block-group,
.wp-block-column {
  min-height: 120px; /* Başlık kutuları için min-height */
  overflow: hidden;
}

h1, h2, h3, h4, .entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Görseller lazy loading */
img {
  loading: lazy;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   5. FOOTER - Responsive Layout
   ========================================================================== */

/* LG/XL: Üç bölge (telif – menü – sosyal) */
@media (min-width: 1024px) {
  .tnc-footer__row--top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding-top: 24px !important; /* Üst boşluk eklendi */
  }
  
  .tnc-footer__logo {
    justify-self: start;
  }
  
  .tnc-footer__menu {
    justify-self: center;
  }
  
  .tnc-footer__actions {
    justify-self: end;
  }
}

/* MD: İki satır */
@media (min-width: 768px) and (max-width: 1023px) {
  .tnc-footer {
    padding: 20px 0;
  }
  
  .tnc-footer__inner {
    padding: 0 20px;
  }
  
  .tnc-footer__row--top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    row-gap: 16px;
    align-items: center;
    padding-top: 24px !important; /* Üst boşluk eklendi (tablet) */
  }
  
  .tnc-footer__logo {
    grid-column: 1;
    align-items: flex-start;
  }
  
  .tnc-footer__brand {
    font-size: 16px;
  }
  
  .tnc-footer__brand-slogan {
    font-size: 11px;
  }
  
  .tnc-footer__menu {
    grid-column: 2;
    justify-self: end;
  }
  
  .tnc-footer__menu .menu {
    gap: 14px;
    justify-content: flex-end;
  }
  
  .tnc-footer__menu .menu a {
    font-size: 14px;
  }
  
  .tnc-footer__actions {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 8px;
    flex-direction: row;
    gap: 12px;
  }
  
  .tnc-footer__social .tnc-social {
    width: 42px;
    height: 42px;
  }
}

/* SM/XS: Tek kolon, ortalı */
@media (max-width: 767px) {
  .tnc-footer__row--top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding-top: 24px !important; /* Footer'ın üstünde boşluk */
  }
  
  .tnc-footer__logo {
    align-items: center;
    text-align: center;
  }
  
  .tnc-footer__menu {
    width: 100%;
  }
  
  .tnc-footer__menu .menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .tnc-footer__actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}

/* Sosyal ikonlar 40-44px daire */
.tnc-footer__social .tnc-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .tnc-footer__social .tnc-social {
    width: 40px;
    height: 40px;
    gap: 8px;
  }
}

/* Telif metni 13-14px, opaklık %70 */
.tnc-footer__copyright {
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
}

@media (max-width: 767px) {
  .tnc-footer__copyright {
    font-size: 13px;
  }
}

/* CLS yok - footer bar yüksekliği sabit */
.tnc-footer {
  min-height: 120px;
}

@media (max-width: 767px) {
  .tnc-footer {
    min-height: 200px;
  }
}

/* ==========================================================================
   6. PERFORMANCE & ACCESSIBILITY
   ========================================================================== */

/* Görseller lazy loading */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Renk kontrastı WCAG AA (en az 4.5:1) - mevcut renkler uygun, burada kontrol edilmeli */
.tnc-nav .menu a,
.tnc-footer__menu .menu a {
  color: #E6EDF3; /* Kontrast: 12.5:1 (WCAG AAA) */
}

.muted {
  color: rgba(230, 237, 243, 0.6); /* Kontrast: 4.8:1 (WCAG AA) */
}

/* :focus-visible destekle */
:focus-visible {
  outline: 2px solid rgba(122, 162, 255, 0.7);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Klavye navigasyonu tam */
.tnc-nav .menu a:focus-visible,
.tnc-iconbtn:focus-visible,
.tnc-footer__menu .menu a:focus-visible,
.tnc-footer__social .tnc-social:focus-visible {
  outline: 2px solid rgba(122, 162, 255, 0.7);
  outline-offset: 2px;
}

/* Sayfa genelinde ekranı yana kaydırma oluşmasın */
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.container,
.tnc-container,
.site-main,
.entry-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* Dokunmatik jestler - panel iç scroll'larda momentum */
.tnc-panel,
.tnc-music-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* İkon panelleri outside click / ESC ile kapanır (JS tarafında) */
.tnc-panel {
  position: fixed;
}

/* ==========================================================================
   7. UTILITY CLASSES - Responsive Helpers
   ========================================================================== */

/* Gizle/göster utility'leri */
.hide-xs {
  display: none;
}

@media (min-width: 480px) {
  .hide-xs {
    display: block;
  }
  
  .hide-sm {
    display: none;
  }
}

@media (min-width: 768px) {
  .hide-sm {
    display: block;
  }
  
  .hide-md {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hide-md {
    display: block;
  }
}

/* Container queries fallback (eğer destekleniyorsa) */
@supports (container-type: inline-size) {
  .tnc-container-query {
    container-type: inline-size;
  }
}

/* ==========================================================================
   8. MOBILE SPECIFIC - Touch & Scroll
   ========================================================================== */

/* Mobilde momentum scroll */
@media (max-width: 767px) {
  body {
    -webkit-overflow-scrolling: touch;
    /* Panel açıldığında body scroll lock */
    overflow-x: hidden;
  }
  
  /* Panel açıldığında body scroll'u kilitle (JS tarafından eklenen sınıf) */
  body.tnc-panel-open {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* iOS Safari için safe area */
    padding-right: env(safe-area-inset-right, 0);
  }
  
  /* Touch-action optimizasyonları */
  .tnc-panel {
    touch-action: pan-y pinch-zoom;
  }
  
  .tnc-music-list {
    touch-action: pan-y;
  }
  
  .tnc-panel,
  .tnc-music-list,
  .entry-content {
    -webkit-overflow-scrolling: touch;
  }
  
  /* iOS input zoom önleme (16px minimum) */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
  
  /* Touch target boyutları - minimum 44x44px (WCAG) */
  button,
  .tnc-iconbtn,
  .tnc-menu-toggle,
  .tnc-pill,
  a[role="button"],
  [tabindex="0"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Küçük ikon butonları için minimum boyut */
  .tnc-iconbtn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
  
  /* Menü toggle butonu */
  .tnc-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
  
  /* Panel içindeki butonlar */
  .tnc-panel button,
  .tnc-panel .tnc-pill {
    min-height: 44px;
    padding: 10px 16px;
  }
}

/* Landscape mobilde düzenlemeler */
@media (max-width: 767px) and (orientation: landscape) {
  .tnc-header {
    min-height: 60px;
  }
  
  .tnc-header__inner {
    min-height: 60px;
  }
  
  .tnc-footer {
    min-height: 100px;
  }
  
  /* Landscape'de panel max-height azalt */
  .tnc-panel {
    max-height: calc(100vh - 100px) !important;
  }
  
  /* Landscape'de küre canvas scale */
  #tnc-sphere-container {
    transform: scale(0.9);
  }
}

/* ==========================================================================
   9. PRINT STYLES
   ========================================================================== */

@media print {
  .tnc-header,
  .tnc-footer,
  .tnc-panel,
  .tnc-menu-toggle,
  .tnc-actions {
    display: none !important;
  }
  
  body.tnc-public.home #main,
  body.tnc-public.front-page #main {
    padding-top: 0;
  }
  
  #tnc-sphere-container {
    display: none;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

