/* === ANA İÇERİK STİLLERİ === */
.main-content{
    max-width: 1400px;
    margin: auto;
    justify-content: center;
    align-items: center;
}
.welcome-section{
  color: #858585;
  margin: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 200px;
}
.welcome-section h1{
  padding-top: 45px;
}
/* === İNDİRME PROGRESS BAR === */
#progress-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #f0f0f0;
  z-index: 1004;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

#progress-text {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #333;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 12px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid #e0e0e0;
  font-weight: 500;
}

/* === KİTAP LİSTESİ === */
.container {
  margin: auto;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.book {
  display: inline-block;
  width: 15%;
  margin: 1%;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  box-sizing: border-box;
  transition: transform 0.3s;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.book:hover {
  transform: scale(1.05);
}

.book img {
  width: 100%;
  height: auto;
}

.book h3 {
  font-size: 18px;
  margin-top: -10px;
}

.book p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* === SAYFALAMA === */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination button {
  padding: 10px 20px;
  margin: 0 10px;
  background-color: #0e7a7c;
  color: #fff;
  border: none;
  cursor: pointer;
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagination span {
  padding: 10px 15px;
  margin: 0 5px;
  cursor: pointer;
  background-color: #f4f4f4;
  border: 1px solid #ccc;
}

.pagination .active {
  background-color: #0e7a7c;
  color: white;
}

/* === CARE COLOR === */
* {
  caret-color: transparent;
}

input, textarea {
  caret-color: auto;
}

/* === POPUP STİLLERİ === */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1003;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-content {
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  margin-top: 190px;
  padding-bottom: 40px;
  max-width: 600px;
  position: relative;
  z-index: 1001;
  cursor: default;
}

.popup-content .close {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.popup-content img {
  margin-top: -350px;
  margin-bottom: -60px;
}

/* Popup buton stilleri */
.download-btn {
  padding: 10px 20px;
  background: #ff8902;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-left: 10px;
  border: 2px solid #ff8902;
}

.download-btn:hover {
  background: #fff;
  color: #ff8902;
}

.popup h2{
    margin-top: 10px;
    font-size: 28px;
}

.popup p{
  line-height: 1.5;
}

.popup p:nth-of-type(2) {
  margin-bottom: 30px;
}

.popup a{
  padding: 10px 20px;
  background: #ff8902;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-left: 10px;
  border: 2px solid #ff8902;
}

.popup a:hover{
  background: #fff;
  color: #ff8902;
}

.yola{
  padding: 10px 20px;
  background: #ff8902;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #ff8902;
}

.yola:hover{
  background: #fff;
  color: #ff8902;
}

.book {
  margin: 50px 10px;
}

.book img {
  margin-top: -90px;
}

/* === İÇERİK BLOKLARI === */
.atlicerik{
  display: flex;
  background-image: url(/svg/Shiny\ Overlay.svg);
  margin: auto;
  justify-content: center;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  align-items: center;
  margin-bottom: 50px;
}

.foto img{
  margin-top: -20px;
}

.yaz h2{
 color: #fff;
}

.yaz p{
  max-width: 700px;
  color: white;
  font-weight: 500;
  font-size: 16px;
}

.atlicerik2{
  display: flex;
  max-width: 1400px;
  min-height: 400px;
  background-image: url(/svg/PolygonLuminary.svg);
  margin: auto;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  margin-bottom: 50px;
}

.foto img{
  max-width: 300px;
  margin-left: 100px;
  margin-top: -20px;
}

.yaz2{
  max-width: 600px;
  margin: auto;
}

.yaz2 h2{
 color: #fff;
}

.yaz2 p{
  color: white;
  font-weight: 500;
  font-size: 16px;
}

/* === RESPONSIVE TASARIM === */
@media (max-width: 1200px) {
  .book {
    width: 23%;
    margin: 1%;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 15px;
  }
  
  .book {
    width: 48%;
    margin: 1%;
  }
  
  .book h3 {
    font-size: 16px;
  }
  
  .book p {
    font-size: 12px;
  }
  
  /* Popup mobil iyileştirmeleri */
  .popup-content {
    width: 95%;
    margin-top: 100px;
    padding: 15px;
  }
  
  .popup-content img {
    margin-top: -250px;
    margin-bottom: -40px;
    max-width: 200px;
  }
  
  .popup h2 {
    font-size: 22px;
    margin-top: 20px;
  }
  
  .popup p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* İçerik blokları mobil düzeni */
  .atlicerik {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin: 20px 15px;
  }
  
  .foto img {
    max-width: 200px;
    margin: 0 auto 20px;
  }
  
  .yaz h2 {
    font-size: 20px;
  }
  
  .yaz p {
    font-size: 14px;
  }
  
  /* Atlicerik2 mobil düzeni */
  .atlicerik2 {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin: 20px 15px;
    min-height: auto;
  }
  
  .foto img {
    margin-left: 0;
    max-width: 200px;
    margin-bottom: 20px;
  }
  
  .yaz2 {
    max-width: 100%;
  }
  
  .yaz2 h2 {
    font-size: 20px;
  }
  
  .yaz2 p {
    font-size: 14px;
  }
  
  /* Pagination mobil */
  .pagination button {
    padding: 8px 15px;
    margin: 0 5px;
    font-size: 14px;
  }
  
  .pagination span {
    padding: 8px 12px;
    margin: 0 3px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .book {
    width: 100%;
    margin: 10px 0;
  }
  
  .popup-content {
    margin-top: 80px;
    padding: 10px;
  }
  
  .popup-content img {
    margin-top: -180px;
    max-width: 150px;
  }
  
  .download-btn, .popup a, .yola {
    padding: 8px 16px;
    font-size: 14px;
    margin: 5px;
    display: inline-block;
    width: 90%;
    text-align: center;
  }
  
  /* Progress text mobil */
  #progress-text {
    font-size: 10px;
    padding: 3px 8px;
    top: 8px;
  }
  
  /* Container margin ayarı */
  .container {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* Touch device iyileştirmeleri */
@media (hover: none) and (pointer: coarse) {
  .book:hover {
    transform: none;
  }
}

/* Yüksek çözünürlüklü ekranlar için */
@media (min-width: 1400px) {
  .main-content {
    max-width: 1400px;
  }
}

/* Yatay mod (landscape) için optimizasyon */
@media (max-height: 500px) and (orientation: landscape) {
  .popup-content {
    margin-top: 50px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .popup-content img {
    margin-top: -150px;
    max-width: 120px;
  }
}





/* === DROPDOWN MENÜ (Sadece Ana Sayfa) === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: bold;
  background-color: #0e7a7c;
  color: white;
  padding: 10px 45px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.dropbtn:hover {
  background-color: #095c5e;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #e0e0e0;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #0e7a7c;
}

/* Dropdown'ı hover ile açma */
.dropdown:hover .dropdown-content {
  display: block;
}

/* === RESPONSIVE DROPDOWN === */
@media (max-width: 768px) {
  .dropbtn {
    padding: 10px 30px;
    font-size: 14px;
  }
  
  .dropdown-content {
    min-width: 140px;
  }
  
  .dropdown-content a {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .dropbtn {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .dropdown-content {
    min-width: 120px;
  }
  
  .dropdown-content a {
    padding: 8px 10px;
    font-size: 13px;
  }
}