/* ETS2MODU.SITE — oyun mod sitesi tamamlayıcı stiller */

:root {
  --signal: #e6392e;
  --ember: #f4a261;
  --asphalt-950: #05070b;
  --asphalt-900: #0a0d14;
  --asphalt-800: #11161f;
  --glass: rgba(17, 22, 31, 0.72);
  --line: rgba(255, 255, 255, 0.08);
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 57, 46, 0.55) transparent;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Atmosfer katmanları */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(230, 57, 46, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 10%, rgba(244, 162, 97, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 60%, rgba(230, 57, 46, 0.06), transparent 45%),
    linear-gradient(180deg, #05070b 0%, #0a0d14 45%, #0c1018 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lazy-img {
  opacity: 0.45;
  transition: opacity 0.45s ease, transform 0.55s ease;
}
.lazy-img.is-loaded {
  opacity: 1;
}

/* Nav */
.nav-link {
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
}

#siteHeader .max-w-7xl {
  flex-wrap: nowrap;
}

/* Section başlıkları */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Orbitron, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}
.section-kicker::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signal), var(--ember));
}

/* Mod kartı — oyun hub stili */
.mod-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(26, 32, 48, 0.55) 0%, rgba(17, 22, 31, 0.9) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}
.mod-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 46, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(230, 57, 46, 0.15), 0 0 36px rgba(230, 57, 46, 0.12);
}
.mod-card__media {
  position: relative;
  overflow: hidden;
}
.mod-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 11, 0.85) 100%);
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mod-card:hover .mod-card__media::after {
  opacity: 1;
}
.mod-card__cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: rgba(5, 7, 11, 0.35);
  backdrop-filter: blur(2px);
}
.mod-card:hover .mod-card__cta {
  opacity: 1;
  transform: scale(1);
}
.mod-card__badge {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: Orbitron, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 7, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.mod-card__stats {
  position: absolute;
  z-index: 3;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

/* Cam paneller */
.glass-panel {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

/* Hero scan-line hafif hareket */
@keyframes heroScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(230, 57, 46, 0.06), transparent);
  animation: heroScan 8s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-y {
  animation: floatY 5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.text-shimmer {
  background: linear-gradient(90deg, #fff 0%, var(--ember) 40%, #fff 60%, var(--signal) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
.breadcrumb a {
  color: #94a3b8;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #fff;
}
.breadcrumb .sep {
  color: #475569;
  margin: 0 0.15rem;
}

/* İçerik gövdesi */
.content-body {
  line-height: 1.8;
  color: #cbd5e1;
}
.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: Orbitron, sans-serif;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.04em;
}
.content-body p { margin-bottom: 1rem; }
.content-body a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-body a:hover { color: #ffc089; }
.content-body ul,
.content-body ol { margin: 0.75rem 0 1rem 1.25rem; }
.content-body img {
  max-width: 100%;
  border-radius: 0.85rem;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.content-body code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

/* Sayfalama */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(17, 22, 31, 0.7);
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.pagination a:hover {
  border-color: rgba(230, 57, 46, 0.45);
  color: #fff;
  background: rgba(230, 57, 46, 0.12);
}
.pagination .active,
.pagination [aria-current="page"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--signal), #b91c1c);
  color: #fff;
  box-shadow: 0 8px 24px rgba(230, 57, 46, 0.3);
}

.ad-slot { overflow: hidden; max-width: 100%; }
.ad-slot img { max-width: 100%; height: auto; }

#mobileMenu:not(.hidden) {
  display: block;
}
body.menu-open {
  overflow: hidden;
}

/* Canlı arama önerileri */
.search-box {
  z-index: 40;
}
.search-suggest {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  min-width: 18rem;
  max-height: 22rem;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  z-index: 60;
}
.search-suggest--mobile {
  min-width: 100%;
}
.search-suggest--page {
  min-width: 100%;
}
.search-suggest__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}
.search-suggest__item:last-child {
  border-bottom: 0;
}
.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: rgba(230, 57, 46, 0.12);
}
.search-suggest__thumb {
  width: 3.25rem;
  height: 2.1rem;
  object-fit: cover;
  border-radius: 0.45rem;
  flex-shrink: 0;
  background: #11161f;
}
.search-suggest__meta {
  min-width: 0;
  flex: 1;
}
.search-suggest__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #94a3b8;
}
.search-suggest__empty,
.search-suggest__more {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
.search-suggest__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.15rem 1rem;
  text-align: center;
}
.search-suggest__empty-icon {
  font-size: 1.25rem;
  color: #e6392e;
  margin-bottom: 0.15rem;
}
.search-suggest__empty strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.search-suggest__empty span {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.4;
}
.search-suggest__more {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4a261;
  text-decoration: none;
  font-weight: 600;
}
.search-suggest__more:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.search-suggest mark {
  background: transparent;
  color: #f4a261;
  font-weight: 700;
}

.rules-box {
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 57, 46, 0.5) transparent;
}
.rules-box::-webkit-scrollbar {
  width: 6px;
}
.rules-box::-webkit-scrollbar-thumb {
  background: rgba(230, 57, 46, 0.45);
  border-radius: 999px;
}

/* Bildirim paneli */
.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  width: min(22rem, calc(100vw - 1.5rem));
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 20, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  z-index: 70;
}

/* Header scroll state */
.site-header.is-scrolled {
  border-bottom-color: rgba(230, 57, 46, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mod-card,
  .hero-scanline,
  .float-y,
  .text-shimmer {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
