/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    pointer-events: none;
}

body.light-mode .reading-progress-container {
    background: rgba(0, 0, 0, 0.05);
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #00d4ff);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* ==========================================================================
   BREADCRUMB NAVIGATION (Visual Display)
   ========================================================================== */

.dcs-breadcrumbs {
    margin: 0 0 20px 0;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.dcs-breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.dcs-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.dcs-breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-muted);
    opacity: 0.5;
}

.dcs-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dcs-breadcrumbs a:hover {
    color: var(--accent-color);
}

.dcs-breadcrumbs .current {
    color: var(--text-main);
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .dcs-breadcrumbs {
        font-size: 12px;
    }
}