/* =========================================================
       PEON KİTAP - YAZAR DETAY SAYFASI
       ========================================================= */

    .author-detail-page {
        background: #ffffff;
    }

    .author-detail-page .author-detail-container {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    /* =========================================================
       GERİ DÖN
       ========================================================= */

    .author-detail-page .author-back {
        display: inline-flex;
        align-items: center;
        gap: 7px;

        margin-bottom: 18px;

        color: #71717a;

        font-size: 13px;
        font-weight: 500;

        text-decoration: none;

        transition:
            color .2s ease,
            transform .2s ease;
    }

    .author-detail-page .author-back .material-symbols-outlined {
        font-size: 19px;
        transition: transform .2s ease;
    }

    .author-detail-page .author-back:hover {
        color: #6d28d9;
    }

    .author-detail-page .author-back:hover .material-symbols-outlined {
        transform: translateX(-3px);
    }

    /* =========================================================
       YAZAR HERO
       ========================================================= */

    .author-detail-page .author-hero {
        position: relative;

        display: flex;
        align-items: center;
        gap: 30px;

        padding: 28px;

        overflow: hidden;

        border: 1px solid #e4e4e7;
        border-radius: 22px;

        background:
            linear-gradient(
                135deg,
                #fafafa 0%,
                #ffffff 55%,
                #faf5ff 100%
            );

        box-shadow:
            0 8px 30px rgba(24, 24, 27, .05);
    }

    .author-detail-page .author-hero::after {
        content: "";

        position: absolute;

        width: 180px;
        height: 180px;

        right: -60px;
        top: -70px;

        border-radius: 9999px;

        background: rgba(124, 58, 237, .05);

        pointer-events: none;
    }

    /* =========================================================
       YAZAR GÖRSELİ
       ========================================================= */

    .author-detail-page .author-hero-image {
        position: relative;
        z-index: 1;

        width: 205px;
        height: 205px;

        flex-shrink: 0;

        overflow: hidden;

        border-radius: 18px;

        background: #f4f4f5;

        box-shadow:
            0 12px 30px rgba(24, 24, 27, .12);
    }

    .author-detail-page .author-hero-image img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }

    .author-detail-page .author-hero-placeholder {
        display: flex;

        width: 100%;
        height: 100%;

        align-items: center;
        justify-content: center;
    }

    /* =========================================================
       YAZAR BİLGİSİ
       ========================================================= */

    .author-detail-page .author-hero-content {
        position: relative;
        z-index: 1;

        min-width: 0;
    }

    .author-detail-page .author-label {
        display: inline-flex;
        align-items: center;

        padding: 5px 10px;

        border-radius: 9999px;

        background: #f5f3ff;
        color: #6d28d9;

        font-size: 11px;
        font-weight: 700;

        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .author-detail-page .author-title {
        margin-top: 10px;

        font-size: 34px;
        line-height: 1.2;

        font-weight: 750;

        letter-spacing: -.035em;

        color: #18181b;
    }

    .author-detail-page .author-biography {
        max-width: 760px;

        margin-top: 14px;

        color: #71717a;

        font-size: 14px;
        line-height: 1.75;
    }

    /* =========================================================
       KİTAPLAR BÖLÜMÜ
       ========================================================= */

    .author-detail-page .books-section {
        margin-top: 42px;
    }

    .author-detail-page .books-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;

        margin-bottom: 20px;

        padding-bottom: 14px;

        border-bottom: 1px solid #e4e4e7;
    }

    .author-detail-page .books-label {
        font-size: 11px;
        line-height: 1.4;

        font-weight: 700;

        letter-spacing: .08em;
        text-transform: uppercase;

        color: #7c3aed;
    }

    .author-detail-page .books-title {
        margin-top: 4px;

        font-size: 22px;
        line-height: 1.3;

        font-weight: 700;

        letter-spacing: -.02em;

        color: #18181b;
    }

    .author-detail-page .books-count {
        flex-shrink: 0;

        padding: 6px 11px;

        border-radius: 9999px;

        background: #f4f4f5;

        color: #71717a;

        font-size: 11px;
        font-weight: 600;
    }

    /* =========================================================
       KİTAP GRID
       ========================================================= */

    .author-detail-page .books-grid {
        display: grid;

        grid-template-columns:
            repeat(5, minmax(0, 1fr));

        gap: 26px 22px;
    }

    /* =========================================================
       KİTAP KARTI
       ========================================================= */

    .author-detail-page .book-card {
        display: block;

        min-width: 0;

        text-decoration: none;

        color: inherit;
    }

    .author-detail-page .book-cover {
        position: relative;

        width: 100%;
        aspect-ratio: 2 / 3;

        overflow: hidden;

        border-radius: 12px;

        background: #f4f4f5;

        box-shadow:
            0 5px 15px rgba(24, 24, 27, .07);

        transition:
            transform .25s ease,
            box-shadow .25s ease;
    }

    .author-detail-page .book-cover img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;

        transition:
            transform .35s ease;
    }

    .author-detail-page .book-card:hover .book-cover {
        transform: translateY(-5px);

        box-shadow:
            0 14px 28px rgba(24, 24, 27, .13);
    }

    .author-detail-page .book-card:hover .book-cover img {
        transform: scale(1.04);
    }

    /* =========================================================
       KİTAP BİLGİLERİ
       ========================================================= */

    .author-detail-page .book-info {
        padding-top: 11px;
    }

    .author-detail-page .book-category {
        display: block;

        margin-bottom: 4px;

        overflow: hidden;

        color: #7c3aed;

        font-size: 10px;
        line-height: 1.4;

        font-weight: 700;

        text-transform: uppercase;

        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .author-detail-page .book-name {
        display: -webkit-box;

        overflow: hidden;

        min-height: 40px;

        color: #18181b;

        font-size: 14px;
        line-height: 1.45;

        font-weight: 650;

        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        transition: color .2s ease;
    }

    .author-detail-page .book-card:hover .book-name {
        color: #6d28d9;
    }

    .author-detail-page .book-price {
        margin-top: 6px;

        color: #18181b;

        font-size: 14px;
        line-height: 1.4;

        font-weight: 750;
    }

    /* =========================================================
       BOŞ KİTAP DURUMU
       ========================================================= */

    .author-detail-page .books-empty {
        padding: 55px 24px;

        border: 1px solid #e4e4e7;
        border-radius: 16px;

        background: #fafafa;

        text-align: center;
    }

    .author-detail-page .books-empty-icon {
        display: inline-flex;

        align-items: center;
        justify-content: center;

        width: 54px;
        height: 54px;

        border-radius: 9999px;

        background: #f5f3ff;

        color: #a78bfa;
    }

    /* =========================================================
       TABLET
       ========================================================= */

    @media (max-width: 1024px) {

        .author-detail-page .author-detail-container {
            padding-top: 22px;
        }

        .author-detail-page .author-hero {
            padding: 24px;
            gap: 24px;
        }

        .author-detail-page .author-hero-image {
            width: 180px;
            height: 180px;
        }

        .author-detail-page .author-title {
            font-size: 30px;
        }

        .author-detail-page .books-grid {
            grid-template-columns:
                repeat(4, minmax(0, 1fr));

            gap: 24px 18px;
        }
    }

    /* =========================================================
       MOBİL
       ========================================================= */

    @media (max-width: 640px) {

        .author-detail-page .author-detail-container {
            padding-top: 18px;
            padding-bottom: 35px;
        }

        .author-detail-page .author-back {
            margin-bottom: 14px;
        }

        .author-detail-page .author-hero {
            flex-direction: column;
            align-items: stretch;

            gap: 20px;

            padding: 18px;

            border-radius: 18px;
        }

        .author-detail-page .author-hero-image {
            width: 150px;
            height: 150px;

            margin: 0 auto;

            border-radius: 14px;
        }

        .author-detail-page .author-hero-content {
            text-align: center;
        }

        .author-detail-page .author-label {
            font-size: 10px;
        }

        .author-detail-page .author-title {
            margin-top: 8px;

            font-size: 27px;
        }

        .author-detail-page .author-biography {
            margin-top: 11px;

            font-size: 13px;
            line-height: 1.65;
        }

        .author-detail-page .books-section {
            margin-top: 32px;
        }

        .author-detail-page .books-header {
            align-items: center;

            margin-bottom: 16px;
        }

        .author-detail-page .books-title {
            font-size: 19px;
        }

        .author-detail-page .books-count {
            font-size: 10px;
        }

        .author-detail-page .books-grid {
            grid-template-columns:
                repeat(2, minmax(0, 1fr));

            gap: 22px 14px;
        }

        .author-detail-page .book-cover {
            border-radius: 10px;
        }

        .author-detail-page .book-info {
            padding-top: 9px;
        }

        .author-detail-page .book-name {
            font-size: 13px;
        }

        .author-detail-page .book-price {
            font-size: 13px;
        }
    }
/* Mobil yazara özel kitap listesinde daha dengeli kart aralıkları. */
@media (max-width: 640px) {
    .author-detail-page .author-detail-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .author-detail-page .author-hero {
        gap: 16px;
        padding: 16px;
    }

    .author-detail-page .author-hero-image {
        width: 136px;
        height: 136px;
    }

    .author-detail-page .author-title {
        font-size: clamp(23px, 6vw, 27px);
        overflow-wrap: anywhere;
    }

    .author-detail-page .books-grid {
        gap: 18px 12px;
    }

    .author-detail-page .book-info {
        min-width: 0;
    }

    .author-detail-page .book-name {
        overflow-wrap: anywhere;
        line-height: 1.4;
    }
}
