/* Teknikbox.com — ortak base CSS (tasarım dışa aktarımından birebir) */
@layer base {
  html, body { margin: 0; padding: 0; }
  body { overscroll-behavior: none; }
  main > :first-child { margin-top: 0 !important; }
  main > :last-child { margin-bottom: 0 !important; }
}
::-webkit-scrollbar { display: none; }

/* Tailwind display utility'leri [hidden] özniteliğini ezer; sekmelerin
   yalnızca birinin görünmesini garanti altına alır */
[hidden] { display: none !important; }

/* Hamburger menü görünür olduğu aralıkta gövde kaydırmasını kilitler */
body.tbx-menu-open { overflow: hidden; }

/* Odaklanılabilir kontroller için klavye erişilebilirliği */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0057c2;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ---- Tipografi ölçeği (SEO standardı) ---------------------------------
   Başlık/gövde boyutları tek yerden yönetilir; sayfalarda rastgele
   text-[..] değerleri yerine bu sınıflar kullanılır.
   H1: mobil 26–30 / masaüstü 32–40 · H2: 21–24 / 24–30
   H3: 18–20 / 20–22 · H4: 17 / 18 · gövde 15–16 · yardımcı 12–14 */
.tbx-h1 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tbx-h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  line-height: 29px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.tbx-h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}
.tbx-h4 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
}
.tbx-body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 23px;
  font-weight: 400;
}
.tbx-muted {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 19px;
  font-weight: 400;
}
@media (min-width: 640px) {
  .tbx-h1 { font-size: 32px; line-height: 40px; }
  .tbx-h2 { font-size: 24px; line-height: 32px; }
  .tbx-h3 { font-size: 20px; line-height: 28px; }
  .tbx-h4 { font-size: 18px; line-height: 26px; }
  .tbx-body { font-size: 16px; line-height: 25px; }
  .tbx-muted { font-size: 14px; line-height: 20px; }
}
@media (min-width: 1024px) {
  .tbx-h1 { font-size: 38px; line-height: 46px; }
  .tbx-h2 { font-size: 27px; line-height: 36px; }
  .tbx-h3 { font-size: 22px; line-height: 30px; }
}

/* ---- Modern katman ---- */
.tbx-gradient-text {
  background-image: linear-gradient(115deg, #0057c2, #006ef2 60%, #0091ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Kaydırma ile yumuşak görünme (scroll reveal) */
.tbx-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.tbx-reveal.tbx-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero yüzen kartlarda hafif süzülme */
  @keyframes tbx-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  .tbx-float { animation: tbx-float 6s ease-in-out infinite; }
  .tbx-float-delay { animation-delay: 2.5s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tbx-reveal { opacity: 1; transform: none; transition: none; }
  .tbx-float, .tbx-float-delay { animation: none; }
}
