/* --- Base Share Bar Styles --- */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

body.light-mode .reading-progress-bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
}

.reading-progress-bar.is-visible {
    transform: translateY(0);
}

.reading-bar-inner {
    width: 100%;
    max-width: var(--container-width);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    /* Space out title and button */
    /* Prioritize Start/Left */
    gap: 1rem;
}

/* --- Reading Info (Title) --- */
.reading-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    /* Crucial for flex truncation */
    opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .reading-info {
        display: flex !important;
        /* Force show title */
    }

    .reading-label {
        display: none;
        /* Hide 'Reading:' label on mobile to save space */
    }

    .reading-bar-inner {
        padding: 0.6rem 1rem;
    }
}

.reading-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.reading-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Share Actions --- */
.reading-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    /* Square shape with slight radius */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
    cursor: pointer;
    /* Default icon color white for brands */
}

/* Generic / Native Share Button Style */
.share-generic {
    background: #333;
    /* Neutral dark for generic share */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects */
.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.15);
    /* Slightly lighter on hover */
}

/* Desktop Specific Adjustments */
@media (min-width: 1024px) {
    .reading-bar-inner {
        padding: 0.6rem 2rem;
        gap: 2rem;
    }

    .share-btn {
        width: 42px;
        height: 42px;
    }
}