/* Page-only modern UI overrides for `ana-sayfa.html` */

body.page-home {
  background: var(--bg);
  color: var(--text);
}

.page-home :is(a, button, [role="button"], input, textarea, select):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* --- Nav --- */
.page-home nav {
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.page-home nav.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-home nav .logo img {
  width: 44px;
  height: 44px;
  max-width: none;
  object-fit: cover;
}

.page-home nav .links a {
  border: 0;
  padding: 8px 10px;
  position: relative;
}

.page-home nav .links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
  opacity: 0.35;
}

.page-home nav .links a:hover::after {
  transform: scaleX(1);
}

.page-home .mobile-menu-icon {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  .page-home nav .links {
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    animation: none;
    transition: max-height 240ms ease, opacity 200ms ease, transform 200ms ease;
  }

  .page-home nav .links.show {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero --- */
.page-home header.hero {
  text-align: center;
  padding: 6.5rem 1rem 3rem;
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(249, 65, 68, 0.25), transparent 60%),
    radial-gradient(800px 500px at 80% 30%, rgba(65, 181, 249, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.35));
}

.page-home header.hero::before,
.page-home header.hero::after {
  display: none;
}

.page-home .hero .title {
  letter-spacing: 0.06em;
}

.page-home .hero p {
  max-width: 46rem;
  margin: 0.75rem auto 0;
  color: var(--text);
  opacity: 0.9;
}

.page-home .hero .buttons {
  flex-wrap: wrap;
}

.page-home .hero .buttons a {
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.page-home .hero .buttons a:hover {
  transform: translateY(-1px);
}

.page-home .hero .bottom a {
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

/* --- Video modal (overlay) --- */
.page-home .video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.page-home .video-modal.is-open {
  display: flex;
}

.page-home .video-modal__dialog {
  position: relative;
  width: min(960px, 92vw);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.page-home .video-modal iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  max-width: none;
}

.page-home .video-modal .close {
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  box-shadow: none;
}

body.page-home.modal-open {
  overflow: hidden;
}

/* --- Sections --- */
.page-home section .title {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
}

.page-home section .title::before {
  width: 56px;
}

.page-home .why-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.page-home .why {
  background: linear-gradient(180deg, var(--accent), var(--accent-700));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 45px rgba(249, 65, 68, 0.22);
}

.page-home .banner-row {
  margin-top: 1.25rem;
}

.page-home .banner {
  background: rgba(249, 65, 68, 0.92);
  box-shadow: 0 14px 40px rgba(249, 65, 68, 0.22);
}

.page-home .games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 0;
  margin-top: 0.75rem;
}

.page-home .card {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.page-home .card img {
  aspect-ratio: 16 / 9;
  height: auto;
}

.page-home .card a {
  border-radius: 999px;
}

.page-home .tanitim {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
}

/* --- Steps list --- */
.page-home .item {
  font-size: 1.05rem;
  line-height: 1.4;
  gap: 12px;
  padding-left: 42px;
}

.page-home .steps {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.page-home .number {
  left: 0;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .page-home * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
