/* Arthii TTS Plugin Styles */

.arthii-tts-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #A3A5A9;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.arthii-tts-button:hover {
    color: #007cba;
    text-decoration: none;
}

/* Modal styles */
.arthii-tts-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.arthii-tts-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: tts-modal-appear 0.3s ease-out;
    position: relative;
}

@keyframes tts-modal-appear {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.arthii-tts-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Barra de progreso */
.arthii-tts-progress-container {
    margin-bottom: 20px;
}

.arthii-tts-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.arthii-tts-progress {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #0096d6);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.arthii-tts-progress-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.arthii-tts-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.arthii-tts-stop-container {
    display: flex;
    justify-content: center;
}

.arthii-tts-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    touch-action: manipulation;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.arthii-tts-btn:hover {
    background: #005a87;
}

.arthii-tts-btn:active {
    background: #004a73;
}

.arthii-tts-btn-nav {
    background: #6c757d;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.arthii-tts-btn-nav:hover {
    background: #5a6268;
}

.arthii-tts-btn-nav:active {
    background: #4e555b;
}

.arthii-tts-btn-stop {
    background: #dc3545;
    border-radius: 6px;
    width: auto;
    height: auto;
    padding: 12px 24px;
    font-size: 14px;
}

.arthii-tts-btn-stop:hover {
    background: #c82333;
}

.arthii-tts-btn-stop:active {
    background: #b21e2f;
}

.arthii-tts-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.arthii-tts-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Responsive */
@media (max-width: 480px) {
    .arthii-tts-modal {
        padding: 10px;
    }
    
    .arthii-tts-modal-content {
        padding: 20px;
        margin: 0;
        width: 100%;
        max-width: none;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 60vh;
        animation: tts-modal-slide-up 0.3s ease-out;
    }
    
    @keyframes tts-modal-slide-up {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .arthii-tts-controls {
        gap: 15px;
    }
    
    .arthii-tts-btn {
        width: 56px;
        height: 56px;
        padding: 16px;
    }
    
    .arthii-tts-btn-nav {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
    
    .arthii-tts-btn-stop {
        width: 80%;
        margin-top: 10px;
        padding: 16px 24px;
        font-size: 16px;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) {
    .arthii-tts-btn:hover {
        background: #007cba;
        transform: none;
    }
    
    .arthii-tts-btn-stop:hover {
        background: #dc3545;
    }
}