/* ============================================
   PDF Slideshow Viewer Styles with Fullscreen
   Clean and professional design for product documentation
   ============================================ */

.pdf-slideshow-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Header Section */
.pdf-slideshow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
}

.pdf-slideshow-header h3 {
    margin: 0;
    font-size: 26px;
    color: #23282d;
    font-weight: 600;
}

.pdf-slideshow-page-info {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    background: #f0f0f1;
    padding: 8px 16px;
    border-radius: 4px;
}

.pdf-slideshow-page-info .current-page {
    color: #0073aa;
    font-weight: 700;
}

/* Viewer Container */
.pdf-slideshow-viewer {
    width: 100%;
    height: 700px;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   FULLSCREEN BUTTON
   ============================================ */

.pdf-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 115, 170, 0.95);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pdf-fullscreen-btn:hover {
    background: rgba(0, 81, 119, 0.95);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pdf-fullscreen-btn:active {
    transform: scale(0.95);
}

.pdf-fullscreen-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

/* ============================================
   FULLSCREEN MODE STYLES
   ============================================ */

.pdf-slideshow-container.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    z-index: 999999;
    background: #1a1a1a;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-header {
    background: #2d2d2d;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 2px solid #0073aa;
    border-radius: 0;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-header h3 {
    color: #fff;
    font-size: 22px;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-page-info {
    background: #444;
    color: #fff;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-page-info .current-page {
    color: #4da6ff;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-viewer {
    height: calc(100vh - 180px);
    border: none;
    border-radius: 0;
    background: #000;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-controls {
    background: #2d2d2d;
    padding: 15px 20px;
    margin: 0;
    border-top: 2px solid #444;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-download {
    background: #2d2d2d;
    margin: 0;
    padding: 15px 20px;
    border-top: 1px solid #444;
}

.pdf-slideshow-container.fullscreen-mode .pdf-fullscreen-btn {
    background: rgba(220, 53, 69, 0.95);
}

.pdf-slideshow-container.fullscreen-mode .pdf-fullscreen-btn:hover {
    background: rgba(200, 35, 51, 0.95);
}

/* Change icon in fullscreen mode */
.pdf-slideshow-container.fullscreen-mode .pdf-fullscreen-btn .dashicons-fullscreen-alt::before {
    content: "\f506"; /* dashicons-fullscreen-exit-alt */
}

/* Exit fullscreen hint */
.pdf-slideshow-container.fullscreen-mode::after {
    content: "Press ESC or F to exit fullscreen";
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
    z-index: 1000000;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* ============================================
   CONTROLS SECTION
   ============================================ */

.pdf-slideshow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.pdf-btn {
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pdf-btn:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.pdf-btn:active {
    transform: translateY(0);
}

.pdf-btn:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pdf-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* Jump To Controls */
.pdf-jump-to {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f1;
    padding: 8px 15px;
    border-radius: 5px;
}

.pdf-jump-to label {
    font-weight: 600;
    color: #23282d;
    margin: 0;
}

.pdf-jump-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.pdf-jump-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.pdf-btn-jump {
    padding: 8px 16px;
    font-size: 14px;
}

/* Fullscreen mode control adjustments */
.pdf-slideshow-container.fullscreen-mode .pdf-jump-to {
    background: #444;
}

.pdf-slideshow-container.fullscreen-mode .pdf-jump-to label {
    color: #fff;
}

.pdf-slideshow-container.fullscreen-mode .pdf-jump-input {
    background: #555;
    border-color: #666;
    color: #fff;
}

.pdf-slideshow-container.fullscreen-mode .pdf-jump-input:focus {
    border-color: #0073aa;
    background: #666;
}

/* Download Section */
.pdf-slideshow-download {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f1;
}

.pdf-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #2ecc71;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.pdf-download-link:hover {
    background: #27ae60;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.4);
}

.pdf-download-link:active {
    transform: translateY(0);
}

.pdf-download-link .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .pdf-slideshow-container {
        padding: 15px;
        margin: 15px 10px;
    }

    .pdf-slideshow-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pdf-slideshow-header h3 {
        font-size: 20px;
    }

    .pdf-slideshow-page-info {
        font-size: 14px;
    }

    .pdf-slideshow-viewer {
        height: 500px;
    }

    .pdf-fullscreen-btn {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }

    .pdf-fullscreen-btn .dashicons {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }

    .pdf-slideshow-controls {
        flex-direction: column;
        gap: 12px;
    }

    .pdf-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .pdf-jump-to {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .pdf-download-link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    /* Fullscreen on mobile */
    .pdf-slideshow-container.fullscreen-mode .pdf-slideshow-viewer {
        height: calc(100vh - 160px);
    }
}

@media (max-width: 480px) {
    .pdf-slideshow-viewer {
        height: 400px;
    }

    .pdf-slideshow-header h3 {
        font-size: 18px;
    }

    .pdf-btn {
        font-size: 14px;
        padding: 12px 16px;
    }

    .pdf-jump-input {
        width: 70px;
        font-size: 14px;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.pdf-slideshow-viewer::before {
    content: "Loading PDF...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 18px;
    font-weight: 600;
    z-index: 1;
    pointer-events: none;
}

.pdf-slideshow-container.fullscreen-mode .pdf-slideshow-viewer::before {
    color: #999;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .pdf-slideshow-controls,
    .pdf-slideshow-download,
    .pdf-fullscreen-btn {
        display: none;
    }

    .pdf-slideshow-container {
        box-shadow: none;
        padding: 0;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.pdf-btn:focus,
.pdf-fullscreen-btn:focus,
.pdf-jump-input:focus,
.pdf-download-link:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pdf-slideshow-container {
        border: 2px solid #000;
    }

    .pdf-btn {
        border: 2px solid #000;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .pdf-btn,
    .pdf-fullscreen-btn,
    .pdf-download-link {
        transition: none;
        transform: none !important;
    }

    .pdf-slideshow-container.fullscreen-mode::after {
        animation: none;
        opacity: 1;
    }
}
