/* ============================================================
   Rádio Player Pro — Studio CSS | rp-studio.css
   Lightbox de chamada + painel do locutor
   ============================================================ */

/* ── Utilitário ────────────────────────────────────────────── */
.rp-studio-hidden { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX DE CHAMADA ENTRANTE
   Cobre a tela inteira como um telefonema
   ══════════════════════════════════════════════════════════════ */
#rp-studio-call-overlay {
    position: fixed !important;
    inset: 0;
    z-index: 2147483647 !important; /* máximo possível — acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rp-studio-fade-in 0.3s ease;
}

@keyframes rp-studio-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Fundo desfocado */
.rp-call-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Caixa central da chamada */
.rp-call-box {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 28px;
    padding: 48px 40px 36px;
    width: 360px;
    max-width: calc(100vw - 40px);
    text-align: center;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
    animation: rp-call-box-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rp-call-box-in {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to   { transform: scale(1) translateY(0);       opacity: 1; }
}

/* ── Foto + anéis pulsantes ──────────────────────────────────── */
.rp-call-rings {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

/* Anéis animados ao redor da foto */
.rp-call-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.6);
    animation: rp-ring-pulse 2s ease-out infinite;
}
.rp-ring-1 { animation-delay: 0s;    }
.rp-ring-2 { animation-delay: 0.6s;  }
.rp-ring-3 { animation-delay: 1.2s;  }

@keyframes rp-ring-pulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    100% { transform: scale(1.85); opacity: 0;   }
}

#rp-call-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(139, 92, 246, 0.7);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
    background: #1e1b4b;
}

/* ── Textos ──────────────────────────────────────────────────── */
.rp-call-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #a78bfa;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#rp-call-name {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    font-family: -apple-system, "Segoe UI", sans-serif;
}

#rp-call-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 28px;
}

/* ── Timer ao vivo ───────────────────────────────────────────── */
.rp-call-live-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.rp-call-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: rp-live-blink 1s infinite;
    flex-shrink: 0;
}
@keyframes rp-live-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

/* ── Botões de ação ──────────────────────────────────────────── */
.rp-call-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.rp-call-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.2s;
    font-family: -apple-system, "Segoe UI", sans-serif;
    color: #fff;
}
.rp-call-btn:active { transform: scale(0.92); }

/* Rejeitar — vermelho */
.rp-call-reject {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}
.rp-call-reject:hover {
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.7);
    transform: translateY(-2px);
}

/* Atender — verde, maior, pulsando */
.rp-call-answer {
    width: 86px;
    height: 86px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 24px rgba(22, 163, 74, 0.55);
    animation: rp-answer-pulse 1.5s ease-in-out infinite;
}
.rp-call-answer:hover {
    box-shadow: 0 8px 32px rgba(22, 163, 74, 0.8);
    transform: translateY(-3px);
    animation: none;
}
@keyframes rp-answer-pulse {
    0%,100% { box-shadow: 0 6px 24px rgba(22,163,74,0.55); }
    50%      { box-shadow: 0 6px 40px rgba(22,163,74,0.9), 0 0 0 10px rgba(22,163,74,0.15); }
}

/* Botão mute na ligação ativa */
.rp-call-mute-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
}
.rp-call-mute-btn:hover {
    background: rgba(255,255,255,0.22);
}
.rp-call-muted {
    background: rgba(239,68,68,0.2) !important;
    border-color: rgba(239,68,68,0.4) !important;
}

/* ── Rótulos abaixo dos botões ───────────────────────────────── */
.rp-call-btn::after { display: none; } /* sem label por padrão */

/* ══════════════════════════════════════════════════════════════
   PAINEL DO LOCUTOR (shortcode [rp_studio_locutor])
   ══════════════════════════════════════════════════════════════ */
#rp-studio-locutor-panel {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(160deg, #0f172a, #1e1b4b);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    overflow: hidden;
    font-family: -apple-system, "Segoe UI", sans-serif;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.rp-sl-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.2);
}

