/**
 * PPS Core Styles v2.0
 * Main system styles and base setup
 * All system classes use pps- prefix
 */

/* ========================================
   1. CSS VARIABLES
   ======================================== */

:root {
    /* System sizes */
    --pps-controls-size: 56px;
    --pps-controls-size-small: 45px;
    --pps-controls-backdrop: rgba(255, 255, 255, 0.1);
    --pps-controls-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --pps-controls-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
    
    /* System z-indexes */
    --pps-z-loader: 9999;
    --pps-z-navigation: 1000;
    --pps-z-controls: 1001;
    --pps-z-dropdown: 1002;
    --pps-z-hints: 999;
    
    /* These will be overridden by themes */
    --pps-card-bg: rgba(255, 255, 255, 0.95);
    --pps-accent-color: #0066cc;
    --pps-text-primary: #212529;
    --pps-text-secondary: #6c757d;
    --pps-bg-secondary: #f8f9fa;
    --pps-border-light: #e9ecef;
    
    /* Transitions */
    --pps-transition: all 0.3s ease;
    --pps-transition-fast: all 0.15s ease;
    --pps-transition-slow: all 0.5s ease;
}

/* ========================================
   2. RESET & BASE
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--pps-text-primary);
    overflow: hidden;
    transition: var(--pps-transition);
}

/* ========================================
   3. CONTAINER & LAYOUT
   ======================================== */

.pps-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.pps-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pps-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pps-slide-active {
    opacity: 1;
}

.pps-slide-visible {
    opacity: 1;
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */

.pps-hidden {
    display: none !important;
}

.pps-invisible {
    visibility: hidden !important;
}

.pps-loading body {
    overflow: hidden;
}

.pps-ready body {
    overflow: hidden;
}

/* ========================================
   5. RESPONSIVE BASE
   ======================================== */

@media (max-width: 768px) {
    :root {
        --pps-controls-size: 48px;
        --pps-controls-size-small: 40px;
    }
    
    .pps-slide {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .pps-slide {
        padding: 20px;
    }
}

/* ========================================
   6. PRINT STYLES
   ======================================== */

@media print {
    .pps-navigation,
    .pps-theme-switcher,
    .pps-audio-player,
    .pps-info-panel,
    .pps-hints {
        display: none !important;
    }
}
/* Height Warning Modal */
.pps-height-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* animation: fadeIn 0.3s ease;  */
}

.pps-height-warning-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pps-height-warning-content h3 {
    margin-top: 0;
    color: #0066cc;
}

.pps-height-warning-content button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.pps-height-warning-content button:hover {
    background: #0052a3;
}

.pps-height-warning-list {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}
