/**
 * Slide Navigator - Reusable CSS for slide navigation panel
 */

.slide-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.slide-nav-overlay.active { display: block; }

.slide-nav-panel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card, #1e293b);
    border-radius: 16px;
    padding: 24px;
    z-index: 1000;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.slide-nav-panel.active { display: block; }

.slide-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text, #f1f5f9);
}

.slide-nav-close {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
}
.slide-nav-close:hover { color: var(--text, #f1f5f9); }

.slide-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.slide-nav-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light, #334155);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
    color: var(--text, #f1f5f9);
}
.slide-nav-item:hover {
    background: var(--primary, #6366f1);
    transform: scale(1.05);
}
.slide-nav-item.current {
    border-color: var(--accent, #10b981);
    background: var(--accent, #10b981);
}
.slide-nav-item .num {
    font-size: 18px;
    font-weight: 700;
}
.slide-nav-item .title {
    font-size: 9px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
    margin-top: 4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.slide-nav-item:hover .title,
.slide-nav-item.current .title {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .slide-nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .slide-nav-panel {
        max-width: 90vw;
        padding: 16px;
    }
}
