/**
 * PiraNOT TTS Player Styles v4 - Mobile First
 * Estilo: Compacto, Mobile-First, Elegante
 * Pop-up amarelo integrado no layout
 */

/* Container principal - MOBILE FIRST */
.piranot-tts-player {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #1976d2;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0 15px;
    color: #424242;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
    isolation: isolate;
    z-index: 10;
    max-width: 100%;
    box-sizing: border-box;
}

/* POP-UP AMARELO - Integrado no topo */
.piranot-tts-player__popup {
    display: inline-block;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #212121;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(255, 193, 7, 0.4);
    animation: pulse-soft 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Conteúdo - Layout horizontal compacto */
.piranot-tts-player__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
    z-index: 15;
}

/* Botão principal - Azul PIRANOT */
.piranot-tts-player__button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1976d2;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
    flex-shrink: 0;
}

.piranot-tts-player__button:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.piranot-tts-player__button--playing {
    background: #388e3c;
}

.piranot-tts-player__button--loading {
    opacity: 0.7;
}

/* Ícone */
.piranot-tts-player__icon {
    font-size: 14px;
}

/* Texto do botão */
.piranot-tts-player__text {
    white-space: nowrap;
}

/* Duração - Estilo discreto */
.piranot-tts-player__duration {
    font-size: 11px;
    color: #757575;
    background: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-family: monospace;
}

/* Barra de progresso - Compacta */
.piranot-tts-player__progress {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.piranot-tts-player__progress-bar {
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.piranot-tts-player__progress-fill {
    height: 100%;
    background: #1976d2;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.piranot-tts-player__time {
    display: block;
    font-size: 10px;
    color: #9e9e9e;
    margin-top: 3px;
    text-align: right;
    font-family: monospace;
}

/* Elemento de áudio */
.piranot-tts-player__audio {
    display: none;
}

/* DESKTOP - Ajustes maiores */
@media (min-width: 768px) {
    .piranot-tts-player {
        padding: 10px 16px;
    }
    
    .piranot-tts-player__popup {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .piranot-tts-player__button {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .piranot-tts-player__icon {
        font-size: 16px;
    }
}

/* Esconder elementos que podem conter anúncios */
.piranot-tts-player iframe,
.piranot-tts-player ins,
.piranot-tts-player .adsbygoogle {
    display: none !important;
}
