/* ===============================================
   Reading time
   =============================================== */

.reading-time-estimate {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    padding: 8px 12px;
    background-color: #fafafa;
    border-left-style: solid;
    border-left-width: 3px;
    border-left-color: #ff6644;
    border-radius: 3px;
}

/* ===============================================
   Progress bar
   =============================================== */

#reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 10px;
    background: #fff;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

#reading-progress-container.visible {
    opacity: 1;
}

body.logged-in #reading-progress-container {
    top: 32px;
}

@media screen and (max-width: 600px) {
    body.logged-in #reading-progress-container {
        top: 0;
    }
}

@media screen and (min-width: 601px) and (max-width: 782px) {
    body.logged-in #reading-progress-container {
        top: 46px;
    }
}

#reading-progress-bar {
    height: 100%;
    background-color: #ff6644;
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0;
}

@keyframes progressPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

#reading-progress-bar.loading {
    animation: progressPulse 1.5s infinite;
}

@media (max-width: 768px) {
    .reading-time-estimate {
        font-size: 13px;
        margin: 8px 0;
        padding: 6px 10px;
    }

    #reading-progress-container {
        height: var(--rtp-bar-height, 6px);
    }
}
