/* ---- GENEL STİL ---- */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #fff;
  overflow-x: hidden;
  background: radial-gradient(circle at 20% 20%, #0a1931, #000);
}

/* ---- YILDIZ ARKA PLAN ---- */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  opacity: 0.4;
  animation: twinkle 10s infinite linear;
  z-index: -1;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ---- BAŞLIK ---- */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, rgba(30,30,60,0.9), transparent);
}

header h1 {
  font-size: 2.5rem;
  color: #9ecbff;
  text-shadow: 0 0 10px #3b5bdb;
}

header p {
  color: #b3cfff;
  margin-top: 0.5rem;
}

/* ---- ARAMA KUTUSU (İKONLU) ---- */
.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 8px;
}

.search-icon {
  font-size: 1.2rem;
  color: #b3cfff;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
  position: relative;
  top: 1px;
}

.search-box input {
  width: 320px;
  padding: 10px 15px 10px 18px;
  border-radius: 25px;
  border: none;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
  backdrop-filter: blur(10px);
  outline: none;
  transition: 0.3s;
}

.search-box input::placeholder {
  color: #cfe0ff;
}

.search-box input:focus {
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.8);
}


/* ---- GALERİ ---- */
.gallery-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 3rem 0;
  position: relative; /* Butonların düzgün hizalanması için */
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 80%;
}

/* ---- KARTLAR ---- */
.card {
  flex: 0 0 250px;
  background: rgba(255,255,255,0.1);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(59,91,219,0.3);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: 0.3s;
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card:hover {
  transform: scale(1.07);
  box-shadow: 0 0 35px rgba(59,91,219,0.7);
}

.card h2 {
  margin: 10px 0 5px;
  color: #9ecbff;
}

.card p {
  font-size: 0.9rem;
  color: #cfe0ff;
  padding-bottom: 1rem;
}

/* ---- BUTONLAR ---- */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, #8b5cf6, #6d28d9);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
  transition: all 0.3s ease;
  z-index: 5;
  animation: pulse-ring 3s infinite ease-out; /* 💫 ışık halkası animasyonu */
}

/* ---- IŞIK HALKASI ANİMASYONU ---- */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* SVG ikonları parlat */
.nav-btn svg {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover efekti */
.nav-btn:hover {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 45px rgba(167, 139, 250, 1);
}
.nav-btn:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255,255,255,1));
}

/* Konumlar */
#prev { left: 3.5%; }
#next { right: 3.5%; }

/* Mobil görünüm */
@media (max-width: 768px) {
  #prev { left: 2%; }
  #next { right: 2%; }
  .nav-btn {
    width: 55px;
    height: 55px;
  }
}

/* ---- SCROLL GİZLE ---- */
.gallery::-webkit-scrollbar { display: none; }

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(0deg, rgba(30,30,60,0.9), transparent);
  color: #b3cfff;
  font-size: 0.9rem;
}

/* ---- MENÜ KARE SİMGESİ ---- */
.menu-icon {
  position: absolute;
  top: 25px;
  right: 30px;
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 5px;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.3s ease;
}

.dot {
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #8b5cf6, #6d28d9);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
  transition: all 0.3s ease;
}

/* Hover efekti */
.menu-icon:hover {
  transform: scale(1.1);
}
.menu-icon:hover .dot {
  box-shadow: 0 0 15px rgba(167, 139, 250, 1);
}

/* ---- YAN MENÜ PANELİ ---- */
.side-menu {
  position: fixed;
  top: 0;
  right: -260px; /* gizli */
  width: 250px;
  height: 100%;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(10px);
  transition: right 0.4s ease;
  z-index: 15;
  padding: 2rem 1rem;
  color: #cfe0ff;
  box-shadow: none; /* 💜 Dikey mor çizgi kalktı */
  border: none; /* 💜 Ek güvenlik için */
}

.side-menu.active {
  right: 0; /* açıldığında görünsün */
}

/* Menü başlığı */
.side-menu h3 {
  text-align: center;
  color: #9ecbff;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px #6d28d9;
}

/* Menü listesi */
.side-menu ul {
  list-style: none;
  padding: 0;
}

.side-menu li {
  padding: 12px;
  font-size: 1rem;
  color: #b3cfff;
  border-bottom: 1px solid rgba(155,155,255,0.2);
  cursor: pointer;
  transition: 0.3s;
}

.side-menu li:hover {
  color: #fff;
  text-shadow: 0 0 6px rgba(167, 139, 250, 1);
}

