/* --- Genel Stiller --- */

/* Ana kapsayıcı */
.kitaplar-sayfasi {
  width: 1250px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Üst hizalama */
  margin-top: 36px;
}

/* Ürün Fotoğrafı Bölümü */
.kitap-gorsel {
  width: 610px;
  height: 538px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.kitap-gorsel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.kitap-gorsel:hover img {
  transform: scale(1.5);
  cursor: zoom-in;
}
.kitap-gorsel:active img {
  cursor: grabbing;
}

/* Detay Bölümü */
.kitap-detay {
  margin-left: 40px;
  width: 590px;
  font-family: 'Inter', sans-serif;
}
.kitap-baslik {
  font-size: 40px;
  font-weight: 900;
  color: #000;
  line-height: normal;
}
.kitap-rating {
  display: flex;
  align-items: center;
  margin-top: 24px;
}
.kitap-rating .stars {
  display: flex;
  gap: 8px;
}
.rating-text {
  margin-left: 16px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}
.rating-text .rating-light {
  color: rgba(0, 0, 0, 0.60);
}
.kitap-tanitim {
  margin-top: 24px;
  width: 590px;
  color: rgba(0, 0, 0, 0.60);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}
.separator {
  margin-top: 24px;
  width: 590px;
  height: 1px;
  background: rgba(0, 0, 0, 0.10);
}

/* Buton Ayarları */
.btn {
  box-sizing: border-box;
}
.kitap-buy-buttons {
  margin-top: 24px;
  display: flex;
  gap: 14px;
}
.btn.btn-large {
  display: flex;
  width: 288px;
  height: 52px;
  padding: 16px 54px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #A21E7E;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.kitap-small-buttons {
  margin-top: 24px;
  display: flex;
  gap: 11px;
}
.btn.btn-small {
  display: flex;
  width: 189px;
  height: 52px;
  padding: 16px 54px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #F9CA36;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
/* İkinci küçük butonun genişliği */
.kitap-small-buttons .btn.btn-small:nth-child(2) {
 
}
/* Hover Efektleri */
.btn.btn-large:hover {
  background: #F9CA36;
  color: #000;
}
.btn.btn-small:hover {
  background: #A21E7E;
  color: #FFF;
}

/* Modal (Flipbook) Stilleri */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 20px;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}


/* ========== MEDIA QUERIES ========== */

/* 1. 1250px altı: Genel Container Genişliği */
@media (max-width: 1250px) {
  .kitaplar-sayfasi {
    width: 100%;
    padding: 0 20px;
  }
}

/* 2. 1024px altı: Görsel ve Detay alanlarının genişlik ayarı */
@media (max-width: 1024px) {
  .kitap-gorsel {
    width: 100%;
    height: auto;
  }
  .kitap-gorsel img {
    height: auto;
  }
  .kitap-detay {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }
  /* Butonları alt alta yerleştirme */
  .kitap-buy-buttons,
  .kitap-small-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .btn.btn-large,
  .btn.btn-small {
    width: 100%;
    justify-content: center;
  }
}

/* 3. 768px altı (Tablet ve Küçük Ekranlar): 
   - Flex yönü dikey, metinler ve fotoğraf daha küçük ve ortalanmış */
@media (max-width: 768px) {
  .kitaplar-sayfasi {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }
  /* Ürün fotoğrafı küçülüyor */
  .kitap-gorsel {
    width: 90%;
    height: auto;
    margin: 0 auto;
  }
  /* Detay bölümü alt alta ve merkezde */
  .kitap-detay {
    width: 90%;
    margin: 20px 0 0;
    text-align: center;
  }
  .kitap-tanitim,
  .separator {
    width: 90%;
    margin: 0 auto;
  }
  /* Başlık ve reyting ayarları */
  .kitap-baslik {
    font-size: 32px;
  }
  .kitap-rating,
  .rating-text {
    text-align: center;
    justify-content: center;
  }
}

/* 4. 600px altı: Yazı ve buton boyutlarında küçülme */
@media (max-width: 600px) {
  .kitap-baslik {
    font-size: 28px;
  }
  .kitap-tanitim {
    font-size: 14px;
    line-height: 24px;
  }
  .btn.btn-large,
  .btn.btn-small {
    height: 44px;
    padding: 12px 20px;
    font-size: 14px;
  }
  .kitap-buy-buttons,
  .kitap-small-buttons {
    gap: 8px;
  }
}

/* 5. 480px altı: En küçük ekranlarda tam genişlik ve merkezleme */
@media (max-width: 480px) {
  .kitap-baslik {
    font-size: 26px;
    text-align: center;
  }
  .kitap-rating {
    flex-direction: column;
    align-items: center;
  }
  .rating-text {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
  .kitap-tanitim {
    text-align: center;
  }
  .kitap-buy-buttons,
  .kitap-small-buttons {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .btn.btn-large,
  .btn.btn-small {
    width: 100%;
  }
  .kitaplar-sayfasi {
    padding: 0 10px;
  }
  /* Eğer video çözüm butonu varsa (örnek: .video-cozum-btn) tam genişlikte gösterim */
  .video-cozum-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
}
