/* Mobil: yatay taşma, metin ölçüsü, ana gövde */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
main {
  min-width: 0;
}

/* Mobil header çekmece */
html.mentidea-nav-open {
  overflow: hidden;
}
html.mentidea-nav-open body {
  overflow: hidden;
}

.mentidea-nav-drawer {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.mentidea-nav-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.mentidea-nav-drawer .mentidea-nav-backdrop {
  opacity: 0;
  transition: opacity 0.22s ease;
}
.mentidea-nav-drawer.is-open .mentidea-nav-backdrop {
  opacity: 1;
}
.mentidea-nav-drawer .mentidea-nav-panel {
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
.mentidea-nav-drawer.is-open .mentidea-nav-panel {
  transform: translateX(0);
}

#mentidea-nav-toggle .mentidea-nav-icon-close {
  display: none;
}
#mentidea-nav-toggle[aria-expanded='true'] .mentidea-nav-icon-open {
  display: none;
}
#mentidea-nav-toggle[aria-expanded='true'] .mentidea-nav-icon-close {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .mentidea-nav-drawer,
  .mentidea-nav-drawer .mentidea-nav-backdrop,
  .mentidea-nav-drawer .mentidea-nav-panel {
    transition-duration: 0.01ms !important;
  }
}
.touch-scroll {
  -webkit-overflow-scrolling: touch;
}

/* Scrollable rails — scrollbar gizli */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-gradient {
  background: radial-gradient(1200px 600px at 70% 20%, rgba(108, 92, 231, 0.18), transparent 60%),
    radial-gradient(800px 400px at 20% 80%, rgba(108, 92, 231, 0.12), transparent 55%);
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  border-color: rgba(108, 92, 231, 0.35);
}
@media (hover: none) {
  .card-hover:hover {
    transform: none;
  }
}

/* Popüler alanlar: tek satır, eşit genişlik, kompakt ölçüler */
.home-categories-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: clamp(0.2rem, 1.1vw, 0.65rem);
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .home-categories-row {
    margin-top: 2rem;
  }
}

.home-categories-row__item {
  flex: 1 1 0%;
  min-width: 0;
}

.home-categories-row .home-cat-icon {
  width: clamp(1.75rem, 5.2vw, 2.75rem);
  height: clamp(1.75rem, 5.2vw, 2.75rem);
}

.home-categories-row .home-cat-icon svg {
  width: clamp(0.875rem, 2.6vw, 1.375rem) !important;
  height: clamp(0.875rem, 2.6vw, 1.375rem) !important;
}

.home-categories-row .home-cat-name {
  font-size: clamp(0.5625rem, 1.65vw, 0.8125rem);
  word-break: break-word;
}

.home-categories-row .home-cat-meta {
  font-size: clamp(0.5rem, 1.35vw, 0.6875rem);
  line-height: 1.2;
  white-space: nowrap;
}

/* Önerilen uzmanlar / Trend konular: yatay kaydırma (scrollbar yok; butonlarla adım) */
.home-scroll-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.home-scroll-stage {
  width: 100%;
  min-width: 0;
}

.home-scroll-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.875rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-scroll-track::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

@media (min-width: 640px) {
  .home-scroll-track {
    gap: 1.125rem;
  }
}

.home-scroll-item {
  flex: 0 0 auto;
}

/* Kenar solukluğu (derinlik hissi) */
.home-scroll-shell::before,
.home-scroll-shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0.35rem;
  width: 3.5rem;
  z-index: 5;
  pointer-events: none;
}
.home-scroll-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11, 11, 11, 0.94) 0%, transparent 100%);
}
.home-scroll-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11, 11, 11, 0.94) 0%, transparent 100%);
}

@media (max-width: 639px) {
  .home-scroll-shell::before,
  .home-scroll-shell::after {
    width: 2rem;
  }
}

/* Başlık satırı + cam efektli kaydır kontrolleri */
.home-scroll-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}
.home-scroll-head__title {
  min-width: 0;
}
.home-scroll-pillbar {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.2) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(108, 92, 231, 0.08) inset, 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  flex-shrink: 0;
}
.home-scroll-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.22s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease, box-shadow 0.22s ease;
}
.home-scroll-pill:hover:not(:disabled) {
  background: radial-gradient(circle at 30% 25%, rgba(108, 92, 231, 0.45) 0%, rgba(108, 92, 231, 0.12) 55%, transparent 70%);
  color: #fff;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.25);
}
.home-scroll-pill:active:not(:disabled) {
  transform: scale(0.92);
}
.home-scroll-pill:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  box-shadow: none;
}
.home-scroll-pillbar__divider {
  width: 1px;
  height: 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  flex-shrink: 0;
  margin: 0 0.1rem;
}
.home-scroll-pill svg {
  width: 1.2rem;
  height: 1.2rem;
}
