/* TurkGuide global reset */
* {
  box-sizing: border-box;
}

/* Root chain: avoid fixed 100% height + 100vh (iOS URL bar / safe-area layout shift) */
html {
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-width: 320px;
  background: #07080c;
  color: rgba(255, 255, 255, 0.92);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: block; /* ❗ flex ASLA olmayacak */
}

#root {
  height: auto;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* Skeleton loading pulse (Faz 3) */
@keyframes tg-skeleton-pulse {
  0% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    opacity: 0.55;
  }
}

.tg-skeleton {
  animation: tg-skeleton-pulse 1.2s ease-in-out infinite;
}

/* Category grid — premium hover (theme from data-tg-theme on .tg-category-grid-wrap) */
.tg-category-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.tg-category-grid-wrap[data-tg-theme="light"] .tg-category-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 52px rgba(15, 23, 42, 0.065),
    0 0 0 1px rgba(47, 102, 255, 0.09);
  border-color: rgba(15, 23, 42, 0.09) !important;
}
.tg-category-grid-wrap[data-tg-theme="dark"] .tg-category-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1) !important;
}
.tg-category-card:focus-visible {
  outline: 2px solid rgba(79, 124, 255, 0.85);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .tg-category-card {
    transition: none;
  }
  .tg-category-grid-wrap .tg-category-card:hover {
    transform: none;
  }
}
