﻿.newspaper-card-scoped {
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    margin: 0;
    padding: 0;
}

    .newspaper-card-scoped img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

.section-prev-next.eNewsPaper-head {
    padding-bottom: 20px !important;
}

@media (max-width: 767px) {
    .section-pn-time-text {
        display: none;
    }
}

/* ==================== PDF ZOOM CONTROLS ==================== */
.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

    .pdf-controls button {
        border: none;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 18px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .pdf-controls button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .pdf-controls button:active {
            transform: translateY(0);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }

    .pdf-controls #zoom-level {
        min-width: 60px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
        color: #333;
        background: #f5f5f5;
        padding: 8px 12px;
        border-radius: 8px;
    }

/* PDF Viewer Container - Desktop (1290px üstü) */
.newspaper-zoom__panzoom {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    touch-action: none;
}

.panzoom-parent {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

canvas#pdf-canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Tablet (768px - 1290px) */
@media (max-width: 1290px) {
    .newspaper-zoom__panzoom {
        height: 70vh;
    }
}

/* Mobil - Büyük (481px - 768px) */
@media (max-width: 768px) {
    .newspaper-zoom__panzoom {
        height: calc(100vh - 180px);
        border-radius: 8px;
        border: 2px solid #e0e0e0;
    }
    .pdf-controls button {
        padding: 8px 12px;
        font-size: 16px;
        min-width: 42px;
        min-height: 42px;
    }

    .pdf-controls #zoom-level {
        min-width: 50px;
        font-size: 13px;
        padding: 6px 10px;
        writing-mode: horizontal-tb;
    }


        .section-prev-next.eNewsPaper-footer a {
            flex: 1;
            max-width: 120px;
        }
}

/* Mobil - Küçük (480px ve altı) */
@media (max-width: 480px) {
    .pdf-controls {
        top: 5px;
        gap: 6px;
        padding: 6px;
        max-width: 95%;
    }

        .pdf-controls button {
            padding: 6px 10px;
            font-size: 14px;
            min-width: 38px;
            min-height: 38px;
        }

        .pdf-controls #zoom-level {
            min-width: 45px;
            font-size: 12px;
            padding: 5px 8px;
        }

    .newspaper-zoom__panzoom {
        height: calc(100vh - 160px);
        margin-top: 0px;
    }
    .section-prev-next a.prev::before,
    .section-prev-next a.next::after {
        width: 22px !important;
        height: 16px !important;
        display: inline-block;
        background-size: contain;
        background-repeat: no-repeat;
    }

    /* Tüm prev-next yapısı */
    .section-prev-next a {
        display: inline-flex; /* Ekledim: ikon + yazı hizalansın */
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important; /* Yazı ve ikon arası boşluk */
    }

    /* Sadece next için özel durum */
    .section-prev-next a.next::after {
        content: ""; /* ikon zaten CSS ile geliyor */
        order: 2; /* ikonu en sağa taşır */
    }

    /* Sadece prev için ikon solda kalacak */
    .section-prev-next a.prev::before {
        content: "";
        order: 0;
    }



}

/* Touch Feedback */
@media (hover: none) and (pointer: coarse) {
    .pdf-controls button:active {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: scale(0.95);
    }
}

/* Grab cursor */
.panzoom-parent {
    cursor: grab;
}

    .panzoom-parent:active {
        cursor: grabbing;
    }

#current-page-number {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    display: inline-block;
}

@media (max-width: 768px) {
    #current-page-number {
        font-size: 14px;
        padding: 6px 12px;
        background: rgba(245, 245, 245, 0.95);
        backdrop-filter: blur(10px);
    }
}

/* Canvas scroll engelleme */
.newspaper-zoom__panzoom * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

