/**
 * Conectado em Sergipe - Modelos Estratégicos de Templates para Prestadores
 * Paleta Oficial: Azul (#075be8), Navy (#071630 / #0b172a), Verde WhatsApp (#10b981), Ouro (#f59e0b)
 */

/* ─── BOTÃO WHATSAPP EXPRESS PULSANTE ─── */
.provider-action-whatsapp-express {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
    animation: pulse-whatsapp-express 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-whatsapp-express {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5), 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0), 0 6px 16px rgba(16, 185, 129, 0.4);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TEMAS E CORES COMPLETAS POR MODELO DE PÁGINA
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. TEMPLATE DEFAULT (Padrão Conectado em Sergipe) ─── */
.provider-profile-page.template-default {
    --primary: #075be8;
    --primary-hover: #0047b3;
    --primary-rgb: 7, 91, 232;
}

/* ─── 2. TEMPLATE EXPRESS DIRECT (Conversão Rápida / Verde WhatsApp) ─── */
.provider-profile-page.template-express {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-rgb: 5, 150, 105;
}
.template-express .provider-profile-card {
    border-top: 5px solid #10b981 !important;
    border-radius: 20px !important;
}
.template-express .provider-category-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
    font-weight: 700 !important;
}
.template-express .provider-action-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #059669 !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35) !important;
    font-size: 1.05rem !important;
    font-weight: 750 !important;
}
.template-express .provider-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45) !important;
}
.template-express .provider-section-eyebrow {
    color: #059669 !important;
}
.template-express .provider-stars {
    color: #f59e0b !important;
}

/* ─── 3. TEMPLATE SHOWCASE (Vitrine Visual & Portfólio - Roxo/Índigo) ─── */
.provider-profile-page.template-showcase {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-rgb: 124, 58, 237;
}
.template-showcase .provider-profile-card {
    border-top: 5px solid #8b5cf6 !important;
    border-radius: 26px !important;
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.08) !important;
}
.template-showcase .provider-category-badge {
    background: rgba(124, 58, 237, 0.12) !important;
    color: #7c3aed !important;
    border: 1px solid rgba(124, 58, 237, 0.3) !important;
    font-weight: 700 !important;
}
.template-showcase .provider-action-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    border-color: #6d28d9 !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35) !important;
}
.template-showcase .provider-section-eyebrow {
    color: #7c3aed !important;
}
.template-showcase .provider-rating strong {
    color: #7c3aed !important;
}

/* ─── 4. TEMPLATE AUTHORITY & CARE (Autoridade & Consultório - Azul Petróleo / Dourado) ─── */
.provider-profile-page.template-authority {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-rgb: 2, 132, 199;
}
.template-authority .provider-profile-card {
    border-top: 5px solid #0284c7 !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09) !important;
}
.template-authority .provider-category-badge {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    font-weight: 700 !important;
}
.template-authority .provider-action-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0369a1 !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3) !important;
}
.template-authority .provider-section-eyebrow {
    color: #0284c7 !important;
    letter-spacing: .12em !important;
}

/* ─── 5. TEMPLATE CORPORATE B2B (Corporativo - Grafite Executivo / Navy) ─── */
.provider-profile-page.template-corporate {
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-rgb: 15, 23, 42;
}
.template-corporate .provider-profile-card {
    border-top: 5px solid #0f172a !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}
.template-corporate .provider-category-badge {
    background: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.22) !important;
    font-weight: 700 !important;
}
.template-corporate .provider-action-primary {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #0f172a !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
}
.template-corporate .provider-section-eyebrow {
    color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CAPA COM CORES / GRADIENTES E ENQUADRAMENTO LIMPO
   ═══════════════════════════════════════════════════════════════════════════ */

/* Capa em modo Cores / Gradientes */
.provider-cover-color-banner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
}

