/* Minimalist Table of Contents */

/* Mini TOC - Always visible */
.toc-mini {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.toc-mini:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Progress Bar */
.toc-progress {
    position: absolute;
    left: 4px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.toc-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    transition: height 0.3s ease;
    height: 0%;
}

/* Navigation List */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 10px;
    position: relative;
}

.toc-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.toc-link:hover .toc-text {
    opacity: 1;
    transform: translateX(0);
}

/* Dot indicator */
.toc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.toc-link:hover .toc-dot {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.8);
}

.toc-link.active .toc-dot {
    width: 12px;
    height: 12px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Text labels */
.toc-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    white-space: nowrap;
    color: white;
}

.toc-mini:hover .toc-text {
    opacity: 0.9;
    transform: translateX(0);
}

.toc-link.active .toc-text {
    opacity: 1;
    font-weight: 600;
    color: white;
    font-size: 15px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .toc-mini {
        left: 10px;
        padding: 15px 8px;
    }
    
    .toc-list {
        gap: 15px;
    }
    
    .toc-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .toc-mini {
        left: 5px;
        padding: 10px 5px;
        background: transparent;
    }
    
    .toc-dot {
        width: 6px;
        height: 6px;
    }
    
    .toc-link.active .toc-dot {
        width: 10px;
        height: 10px;
    }
}

/* Hide on very small screens */
@media (max-width: 480px) {
    .toc-mini {
        display: none;
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.toc-mini {
    animation: fadeIn 0.6s ease-out;
}