/* Genel Sayfa Düzeni */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    margin: 0;
    padding: 30px 15px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #1a252f;
}

/* Canlı Arama Kutusu Tasarımı */
.arama-kutusu {
    margin-bottom: 25px;
}

.arama-kutusu input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.arama-kutusu input:focus {
    border-color: #3498db;
}

/* Filtre Sıfırlama Butonu */
.filtre-temizle-btn {
    background-color: #1a252f;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* Kitap Listesi ve Sade Satır Tasarımı */
.kitap-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kitap-listesi li {
    margin-bottom: 8px;
}

.kitap-listesi li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: #34495e;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.kitap-listesi li a:hover {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
    transform: translateX(5px);
}

/* Başlık sonundaki format metni */
.format-badge {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: bold;
    text-transform: uppercase;
}
.kitap-listesi li a:hover .format-badge {
    color: #e0f2fe;
}

/* Popup (Modal) Temeli */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.modal-icerik {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh; /* Ekrana göre maksimum dikey sınır */
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: popupGoster 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupGoster {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.kapat-butonu {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #bdc3c7;
    transition: color 0.2s;
    z-index: 10;
}

.kapat-butonu:hover {
    color: #e74c3c;
}

/* Kaydırılabilir Metin Düzeni (Açıklama uzarsa sadece burası dikey kayar) */
.modal-detay-grup {
    display: block;
    overflow-y: auto;
    flex-grow: 1;
    margin-top: 10px;
    padding-right: 8px;
    margin-bottom: 15px;
}

.modal-tam-metin {
    width: 100%;
}

#modalBaslik {
    margin-top: 0;
    font-size: 20px;
    color: #2c3e50;
    padding-right: 20px;
}

.modal-meta-bilgi {
    font-size: 13px;
    color: #7f8c8d;
    margin: 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #edf2f7;
}

.etiket-satiri {
    margin-top: 4px;
}

.etiket-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    margin-right: 4px;
    font-weight: 600;
}

/* Popup Kapak Resmi Düzeni */
.modal-kapak-alani {
    text-align: center;
    margin: 15px 0;
}

#modalKapak {
    max-width: 140px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

#modalAciklama {
    font-size: 14px;
    line-height: 1.5;
    color: #34495e;
}

/* Sabitlenen Reklam Alanı Düzeni */
.popup-reklam {
    margin: 10px 0 15px 0;
    padding: 5px;
    background: #fafbfc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    text-align: center;
    min-height: 100px;
    flex-shrink: 0; /* İçerik uzasa da reklam alanının ezilmesini önler */
}

/* İndirme Butonları Alanı */
.modal-aksiyon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    background: #fff;
    flex-shrink: 0;
}

.btn {
    display: inline-block;
    background-color: #2ecc71;
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #27ae60;
}
/* Genel Sayfa Düzeni */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    margin: 0;
    padding: 30px 15px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: #1a252f;
}

/* Canlı Arama Kutusu Tasarımı */
.arama-kutusu {
    margin-bottom: 25px;
}

.arama-kutusu input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.arama-kutusu input:focus {
    border-color: #3498db;
}

/* Kitap Listesi */
.kitap-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kitap-listesi li {
    margin-bottom: 8px;
}

.kitap-listesi li a {
    display: block;
    padding: 14px 18px;
    color: #34495e;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #edf2f7;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.kitap-listesi li a:hover {
    background-color: #3498db;
    color: #ffffff;
    border-color: #3498db;
    transform: translateX(5px);
}

/* Popup (Modal) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
}

.modal-icerik {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    animation: popupGoster 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupGoster {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.kapat-butonu {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #bdc3c7;
    transition: color 0.2s;
    z-index: 10;
}

.kapat-butonu:hover {
    color: #e74c3c;
}

/* Kapak ve Metin Yan Yana Düzeni */
.modal-detay-grup {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.modal-sol {
    flex: 0 0 120px;
}

.modal-sol img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    object-fit: cover;
}

.modal-sag {
    flex: 1;
}

#modalBaslik {
    margin-top: 0;
    font-size: 20px;
    color: #2c3e50;
}

#modalAciklama {
    font-size: 14px;
    line-height: 1.5;
    color: #7f8c8d;
}

/* Reklam Alanı */
.popup-reklam {
    margin: 10px 0;
    padding: 10px;
    background: #fafbfc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    text-align: center;
    min-height: 100px;
}

/* Çoklu Buton Alanı */
.modal-aksiyon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.btn {
    display: inline-block;
    background-color: #2ecc71;
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #27ae60;
}

/* Mobil Uyumluluk Ayarı */
@media (max-width: 480px) {
    .modal-detay-grup {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .modal-sol {
        flex: 0 0 140px;
    }
    .modal-aksiyon {
        justify-content: center;
    }
}