.provider-cover-pattern-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Enquadramento Limpo de Imagem (sem blur artificial) */
.provider-cover.is-contain-fit {
    background-color: #0a0f1d !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.provider-cover.is-contain-fit > img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.provider-cover > img,
.provider-cover-slide {
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, object-fit 0.2s ease;
}

/* ─── SEÇÃO DE CERTIFICADOS & CURSOS ─── */
.cs-certificates-section .transition-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cs-certificates-section .transition-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(7, 91, 232, 0.08);
    border-color: rgba(7, 91, 232, 0.35) !important;
}

.cs-certificates-section .hover-opacity-100 {
    transition: opacity 0.2s ease;
}

.cs-certificates-section .overflow-hidden:hover .hover-opacity-100 {
    opacity: 1 !important;
}

.cs-certificates-section .overflow-hidden:hover img {
    transform: scale(1.05);
}


/* ============================================================
   MOTION / ANIMAÇÕES PROFISSIONAIS
   ============================================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heart-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Animações gerais de entrada na página */
.provider-profile-card {
    animation: fadeInScale 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.provider-about {
    animation: fadeInUp 0.5s ease 0.08s both;
}
.provider-hours {
    animation: fadeInUp 0.5s ease 0.16s both;
}
.cs-certificates-section {
    animation: fadeInUp 0.5s ease 0.12s both;
}
.provider-action-list .provider-action {
    animation: fadeInUp 0.4s ease both;
}
.provider-action-list .provider-action:nth-child(1) { animation-delay: 0.05s; }
.provider-action-list .provider-action:nth-child(2) { animation-delay: 0.1s; }
.provider-action-list .provider-action:nth-child(3) { animation-delay: 0.15s; }
.provider-action-list .provider-action:nth-child(4) { animation-delay: 0.2s; }
.provider-action-list .provider-action:nth-child(5) { animation-delay: 0.25s; }
.provider-action-list .provider-action:nth-child(6) { animation-delay: 0.3s; }

/* Hover geral nos botões de ação */
.provider-action {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.provider-action:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ============================================================
   BOTÃO CURTIR PÁGINA
   ============================================================ */

.provider-like-btn {
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.provider-like-btn i {
    transition: transform 0.2s ease;
}
.provider-like-btn.is-liked {
    color: #e11d48 !important;
    border-color: #e11d48 !important;
    background: #fff0f3 !important;
}
.provider-like-btn.is-liked i {
    animation: heart-pop 0.38s cubic-bezier(0.17, 0.89, 0.32, 1.28);
    color: #e11d48;
}
.provider-like-btn:hover {
    color: #e11d48 !important;
    border-color: #e11d48 !important;
}

/* ============================================================
   MOTION POR TEMPLATE
   ============================================================ */

/* Express: entrada lateral do card */
.template-express .provider-profile-card {
    animation: slideInLeft 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.template-express .provider-action-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.template-express .provider-action-primary:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.35) !important;
}

/* Showcase: fade suave e galeria */
.template-showcase .provider-profile-card {
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.template-showcase .provider-about {
    animation: fadeInUp 0.55s ease 0.1s both;
}

/* Authority: destaque nos badges */
.template-authority .provider-category-badge {
    animation: fadeInUp 0.4s ease 0.04s both;
}
.template-authority .cs-certificates-section {
    animation: fadeInScale 0.55s ease 0.05s both;
}

/* Corporate: sutileza */
.template-corporate .provider-about h2 {
    letter-spacing: -0.02em;
}
.template-corporate .provider-profile-card {
    animation: fadeInScale 0.5s ease both;
}
.template-corporate .provider-action {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease !important;
}


/* ============================================================
   TEMPLATE WIKI (AZUL & BRANCO ESTILO WIKIPÉDIA)
   ============================================================ */
.template-wiki {
    --primary: #075be8;
    --accent: #0284c7;
    background-color: #f8fbff !important;
}
.template-wiki .provider-profile-card {
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 12px 30px rgba(7, 91, 232, 0.09) !important;
    background: #ffffff !important;
}
.template-wiki .provider-category-badge {
    background: #eff6ff !important;
    color: #075be8 !important;
    border: 1px solid #bfdbfe !important;
}
.template-wiki .provider-action-primary {
    background: #075be8 !important;
    border-color: #075be8 !important;
}
