/* ═══════════════════════════════════════════════════════════════
   PRESENTATION PAGE - VERTICAL SCROLLABLE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.presentation-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    position: relative;
}

/* Header Section */
.presentation-header {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1729 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #d4af37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 100;
}

.presentation-header h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    color: #ffd700;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 180, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.presentation-subtitle {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.presentation-intro {
    font-size: 14px;
    color: #b0b0b0;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Control Buttons */
.presentation-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.control-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0a0e27;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

/* Presentation Viewer - Main Container */
.presentation-viewer {
    width: 100%;
    height: calc(100vh - 250px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #000;
    position: relative;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.presentation-viewer::-webkit-scrollbar {
    width: 12px;
}

.presentation-viewer::-webkit-scrollbar-track {
    background: #1a1f3a;
    border-left: 2px solid #d4af37;
}

.presentation-viewer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border-radius: 6px;
    border: 2px solid #1a1f3a;
}

.presentation-viewer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

/* Slides Container - Vertical Layout */
.presentation-slides {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100%;
    padding: 0;
    margin: 0;
}

/* Individual Slide */
.presentation-slide {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.slide-image {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: top;
}

/* No Slides Message */
.no-slides {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #b0b0b0;
    font-size: 18px;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(26, 31, 58, 0.8);
    z-index: 101;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Floating Scroll to Top Button */
.floating-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #0a0e27;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    z-index: 102;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.7);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.floating-top-btn svg {
    width: 24px;
    height: 24px;
}

/* RTL Support */
[dir="rtl"] .floating-top-btn {
    right: auto;
    left: 30px;
}

/* Fullscreen Mode */
.presentation-viewer.fullscreen-mode {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.presentation-viewer:fullscreen {
    height: 100vh;
}

.presentation-viewer:-webkit-full-screen {
    height: 100vh;
}

.presentation-viewer:-moz-full-screen {
    height: 100vh;
}

.presentation-viewer:-ms-fullscreen {
    height: 100vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .presentation-header h1 {
        font-size: 24px;
    }
    
    .presentation-subtitle {
        font-size: 16px;
    }
    
    .presentation-intro {
        font-size: 13px;
    }
    
    .presentation-viewer {
        height: calc(100vh - 280px);
    }
    
    .control-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .floating-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    [dir="rtl"] .floating-top-btn {
        right: auto;
        left: 20px;
    }
}

/* Print Styles */
@media print {
    .presentation-header,
    .presentation-controls,
    .scroll-progress-container,
    .floating-top-btn {
        display: none;
    }
    
    .presentation-viewer {
        height: auto;
        overflow: visible;
    }
    
    .presentation-slides {
        page-break-inside: avoid;
    }
    
    .presentation-slide {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}

/* Loading Animation */
@keyframes slideLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.presentation-slide {
    animation: slideLoad 0.5s ease-out;
}

/* Smooth Transitions */
.presentation-viewer {
    transition: height 0.3s ease;
}

/* Accessibility */
.control-btn:focus,
.floating-top-btn:focus {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .presentation-header {
        border-bottom-width: 5px;
    }
    
    .control-btn,
    .floating-top-btn {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .presentation-viewer {
        scroll-behavior: auto;
    }
    
    .control-btn,
    .floating-top-btn,
    .presentation-slide {
        animation: none;
        transition: none;
    }
}