.rp-sl-avatar {
    position: relative;
    flex-shrink: 0;
}
.rp-sl-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139,92,246,0.5);
}
.rp-sl-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    background: #64748b;
    transition: background 0.3s;
}
.rp-sl-status-dot.dot-calling { background: #f59e0b; animation: rp-dot-blink 0.7s infinite; }
.rp-sl-status-dot.dot-live    { background: #22c55e; animation: rp-dot-blink 1.2s infinite; }
@keyframes rp-dot-blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.rp-sl-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
#rp-sl-status-txt {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.rp-sl-body {
    padding: 28px 28px 20px;
}

/* Visualizador de áudio */
#rp-sl-visualizer {
    width: 100%;
    height: 60px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
    display: block;
    margin-bottom: 24px;
}

.rp-sl-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.rp-sl-hidden { display: none !important; }

/* Botão "Falar ao Vivo" */
.rp-sl-btn-live {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 6px 24px rgba(124,58,237,0.5);
    transition: transform 0.15s, box-shadow 0.2s;
    animation: rp-live-btn-pulse 2.5s infinite;
    font-family: inherit;
}
.rp-sl-btn-live:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(124,58,237,0.7);
    animation: none;
}
@keyframes rp-live-btn-pulse {
    0%,100% { box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
    50%      { box-shadow: 0 6px 36px rgba(124,58,237,0.85); }
}

/* Botão encerrar */
.rp-sl-btn-end {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    box-shadow: 0 4px 16px rgba(220,38,38,0.4);
    transition: transform 0.15s;
    font-family: inherit;
}
.rp-sl-btn-end:hover { transform: translateY(-1px); }

/* Botão mute */
.rp-sl-btn-mute {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    transition: background 0.2s;
    font-family: inherit;
}
.rp-sl-btn-mute.rp-sl-muted {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.4);
    color: #fca5a5;
}

/* Animação de "chamando" */
.rp-sl-call-status {
    text-align: center;
    padding: 10px 0;
}
.rp-sl-calling-anim {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.rp-sl-calling-anim span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    animation: rp-calling-dot 1.2s ease-in-out infinite;
}
.rp-sl-calling-anim span:nth-child(2) { animation-delay: 0.2s; }
.rp-sl-calling-anim span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rp-calling-dot {
    0%,80%,100% { transform: scale(0.6); opacity: 0.4; }
    40%          { transform: scale(1.0); opacity: 1.0; }
}

#rp-sl-call-txt {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 16px;
}

/* Badge "Ao Vivo" no painel do locutor */
.rp-sl-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fca5a5;
    letter-spacing: 1.5px;
}
.rp-sl-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: rp-live-blink 1s infinite;
    flex-shrink: 0;
}
.rp-sl-live-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.rp-sl-footer {
    padding: 14px 28px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}
.rp-sl-footer small {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
}

/* Mensagem de login */
.rp-studio-login-msg {
    padding: 20px 24px;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 15px;
    color: #374151;
    text-align: center;
}

/* ── Badge "Locutor ao Vivo" no player ───────────────────────── */
.rp-studio-player-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(139,92,246,0.2);
    border: 1px solid rgba(139,92,246,0.4);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #c4b5fd;
    margin-left: 8px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.rp-studio-badge-photo {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(139,92,246,0.5);
    vertical-align: middle;
}

/* ── Página admin do Studio ──────────────────────────────────── */
.rp-studio-admin-wrap { max-width: 900px; }
.rp-studio-info-box {
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.rp-studio-info-box h3 { margin-top: 0; color: #3730a3; }
.rp-studio-info-box ol { margin: 10px 0 0 18px; }
.rp-studio-info-box li { margin-bottom: 6px; color: #374151; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .rp-call-box {
        padding: 36px 24px 28px;
        width: calc(100vw - 32px);
    }
    #rp-call-name  { font-size: 22px; }
    .rp-call-btn   { width: 60px; height: 60px; }
    .rp-call-answer{ width: 74px; height: 74px; }
    .rp-sl-btn-live{ font-size: 15px; padding: 14px 28px; }
}
