/**
 * Omaaa Teleprompter & Smooth Auto-Scroll Reader (पाठ सहायक)
 * Designed for comfortable, hands-free recitation of holy books, chalisas, aartis and mantras.
 */

.teleprompter-dock {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(26, 12, 6, 0.94);
    border: 1.5px solid #d97706;
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 6px 14px;
    max-width: 95vw;
    width: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
}

@media (max-width: 768px) {
    .teleprompter-dock {
        bottom: 74px; /* Sits above the 5-item mobile bottom navigation bar */
        padding: 5px 10px;
        border-radius: 24px;
        width: 94vw;
        max-width: 440px;
    }
}

.teleprompter-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .teleprompter-inner {
        gap: 6px;
    }
}

/* Play / Pause Toggle Button */
.teleprompter-btn-play {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a0c06;
    border: none;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.4);
    transition: all 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.teleprompter-btn-play:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
}

.teleprompter-btn-play.is-playing {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.4);
    animation: teleprompterPulse 1.8s infinite alternate ease-in-out;
}

@keyframes teleprompterPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

.teleprompter-icon {
    font-size: 14px;
}

/* Speed Pills Group */
.teleprompter-speed-group {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.teleprompter-speed-pill {
    background: transparent;
    color: #e5e7eb;
    border: none;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.teleprompter-speed-pill:hover {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.12);
}

.teleprompter-speed-pill.active {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Font Size Scaling Buttons (A- / A+) */
.teleprompter-font-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.teleprompter-btn-sm {
    background: rgba(255, 255, 255, 0.1);
    color: #fef08a;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.teleprompter-btn-sm:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #ffffff;
}

/* Close button */
.teleprompter-btn-close {
    background: transparent;
    color: #9ca3af;
    border: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: color 0.15s;
}

.teleprompter-btn-close:hover {
    color: #ef4444;
}

/* Floating minimized toggle trigger when closed */
.teleprompter-trigger-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 998;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: 1.5px solid #fef08a;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .teleprompter-trigger-btn {
        bottom: 74px;
        right: 14px;
        padding: 6px 12px;
        font-size: 11px;
    }
}

.teleprompter-trigger-btn:hover {
    transform: scale(1.05);
}

/* Progress Fill Bar across the top edge of dock */
.teleprompter-progress-track {
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.teleprompter-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    transition: width 0.15s linear;
}

/* Reading Verse Accent Focus */
.verse-reading-active {
    background: #fffbeb !important;
    border-left: 6px solid #d97706 !important;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.15) !important;
    transition: background 0.3s ease, border-left 0.3s ease;
}
