/* =========================================================
   SahaPro - Ortak Stil Dosyası
   ========================================================= */

html { scroll-behavior: smooth; }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.35); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 197, 94, 0.5); }

.text-gradient {
  background: linear-gradient(90deg, #86efac 0%, #22c55e 45%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #fff; }

.bg-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
}

.cell-min { min-height: 60px; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.pulse-dot { animation: pulse-dot 1.6s ease-in-out infinite; }

/* Sayfa giris animasyonu */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fade-in-up 0.5s ease both; }

/* Sahte video oynatici */
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 20%, #134e2e 0%, #0f172a 55%, #020617 100%);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.video-player .scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.video-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
}
.video-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.15s linear;
}
.video-progress-track:hover .video-progress-fill { filter: brightness(1.15); }

/* SweetAlert2 ozellestirmeleri */
.swal2-popup { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif !important; border-radius: 1.5rem !important; }
.swal2-title { font-weight: 800 !important; }
.swal2-confirm { border-radius: 0.75rem !important; box-shadow: none !important; }
.swal2-cancel { border-radius: 0.75rem !important; box-shadow: none !important; }
.swal2-input, .swal2-select, .swal2-textarea {
  border-radius: 0.75rem !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
.swal2-input:focus, .swal2-select:focus, .swal2-textarea:focus {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

/* Basit toggle switch (kullanicilar / ayarlar sayfalari icin) */
.toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.25s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.toggle-switch.is-on { background: #22c55e; }
.toggle-switch.is-on::after { transform: translateX(18px); }

/* Mobil menu */
#mobileMenu { transition: max-height 0.3s ease, opacity 0.3s ease; }
