/* TemaVadisi Modern Katman v1 (10.5) — temanın renk ve düzenine dokunmaz, yalnızca bitişi modernleştirir */
:root {
  --tvm-r: 10px;
  --tvm-r-sm: 8px;
  --tvm-ease: cubic-bezier(.2, .7, .2, 1);
  --tvm-ring: 0 0 0 3px rgba(13, 179, 230, .20);
  --tvm-shadow-h: 0 10px 24px rgba(15, 23, 42, .16);
}

/* Yazı ve kaydırma */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(13, 179, 230, .22); }

/* Yumuşak geçişler */
a, .btn, .button, input, select, textarea, .wpcf7-submit {
  transition: color .2s var(--tvm-ease), background-color .2s var(--tvm-ease), border-color .2s var(--tvm-ease),
              box-shadow .25s var(--tvm-ease), transform .25s var(--tvm-ease), opacity .2s var(--tvm-ease), filter .3s var(--tvm-ease);
}

/* Öne çıkan görseller: yuvarlak köşe + hover canlılık */
img.wp-post-image { border-radius: var(--tvm-r-sm); transition: filter .35s var(--tvm-ease); }
a:hover > img.wp-post-image, a:focus-visible > img.wp-post-image { filter: brightness(1.06) saturate(1.08); }
.widget img, .post-thumbnail img { border-radius: var(--tvm-r-sm); }
/* Hover'da görsel kutusu içinde hafif yakınlaşma (kart hissi) */
a:has(> img.wp-post-image) { overflow: hidden; border-radius: var(--tvm-r-sm); }
a:has(> img.wp-post-image) > img.wp-post-image { transition: transform .6s var(--tvm-ease), filter .35s var(--tvm-ease); }
a:hover > img.wp-post-image { transform: scale(1.045); }

/* Görsellerin yumuşak belirmesi (JS ekler, slider görsellerine dokunmaz) */
img.tvm-yukleniyor { opacity: 0; }
img.tvm-yuklendi { opacity: 1; transition: opacity .5s var(--tvm-ease), transform .6s var(--tvm-ease), filter .35s var(--tvm-ease); }

/* Yazı detayında okuma ilerleme çubuğu */
#tvm-ilerleme { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 999999; pointer-events: none;
  background: linear-gradient(90deg, #0db3e6, #7eb444); box-shadow: 0 0 8px rgba(13, 179, 230, .45); transition: width .1s linear; }
body.admin-bar #tvm-ilerleme { top: 32px; }

/* Butonlar */
.btn, .button, input[type="submit"], input[type="button"], .wpcf7-submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  border-radius: var(--tvm-r-sm);
}
.btn:hover, .button:hover, input[type="submit"]:hover, input[type="button"]:hover, .wpcf7-submit:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--tvm-shadow-h);
}
.btn:active, .button:active, input[type="submit"]:active, .wpcf7-submit:active { transform: translateY(0); box-shadow: none; }

/* Form alanları */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"],
input[type="number"], input[type="url"], select, textarea, .form-control {
  border-radius: var(--tvm-r-sm);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="tel"]:focus,
input[type="password"]:focus, input[type="number"]:focus, input[type="url"]:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none;
  box-shadow: var(--tvm-ring);
  border-color: rgba(13, 179, 230, .65);
}
/* Bitişik arama kutusu + buton: iç köşeler düz kalsın (birleşik görünüm korunur) */
input:has(+ button), input:has(+ input[type="submit"]), input:has(+ .btn), select:has(+ input), select:has(+ select) {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}
input + button, input + input[type="submit"], input + .btn, select + input, select + select {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}

/* Klavye ile gezinmede belirgin odak */
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid rgba(13, 179, 230, .7); outline-offset: 2px; }

/* İnce, modern kaydırma çubuğu */
html { scrollbar-width: thin; scrollbar-color: rgba(100, 116, 139, .55) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, .45); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, .7); background-clip: content-box; }

/* Hareket azaltma tercihine saygı */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
