/* ==========================================================================
   READ PAGE ENGINE CSS
   ========================================================================== */

.readpage-warning {
    position: fixed;
    bottom: 3vmin;
    right: 3vmin;
    background: #ffffff;
    padding: 1.6vmin 2.4vmin;
    border-radius: 1vmin;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.8vmin;
    font-weight: 700;
    color: #444;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999999;
}

.readpage-warning.visible {
    opacity: 1;
    transform: translateY(0);
}

.voice-btn,
.mute-btn {
    position: fixed;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.voice-btn {
    top: 11.5vmin;
    left: 3.8vmin;
    width: 5.5vmin;
    height: 5.5vmin;
}

.mute-btn {
    top: 18.5vmin;
    left: 3.3vmin;
    width: 6vmin;
    height: 6vmin;
}

.voice-btn img,
.mute-btn img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.voice-btn:hover,
.mute-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Tooltips */
.voice-btn::before,
.mute-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 120%;
    transform: translateY(-50%) scale(0.8);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    font-size: 1.6vmin;
    color: #6a6a6a;
    white-space: nowrap;
    background: #FFFFFF;
    padding: 0.8vmin 1.6vmin;
    border-radius: 0.8vmin;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99999;
}

.voice-btn:hover::before,
.voice-btn:focus-visible::before,
.mute-btn:hover::before,
.mute-btn:focus-visible::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}
