/**
 * PPS Controls Styles v2.0
 * Theme switcher, audio player, info panel
 */

/* ========================================
   THEME SWITCHER
   ======================================== */

.pps-theme-switcher {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: var(--pps-z-controls);
}

.pps-theme-toggle {
    width: var(--pps-controls-size);
    height: var(--pps-controls-size);
    border: none;
    border-radius: 50%;
    background: var(--pps-card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--pps-controls-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pps-transition);
}

.pps-theme-toggle:hover {
    transform: scale(1.05) rotate(180deg);
    box-shadow: var(--pps-controls-shadow-hover);
}

.pps-theme-dots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 24px;
    justify-content: center;
}

.pps-theme-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pps-theme-dropdown {
    position: absolute;
    top: 70px;
    left: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--pps-transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.pps-theme-switcher.pps-active .pps-theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pps-theme-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: transparent !important;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333 !important;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    text-align: left;
}

.pps-theme-option:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.pps-theme-option.pps-active {
    background: #0066cc !important;
    color: white !important;
}

/* Theme color indicators */
.pps-theme-option::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Corporate theme - světle modrá */
.pps-theme-option[data-pps-theme="corporate"]::before {
    background: #0066cc;
}

/* Modern theme - fialová */
.pps-theme-option[data-pps-theme="modern"]::before {
    background: #8b5cf6;
}

/* Enterprise theme - tmavě modrá */
.pps-theme-option[data-pps-theme="enterprise"]::before {
    background: #3b82f6;
}

/* Ocean theme - tyrkysová */
.pps-theme-option[data-pps-theme="ocean"]::before {
    background: #0ea5e9;
}

/* Forest theme - zelená */
.pps-theme-option[data-pps-theme="forest"]::before {
    background: #22c55e;
}

/* Sunset theme - oranžová */
.pps-theme-option[data-pps-theme="sunset"]::before {
    background: #fb923c;
}

/* Midnight theme - tmavě fialová */
.pps-theme-option[data-pps-theme="midnight"]::before {
    background: #6366f1;
}

/* Dark theme - tmavě šedá */
.pps-theme-option[data-pps-theme="dark"]::before {
    background: #1f2937;
}

/* Creative theme - gradient */
.pps-theme-option[data-pps-theme="creative"]::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Active theme check mark */
.pps-theme-option.pps-active::after {
    content: '✓';
    position: absolute;
    right: 12px;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* ========================================
   AUDIO PLAYER
   ======================================== */

.pps-audio-player {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: var(--pps-z-controls);
}

.pps-audio-toggle {
    width: var(--pps-controls-size);
    height: var(--pps-controls-size);
    border: none;
    border-radius: 50%;
    background: var(--pps-card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--pps-controls-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pps-transition);
    color: var(--pps-accent-color);
}

.pps-audio-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--pps-controls-shadow-hover);
}

.pps-audio-toggle.pps-playing {
    animation: pps-audio-playing 2s ease-in-out infinite;
}

@keyframes pps-audio-playing {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
    }
    50% { 
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }
}

/* ========================================
   INFO PANEL
   ======================================== */

.pps-info-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: var(--pps-z-controls);
}

.pps-info-toggle {
    width: var(--pps-controls-size);
    height: var(--pps-controls-size);
    border: none;
    border-radius: 50%;
    background: var(--pps-card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--pps-controls-shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pps-transition);
    color: var(--pps-accent-color);
}

.pps-info-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--pps-controls-shadow-hover);
}

.pps-info-dropdown {
    position: absolute;
    bottom: 0;
    left: 70px;
    background: var(--pps-card-bg);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 10px 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: var(--pps-transition);
    font-size: 0.8rem !important;
}

.pps-info-panel.pps-active .pps-info-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.pps-info-dropdown p {
    margin: 0;
    color: var(--pps-text-secondary);
    font-size: 0.8rem !important;
    line-height: 1.4;
}

.pps-info-dropdown p:last-child {
    margin-bottom: 0;
}

.pps-info-dropdown a {
    color: var(--pps-accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: inherit !important;
    display: inline;
    padding: 0;
    margin: 0;
}

.pps-info-dropdown a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* ========================================
   DARK THEME OVERRIDES FOR DROPDOWN
   ======================================== */

.pps-theme-dark .pps-theme-dropdown,
.pps-theme-midnight .pps-theme-dropdown {
    background: rgba(31, 41, 55, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

.pps-theme-dark .pps-theme-option,
.pps-theme-midnight .pps-theme-option {
    color: #e5e7eb;
}

.pps-theme-dark .pps-theme-option:hover,
.pps-theme-midnight .pps-theme-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   CORPORATE THEME OVERRIDES
   ======================================== */

.pps-theme-corporate .pps-theme-toggle,
.pps-theme-corporate .pps-audio-toggle,
.pps-theme-corporate .pps-info-toggle {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pps-theme-corporate .pps-theme-toggle:hover,
.pps-theme-corporate .pps-audio-toggle:hover,
.pps-theme-corporate .pps-info-toggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pps-theme-corporate .pps-info-dropdown {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .pps-theme-switcher {
        top: 15px;
        left: 15px;
    }
    
    .pps-audio-player {
        top: 15px;
        right: 15px;
    }
    
    .pps-info-panel {
        bottom: 15px;
        left: 15px;
    }
    
    .pps-theme-toggle,
    .pps-audio-toggle,
    .pps-info-toggle {
        width: 48px;
        height: 48px;
    }
    
    .pps-info-dropdown {
        left: 60px;
    }
    
    .pps-theme-dropdown {
        min-width: 180px;
    }
    
    .pps-theme-option {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .pps-theme-option::before {
        width: 16px;
        height: 16px;
    }
}
