/* =====================================================
   SIYAH SAYFALAR — DIGITAL LIBRARY
   PREMIUM EDITORIAL MAGAZINE COLLECTION
   BLACK / WALNUT / ANTIQUE GOLD
===================================================== */

.digital-library-section,
.digital-library-section * {
    box-sizing: border-box;
}

.digital-library-section {
    position: relative;
    width: 100%;
    margin: 30px 0;
    padding: 45px 0 35px;
    overflow: hidden;
    color: #e8dfce;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(166,120,58,.10), transparent 60%),
        linear-gradient(180deg, #0b0a08 0%, #11100d 50%, #090807 100%);
}

.digital-library-container {
    position: relative;
    width: 100%;
    max-width: 1450px;
    padding: 0 25px;
    margin: 0 auto;
}

/* =====================================================
   HEADER
===================================================== */

.digital-library-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.digital-library-heading {
    text-align: left;
}

.digital-library-eyebrow {
    margin-bottom: 10px;
    color: #b99a63;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
}

.digital-library-eyebrow span {
    margin: 0 6px;
    color: #806039;
}

.digital-library-heading h2 {
    margin: 0;
    color: #ead8b5;
    font-family: Georgia, serif;
    font-size: clamp(23px, 2.5vw, 34px);
    font-weight: 400;
    letter-spacing: 1.5px;
}

.digital-library-heading p {
    margin: 8px 0 0;
    color: #918779;
    font-size: 12px;
    letter-spacing: .5px;
}

.digital-library-counter {
    flex-shrink: 0;
    color: #c5a46b;
    font-family: Georgia, serif;
    font-size: 20px;
    letter-spacing: 2px;
}

.library-counter-divider {
    margin: 0 5px;
    color: #5c4930;
}

.library-total {
    color: #817665;
    font-size: 14px;
}

/* =====================================================
   BOOKSHELF
===================================================== */

.digital-library-shelf-area {
    position: relative;
    padding: 15px 12px 0;
}

.digital-library-wall {
    position: relative;
    padding: 27px 14px 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(203,155,82,.13), transparent 70%),
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,.12) 0,
            rgba(0,0,0,.12) 2px,
            transparent 2px,
            transparent 130px
        ),
        linear-gradient(110deg, #20170f 0%, #302116 45%, #1a120c 100%);
    border: 1px solid rgba(179,137,76,.22);
    box-shadow:
        inset 0 0 45px rgba(0,0,0,.65),
        0 12px 30px rgba(0,0,0,.35);
}

.digital-library-light {
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center top,
        rgba(224,174,96,.11),
        transparent 70%
    );
}

/* =====================================================
   NATIVE FREE SCROLL CAROUSEL
===================================================== */

.digital-library-carousel {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: flex-end;
    width: 100%;
    min-width: 0;
    visibility: visible !important;
    opacity: 1;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.digital-library-carousel::-webkit-scrollbar {
    display: none;
}

.digital-library-carousel.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.digital-library-slide {
    display: block !important;
    flex: 0 0 25%;
    min-width: 0;
    height: 100%;
    padding: 8px 9px 5px;
    visibility: visible !important;
}

.digital-library-slide img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* =====================================================
   MAGAZINE COVER
===================================================== */

.digital-library-book {
    position: relative;
    display: block;
    width: 100%;
    max-width: 245px;
    height: 350px;
    margin: 0 auto;
    background: #17120d;
    text-decoration: none !important;
    box-shadow:
        7px 9px 17px rgba(0,0,0,.58),
        0 0 0 1px rgba(255,255,255,.10);
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        filter .35s ease;
}

/* Dergi gövdesi ve kapak yüzeyi */

.digital-library-cover {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #21180f;
    border: 1px solid rgba(255,226,177,.22);
}

/* Kapak görseli */

.digital-library-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .5s ease;
}

/* Kapak gölgesi */

.digital-library-cover-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.08),
        transparent 25%,
        transparent 75%,
        rgba(0,0,0,.16)
    );
}

/* Kapak metinleri */

.digital-library-cover-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

.digital-library-brand {
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 5px #000;
}

.digital-library-cover-ornament {
    color: #e3c184;
    font-size: 9px;
    letter-spacing: 2px;
}

.digital-library-cover-category {
    color: #fff;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px #000;
}

.digital-library-cover-content h3 {
    max-width: 100%;
    margin: auto 0;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(12px, 1.1vw, 17px);
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,.95);
}

.digital-library-cover-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: #e5c891;
    font-size: 7px;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px #000;
}

/* Derginin sağ kenar kalınlığı */

