/* Eski uuyayinlari.com / uupress.com tasarımının Next.js uyarlaması.
   Sıra: bootstrap-4.3.1 → mdb.lite → style.min (eski dosyalar, değiştirilmeden) → bu dosya.
   Burada yalnızca eski layout'taki satır içi stiller ile jQuery eklentilerinin (mmenu, swiper 4) yerine geçen
   bileşenlerin stilleri bulunur. */

.book-title {
    font-weight: 500;
    padding-top: 1rem;
    line-height: 20px;
    margin-bottom: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

article a {
    color: #15a49d !important;
}

article a:hover {
    text-decoration: underline;
}

article img {
    max-width: 100%;
    height: auto;
}

.book-item img {
    height: auto;
}

/* Kapakların yüksekliği kart yüksekliğini aşmasın (eski sitede lazyload yer tutucusu aynı oranı veriyordu). */
/* Uzun yazar adları dar ekranda kartın dışına taşmasın. */
.book-author .badge {
    white-space: normal;
    max-width: 100%;
}

.book-item .book-cover {
    max-height: 300px;
    width: auto;
}

/* Swiper 14: eski sitedeki swiper 4 görünümü */
.swiper-slide {
    text-align: center;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

#slider {
    padding-bottom: 2rem;
}

/* Swiper başlamadan önceki ilk görüntü de son düzenle aynı olsun (sayfa açılırken tek dev slayt görünmesin). */
#slider:not(.swiper-initialized) .swiper-slide {
    width: 100%;
}

@media (min-width: 641px) {
    #slider:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 30px) / 2);
        margin-right: 30px;
    }
}

@media (min-width: 769px) {
    #slider:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 60px) / 3);
    }
}

#slider .swiper-pagination {
    bottom: 0;
}

.swiper-pagination-bullet-active {
    background: #15a49d;
}

/* Kategori menüsü (eski jQuery.mmenu off-canvas görünümü) */
.category-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.35);
}

.category-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    width: 80%;
    max-width: 440px;
    background: #f3f3f3;
    color: #444;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: categoryDrawerIn 0.2s ease-out;
}

@keyframes categoryDrawerIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.category-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 10px 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.3);
}

.category-drawer__close {
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.category-drawer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-drawer li a {
    display: block;
    padding: 12px 10px 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: inherit;
}

.category-drawer li a:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #15a49d;
}

/* <a href="#"> yerine kullanılan düğmeler bağlantı gibi görünür */
.nav-link.as-button {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-link.as-button:focus:not(:focus-visible) {
    outline: none;
}

/* Sayfalama (eski authors.blade.php satır içi stili) */
.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    border: 1px solid #15a49d;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    color: #000;
}

.pagination .page-item.active .page-link {
    background-color: #15a49d;
    border-color: #15a49d;
    color: #fff;
}

.social li button {
    border-radius: 50%;
    background: transparent;
    border: 0;
    color: black;
    width: 30px;
    height: 30px;
    font-size: 17px;
    margin-right: 10px;
    padding: 0;
    cursor: pointer;
}

.buy {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    color: #000;
}

.buy:hover {
    color: #000;
}

.buy svg {
    margin-left: 0.6rem;
    margin-right: 0.4rem;
}

.search-author-list a {
    margin: 0 0.25rem 0.5rem 0;
}

/* Tüm Kitaplar: başlık + sağ üstte Liste/Kapaklı düğmeleri */
.all-books-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.all-books-heading h1 {
    margin-bottom: 0;
}

.view-toggle {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid #dadce0;
    border-radius: 999px;
    overflow: hidden;
}

.view-toggle__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2rem;
    color: #5f6368;
}

.view-toggle__btn + .view-toggle__btn {
    border-left: 1px solid #dadce0;
}

.view-toggle__btn:hover,
.view-toggle__btn:focus {
    color: #202124;
    background: #f1f3f4;
}

.view-toggle__btn.is-active {
    color: #0b5f62;
    background: #e0f2f1;
}

/* Eski elle yazılmış listedeki "132. Kitap adı" paragraflarının görünümü */
.all-books-list {
    margin: 1rem 0 0;
    padding-left: 2.5rem;
}

.all-books-list li {
    margin-bottom: 1rem;
    padding-left: 0.25rem;
}
