/* === GENEL === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #181818, #3a0ca3, #7209b7);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.logo {
  font-size: 1.6rem;
  font-weight: 700;


  
}

.logo span {
  color: #f6d32d;
}


.navbar {
  position: sticky;
  top: 10px;
  width: 100%;
  background: blue; /* siyah */
  color: #fff;
  border-radius: 20px;
  align-items: center;
  text-align: center;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}






nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #f6d32d;
}

/* === HERO === */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #3a0ca3, #7209b7, #f72585);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

}



.hero p {
  font-size: 1.1rem;
  color: #ffe;
}

/* === LİBRARY === */
.library {
  padding: 60px 8%;
  flex: 1;
}

.library h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: #f6d32d;
}









/* === GRID DÜZENİ === */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PC'de 3 kitap */
  gap: 25px;
  padding: 40px;
  max-width: 1100px;
  margin: auto;
}

/* Tablet görünümü */
@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Telefon görünümü */
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.book {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(6px);
}


.book:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.book .cover img {
  width: 100%;
  border-radius: 12px;
  height: 320px;
  object-fit: cover;
}


.meta {
  margin-top: 15px;
}

.meta h3 {
  color: #fff;
  font-size: 14px;
}

.meta p {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 4px;
}

.actions {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}


.btn {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn.play {
  background: #f6d32d;
  color: #000;
}

.btn.play:hover {
  background: #fff;
}

.btn.ghost {
  background: transparent;
  border: 2px solid #f6d32d;
  color: #f6d32d;
}
.btn.ghost:hover {
  background: #f6d32d;
  color: #000;
}



.nav-left .site-desc {
  font-size: 0.8em;
  font-weight: bold;
  background: linear-gradient(135deg, #5a25d4, #a8edea);
  width: 200px;
  height: 30px;
  border-radius: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.nav-left .site-desc:hover {
  background: rgb(18, 18, 143);
  color: yellow;
}


/* === FOOTER === */
footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: #ddd;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}









/* === Aktif Kitap Efekti === */
.book.active {
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.9);
  transform: scale(1.02);
  position: relative;
}

/* === Dalga Animasyonu === */
.wave {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
}

.wave span {
  display: block;
  width: 4px;
  height: 12px;
  background: #ffb300;
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}

.wave span:nth-child(2) { animation-delay: 0.2s; }
.wave span:nth-child(3) { animation-delay: 0.4s; }
.wave span:nth-child(4) { animation-delay: 0.6s; }
.wave span:nth-child(5) { animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.7; }
  50% { height: 22px; opacity: 1; }
}

/* Bildirim Alanı */
#notify {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #fff59d;
  color: #222;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.5s;
}