/**
 * Premium Flip PDF Builder - Responsive Breakpoints CSS
 * Desktop, Tablet, and Mobile Adaptations.
 *
 * @package PremiumFlipPDF
 */

/* Desktop / Large Displays (>= 1024px) */
@media (min-width: 1024px) {
    .pfpf-btn-mobile-more {
        display: none !important;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .pfpf-toolbar-center {
        max-width: 280px;
        margin: 0 10px;
    }

    .pfpf-nav {
        width: 40px;
        height: 40px;
    }

    .pfpf-nav-prev { left: 10px; }
    .pfpf-nav-next { right: 10px; }

    .pfpf-btn[data-tooltip]::after {
        display: none; /* disable hover tooltips on touch/tablets */
    }
}

/* Mobile Screens (<= 767px) */
@media (max-width: 767px) {
    .pfpf-viewer {
        height: 600px;
        min-height: 400px;
    }

    .pfpf-header {
        height: 42px;
        padding: 0 12px;
    }

    .pfpf-toolbar {
        height: 48px;
        padding: 0 10px;
    }

    .pfpf-toolbar-center {
        display: none; /* Hide scrubber on small mobile screens */
    }

    .pfpf-toolbar-left {
        min-width: auto;
    }

    .pfpf-page-counter {
        font-size: 12px;
    }

    /* Hide less critical desktop toolbar buttons on mobile */
    .pfpf-btn-print,
    .pfpf-btn-search,
    .pfpf-btn-share,
    .pfpf-btn-download {
        display: none !important;
    }

    .pfpf-btn-mobile-more {
        display: flex !important;
    }

    .pfpf-nav {
        width: 36px;
        height: 36px;
        background: rgba(22, 26, 35, 0.85);
    }

    .pfpf-nav svg {
        width: 18px;
        height: 18px;
    }

    .pfpf-nav-prev { left: 6px; }
    .pfpf-nav-next { right: 6px; }

    .pfpf-thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .pfpf-flipper {
        display: none !important;
    }

    .pfpf-book,
    .pfpf-toolbar,
    .pfpf-modal,
    .pfpf-modal-dialog {
        transition: none !important;
        animation: none !important;
    }
}
