/* ============================================================
   PERTROCA LOADER — componente compartilhado
   Use via /js/pertroca-loader.js (PertrocaLoader.fullscreen / .inline)
   ============================================================ */

.pl-overlay {
    position: fixed;
    inset: 0;
    background: #0A0A0A;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: plFadeIn 0.2s ease;
}
@keyframes plFadeIn { from { opacity: 0; } to { opacity: 1; } }
.pl-overlay.is-hiding {
    animation: plFadeOut 0.3s ease forwards;
}
@keyframes plFadeOut { to { opacity: 0; } }

.pl-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 1.5rem;
}

.pl-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: plEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes plEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pl-p {
    filter: drop-shadow(0 0 20px rgba(201,169,110,0.20))
            drop-shadow(0 0 40px rgba(201,169,110,0.10));
    animation: plPulse 2.4s ease-in-out infinite;
}
.pl-p.is-small { width: 70px; height: 90px; }
@keyframes plPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 16px rgba(201,169,110,0.18)) drop-shadow(0 0 36px rgba(201,169,110,0.08)); }
    50%      { transform: scale(1.02); filter: drop-shadow(0 0 24px rgba(201,169,110,0.32)) drop-shadow(0 0 56px rgba(201,169,110,0.18)); }
}

.pl-tagline {
    text-align: center;
    margin-top: -4px;
}
.pl-tagline-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    color: #C9A96E;
    letter-spacing: 0.02em;
    margin: 0 0 12px 0;
    opacity: 0;
    transform: translateY(6px);
    animation: plHeadlineIn 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pl-tagline-verbs {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.08em;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.pl-verb {
    opacity: 0;
    display: inline-block;
    transform: translateY(4px);
    animation: plVerbReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pl-sep {
    opacity: 0;
    color: #A48B5A;
    animation: plSepReveal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.pl-verb:nth-of-type(1) { animation-delay: 0.7s; }
.pl-sep:nth-of-type(1)  { animation-delay: 1.05s; }
.pl-verb:nth-of-type(2) { animation-delay: 1.15s; }
.pl-sep:nth-of-type(2)  { animation-delay: 1.50s; }
.pl-verb:nth-of-type(3) { animation-delay: 1.60s; }

@keyframes plHeadlineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 0.95; transform: translateY(0); } }
@keyframes plVerbReveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 0.85; transform: translateY(0); } }
@keyframes plSepReveal  { from { opacity: 0; } to { opacity: 0.5; } }

.pl-bar {
    width: 140px;
    height: 2px;
    background: rgba(201,169,110,0.10);
    border-radius: 999px;
    overflow: hidden;
}
.pl-bar-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #C9A96E, transparent);
    border-radius: 999px;
    animation: plBar 1.6s ease-in-out infinite;
}
@keyframes plBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* === Variant: sem tagline (loader curto pra seções) === */
.pl-stage.is-compact { gap: 0.5rem; }
.pl-stage.is-compact .pl-tagline { display: none; }
.pl-stage.is-compact .pl-bar { display: none; }
.pl-stage.is-compact .pl-p { width: 70px; height: 90px; }

/* ============================================================
   PL-MINI — P miniatura pra botões e indicadores pequenos
   ============================================================ */
.pl-mini {
    width: 16px;
    height: 21px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.pl-mini .pl-mini-outline {
    fill: rgba(201,169,110,0.15);
    stroke: rgba(201,169,110,0.50);
    stroke-width: 1;
}
.pl-mini .pl-mini-fill { fill: #C9A96E; }

/* Variante escura pra botões dourados */
.pl-mini.is-dark .pl-mini-outline {
    fill: rgba(10,10,10,0.20);
    stroke: rgba(10,10,10,0.60);
}
.pl-mini.is-dark .pl-mini-fill { fill: #0a0a0a; }

/* Variante amarela pra estados pending */
.pl-mini.is-warning .pl-mini-outline {
    fill: rgba(251,191,36,0.15);
    stroke: rgba(251,191,36,0.50);
}
.pl-mini.is-warning .pl-mini-fill { fill: #FBBF24; }

/* Variante grande pra área pending (32px) */
.pl-mini.is-lg { width: 32px; height: 42px; }

/* ============================================================
   PL-DOTS-P — 3 P's pulsando em sequência (chatbot "digitando")
   ============================================================ */
.pl-dots-p {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 2px;
}
.pl-dots-p svg {
    width: 10px;
    height: 14px;
    opacity: 0.3;
    animation: plDotsPulse 1.4s ease-in-out infinite;
}
.pl-dots-p svg:nth-child(2) { animation-delay: 0.2s; }
.pl-dots-p svg:nth-child(3) { animation-delay: 0.4s; }
@keyframes plDotsPulse {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30%           { opacity: 0.95; transform: translateY(-3px); }
}
