/* Presentation/Slideshow Styles */

.presentation-mode {
    overflow: hidden;
}

.presentation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.presentation-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.btn-exit {
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-exit:hover {
    background: rgba(231, 76, 60, 1);
}

.presentation-nav-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-nav-small {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-nav-small:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-nav-small:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.presentation-info {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

.presentation-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

.btn-fullscreen:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-fullscreen svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.slide-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 50px 60px 60px 60px;
    overflow: hidden;
}

.slide-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#slide-canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.slide-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.1rem;
    font-family: var(--font-sans);
}

.slide-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
    backdrop-filter: blur(10px);
}

.slide-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.slide-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-nav-left {
    left: 20px;
}

.slide-nav-right {
    right: 20px;
}

.slide-nav-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.presentation-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.keyboard-shortcuts {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: var(--font-sans);
}

.shortcut-hint {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Fullscreen adjustments */
:fullscreen .presentation-controls,
:fullscreen .presentation-footer {
    background: rgba(0, 0, 0, 0.9);
}

:fullscreen .slide-viewer {
    padding: 100px 120px 120px 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .presentation-controls {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .btn-exit {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .presentation-info {
        font-size: 0.9rem;
    }
    
    .slide-viewer {
        padding: 60px 50px 80px 50px;
    }
    
    .slide-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .slide-nav-left {
        left: 10px;
    }
    
    .slide-nav-right {
        right: 10px;
    }
    
    .slide-nav-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .keyboard-shortcuts {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    
    .shortcut-hint {
        padding: 0.2rem 0.5rem;
    }
}

/* Hide header in presentation mode */
.presentation-mode .site-header {
    display: none;
}

.presentation-mode .main-content {
    padding: 0;
    margin: 0;
}

