/* Sol Açılır Menü */
#solMenuTetikleyici {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 64px;
    height: 180px;
    background: #2C3E50;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(44,62,80,0.16);
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1100;
    cursor: pointer;
    transition: all 0.2s;
    padding: 15px 0;
}

#solMenuTetikleyici:hover {
    box-shadow: 0 12px 32px rgba(44,62,80,0.25);
    transform: translateY(-3px);
}

#solMenuTetikleyici .kitap-ikon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#solMenuTetikleyici .kitap-ikon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#solMenuTetikleyici .kitap-label {
    color: #fff !important;
    font-size: 1.3em;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.1;
    margin: 0;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-orientation: mixed;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Diğer Sol Menü Stilleri */
.sol-acilir-menu {
  position: fixed;
  left: -300px;
  top: 0;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  transition: left 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sol-acilir-menu.menu-acik {
  left: 0;
}

.sol-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  background: linear-gradient(135deg, #e6f0f7 0%, #d9e2eb 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sol-menu-header h3 {
  margin: 0;
  font-size: 18px;
  color: #34495e;
  font-weight: 600;
}

.sol-menu-bildirim-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sol-menu-kapat {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #34495e;
  display: flex;
  padding: 5px;
  transition: transform 0.3s ease;
  font-size: 16px;
}

.sol-menu-kapat:hover {
  transform: rotate(90deg);
}

/* Arama Kutusu */
.sol-menu-arama {
  display: flex;
  padding: 12px 15px;
  background: #f5f7fa;
  border-bottom: 1px solid #e3e8ed;
}

.kitap-arama-input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.kitap-arama-input:focus {
  border-color: #3498db;
}

.arama-btn {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-size: 16px;
}

.arama-btn:hover {
  background: #2980b9;
}

/* Bildirim Paneli - Kaldırıldı */

.sol-menu-icerik {
  padding: 15px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #bfcad6 #f0f4f8;
}

.sol-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sol-menu-overlay.menu-acik {
  display: block;
  opacity: 1;
}

/* E-Kitap Sayfa Düzeni */
.ekitap-sayfa-wrapper {
    display: flex; 
    flex-wrap: wrap; 
    max-width: 1240px; 
    margin: 20px auto; 
}

/* Ana İçerik Alanı */
.kitap-container { 
    flex-grow: 1; 
    min-width: 0; 
    box-sizing: border-box; 
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Kitap Kartları */
.ekitap-set-info {
  margin-bottom: 8px;
  padding: 8px 0;
  max-height: 50px;
  overflow: hidden;
}

.ekitap-set-info h4 {
  font-size: 14px;
  color: #34495e;
  margin: 0 0 5px;
  border-bottom: 1px solid #e3e8ed;
  padding-bottom: 4px;
  line-height: 1.2;
}

.ekitap-set-books {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Scroll göstergesi için stil */
  max-height: 70vh;
    overflow-y: auto; 
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #bfcad6 #f0f4f8;
}

/* WebKit tarayıcılar için scrollbar stilleri */
.ekitap-set-books::-webkit-scrollbar {
  width: 6px;
}

.ekitap-set-books::-webkit-scrollbar-track {
  background: #f0f4f8;
  border-radius: 10px;
}

.ekitap-set-books::-webkit-scrollbar-thumb {
  background: #bfcad6;
  border-radius: 10px;
}

.ekitap-set-books::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

/* Kitap Grubu ve Detayları */
.ekitap-kitap-grup {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}

.ekitap-kitap-card {
  padding: 12px 15px;
  background: #f5f5f5;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
    display: flex; 
  justify-content: space-between;
    align-items: center; 
}

.ekitap-kitap-card:hover {
  background: #e9e9e9;
  transform: translateX(5px);
  border-left: 3px solid #E68A00;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ekitap-kitap-card.active {
  background: #2980b9;
  color: white;
  border-left: 3px solid #F5A623;
}

.ekitap-kitap-card.active:hover {
  transform: translateX(3px);
  background: #3498db;
}

.kitap-baslik {
  font-size: 15px;
  font-weight: 500;
  flex-grow: 1;
}

.kitap-menu-toggle {
  background: transparent;
  border: none;
  color: inherit;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.3s;
  font-size: 10px;
}

.kitap-menu-toggle.active {
  transform: rotate(180deg);
}

/* Kitap Detay Paneli */
.kitap-detay {
  display: none;
  background: white;
  border: 1px solid #e3e8ed;
  border-top: none;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.kitap-detay.active {
  display: block;
}

/* Detay Sekmeleri */
.kitap-detay-tabs {
  display: flex;
  background: #f5f7fa;
  border-bottom: 1px solid #e3e8ed;
}

.detay-tab {
  padding: 10px 15px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #7f8c8d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  flex-grow: 1;
  transition: all 0.3s;
}

.detay-tab:hover {
  color: #34495e;
}

.detay-tab.active {
  color: #3498db;
  border-bottom-color: #3498db;
  background: white;
}

.tab-icerik {
  display: none;
  padding: 10px;
}

.tab-icerik.active {
  display: block;
}

/* Bölüm Listesi */
.bolum-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

.bolum-item {
  margin-bottom: 5px;
}

.bolum-link {
  display: block;
  padding: 8px 10px;
  color: #34495e;
    text-decoration: none;
  border-radius: 3px;
  font-size: 13px;
  transition: all 0.2s;
}

.bolum-link:hover {
  background: #f5f7fa;
  color: #3498db;
}

/* Not Listesi */
.not-liste {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.not-item {
  padding: 8px 10px;
  background: #f5f7fa;
  border-radius: 3px;
  margin-bottom: 5px;
  font-size: 13px;
  color: #34495e;
  border-left: 2px solid #3498db;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.not-icerik {
  flex-grow: 1;
  word-break: break-word;
  padding-right: 8px;
}

.not-sil-btn {
  background: transparent;
  color: #95a5a6;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  width: 20px;
  height: 20px;
    display: flex;
    align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.not-sil-btn:hover {
  background: #e74c3c;
  color: white;
}

.bos-not {
  color: #95a5a6;
  font-style: italic;
  border-left-color: #bdc3c7;
}

.not-form {
  display: flex;
  gap: 5px;
}

.not-input {
    flex-grow: 1; 
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 8px;
  font-size: 13px;
  min-height: 60px;
  resize: vertical;
}

.not-ekle-btn {
  align-self: flex-end;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.not-ekle-btn:hover {
  background: #2980b9;
}

/* Arama Sonuçları */
.arama-sonuc-baslik {
  font-size: 14px;
  color: #34495e;
  margin: 15px 0 10px;
  font-weight: 600;
}

.arama-sonuc-liste {
  margin-bottom: 15px;
}

.arama-sonuc-item {
  padding: 10px;
  background: #f5f7fa;
  border-radius: 4px;
  margin-bottom: 5px;
  border-left: 3px solid #3498db;
}

.arama-sonuc-item a {
  color: #34495e;
  text-decoration: none;
    font-weight: 500;
}

.arama-sonuc-item a:hover {
  text-decoration: underline;
}

.arama-sonuc-item .eslesme-bilgisi {
  font-size: 12px;
  color: #7f8c8d;
    margin-top: 3px;
}

.arama-bos-sonuc {
  color: #95a5a6;
  font-style: italic;
  padding: 10px;
  text-align: center;
}

/* Mobil Uyumluluğu */
@media (max-width: 767px) {
  #solMenuTetikleyici {
    width: 56px;
    height: 150px;
    top: 70px;
    left: 10px;
    padding: 10px 0;
  }
  
  #solMenuTetikleyici .kitap-ikon {
    margin-bottom: 10px;
  }
  
  #solMenuTetikleyici .kitap-ikon img {
    width: 30px;
    height: 30px;
  }
  
  #solMenuTetikleyici .kitap-label {
    font-size: 1.1em;
    height: 60px;
  }
  
  .sol-acilir-menu {
    width: 280px;
  }
  
  .sol-menu-header h3 {
    font-size: 16px;
  }
  
  .kitap-arama-input {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .kitap-detay-tabs {
    flex-wrap: wrap;
  }
  
  .detay-tab {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  .bolum-link, .not-item, .not-input, .not-ekle-btn {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .bolum-liste, .not-liste {
    max-height: 150px;
  }
  
  /* Set info alanı mobilde daha kompakt */
  .ekitap-set-info {
    margin-bottom: 5px;
    padding: 5px 0;
    max-height: 40px;
  }
  
  .ekitap-set-info h4 {
    font-size: 13px;
    margin: 0 0 3px;
    padding-bottom: 3px;
  }
}

@media (max-width: 360px) {
  #solMenuTetikleyici {
    width: 50px;
    height: 140px;
    left: 5px;
    border-radius: 14px;
    padding: 8px 0;
  }
  
  #solMenuTetikleyici .kitap-ikon {
    margin-bottom: 8px;
  }
  
  #solMenuTetikleyici .kitap-ikon img {
    width: 24px;
    height: 24px;
  }
  
  #solMenuTetikleyici .kitap-label {
    font-size: 0.9em;
    height: 50px;
    letter-spacing: 0;
  }
  
  /* Çok küçük ekranlarda set info alanı daha minimal */
  .ekitap-set-info {
    margin-bottom: 3px;
    padding: 3px 0;
    max-height: 35px;
  }
  
  .ekitap-set-info h4 {
    font-size: 12px;
    margin: 0 0 2px;
    padding-bottom: 2px;
  }
}

/* WordPress Admin Bar Uyumluluğu */
body.admin-bar .sol-acilir-menu {
  top: 32px; /* WordPress admin bar yüksekliği */
  height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .sol-acilir-menu {
    top: 46px; /* Mobilde WordPress admin bar yüksekliği */
    height: calc(100% - 46px);
    }
}

/* Tablet ve küçük masaüstü için tetikleyici pozisyon ayarı */
@media (min-width: 768px) and (max-width: 1180px) {
  #solMenuTetikleyici {
    left: 15px !important; /* Sol kenara daha yakın */
    top: 90px !important;  /* Dikey konum */
    width: auto !important; /* Genişlik içeriğe (ikona) göre otomatik */
    height: auto !important; /* Yükseklik içeriğe (ikona) göre otomatik */
    padding: 8px !important; /* İkon etrafında daha az dolgu */
    min-width: unset !important; /* Minimum genişlik kısıtlamasını kaldır */
    min-height: unset !important; /* Minimum yükseklik kısıtlamasını kaldır */
    justify-content: center !important; /* İkonu dikey ve yatayda ortala (flex container olduğu için) */
  }
  #solMenuTetikleyici .kitap-label {
    display: none !important; /* Metin etiketi gizle */
  }
  #solMenuTetikleyici .kitap-ikon {
    margin: 0 !important; /* İkonun kendi etrafındaki dış boşlukları kaldır (medya sorgusu içinde) */
  }
  .kitap-container {
    padding-left: 81px !important; /* İçeriği sağa iterek tetikleyici için yer aç (medya sorgusu içinde) */
  }
} 