.digital-library-book-edge {
    position: absolute;
    top: 1px;
    right: -4px;
    bottom: 1px;
    width: 4px;
    background: linear-gradient(90deg, #a18150, #302014);
    box-shadow: 2px 2px 4px rgba(0,0,0,.45);
}

/* =====================================================
   HOVER
===================================================== */

@media (hover: hover) and (pointer: fine) {

    .digital-library-slide {
        transition: transform .35s ease;
    }

    .digital-library-slide:hover {
        transform: translateY(-8px);
        z-index: 5;
    }

    .digital-library-book:hover {
        filter: brightness(1.08);
        box-shadow:
            9px 15px 25px rgba(0,0,0,.72),
            0 0 0 1px rgba(204,165,101,.55);
    }

    .digital-library-book:hover img {
        transform: scale(1.025);
    }
}

/* =====================================================
   CAPTION
===================================================== */

.digital-library-caption {
    padding: 12px 5px 2px;
    text-align: center;
}

.digital-library-date {
    color: #b99a63;
    font-size: 9px;
    letter-spacing: 1.3px;
}

.digital-library-caption h4 {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: #ded4c3;
    font-family: Georgia, serif;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =====================================================
   WOODEN SHELF
===================================================== */

.digital-library-wood {
    position: relative;
    z-index: 3;
    height: 17px;
    margin: 0 -8px;
    background: linear-gradient(
        180deg,
        #a17a49 0%,
        #76512e 22%,
        #49301c 70%,
        #21150c 100%
    );
    box-shadow:
        0 8px 15px rgba(0,0,0,.65),
        inset 0 2px 2px rgba(255,220,160,.3);
}

.digital-library-wood-highlight {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,222,163,.4);
}

.digital-library-wood-front {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(180deg, #281a10, #100b07);
}

.digital-library-wood-bottom {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    height: 2px;
    background: #080604;
}

/* =====================================================
   FOOTER / NAVIGATION
===================================================== */

.digital-library-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 27px;
}

.digital-library-footer-label {
    color: #a99b82;
    font-size: 9px;
    letter-spacing: 1.7px;
}

.library-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: #b99a63;
    box-shadow: 0 0 8px rgba(185,154,99,.7);
}

.digital-library-navigation {
    display: flex;
    align-items: center;
    gap: 9px;
}

.digital-library-navigation button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(184,151,96,.4);
    border-radius: 50%;
    background: rgba(20,17,13,.8);
    color: #c9aa75;
    cursor: pointer;
    transition: all .3s ease;
}

.digital-library-navigation button svg {
    width: 20px;
    height: 20px;
}

.digital-library-navigation button:hover:not(:disabled) {
    background: #b18c54;
    color: #100d08;
    border-color: #b18c54;
}

.digital-library-navigation button:disabled {
    opacity: .35;
    cursor: default;
}

.digital-library-all {
    color: #c7a56e !important;
    font-size: 9px;
    letter-spacing: 1.8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .3s ease;
}

.digital-library-all span {
    margin-left: 6px;
    font-size: 16px;
}

.digital-library-all:hover {
    color: #f1d6a5 !important;
}

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

@media (max-width: 1199px) {
    .digital-library-slide {
        flex-basis: 33.3333%;
    }
}

@media (max-width: 991px) {

    .digital-library-section {
        padding: 38px 0 30px;
    }

    .digital-library-container {
        padding: 0 18px;
    }

    .digital-library-slide {
        flex-basis: 50%;
    }

    .digital-library-book {
        height: 320px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .digital-library-section {
        margin: 20px 0;
        padding: 30px 0 25px;
    }

    .digital-library-container {
        padding: 0 12px;
    }

    .digital-library-header {
        align-items: center;
        margin-bottom: 20px;
    }

    .digital-library-heading h2 {
        font-size: 20px;
        letter-spacing: .8px;
    }

    .digital-library-heading p {
        font-size: 11px;
        line-height: 1.5;
    }

    .digital-library-eyebrow {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .digital-library-counter {
        font-size: 15px;
    }

    .digital-library-shelf-area {
        padding: 12px 8px 0;
    }

    .digital-library-wall {
        padding: 18px 15px 16px;
    }

    .digital-library-slide {
        flex-basis: 85%;
        padding: 8px 5px 5px;
    }

    .digital-library-book {
        max-width: 250px;
        height: 330px;
    }

    .digital-library-cover-content {
        padding: 15px 10px;
    }

    .digital-library-cover-content h3 {
        font-size: 16px;
    }

    .digital-library-caption {
        padding-top: 10px;
    }

    .digital-library-caption h4 {
        font-size: 12px;
    }

    .digital-library-wood {
        height: 14px;
    }

    .digital-library-footer {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 25px;
    }

    .digital-library-footer-label {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .digital-library-navigation {
        gap: 6px;
    }

    .digital-library-navigation button {
        width: 36px;
        height: 36px;
    }

    .digital-library-all {
        font-size: 8px;
        letter-spacing: 1px;
    }
}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 380px) {

    .digital-library-counter {
        display: none;
    }

    .digital-library-heading h2 {
        font-size: 18px;
    }

    .digital-library-footer-label {
        font-size: 7px;
    }

    .digital-library-all {
        font-size: 7px;
    }
}

/* =====================================================
   END
===================================================== */



