/* ==========================================================
   SXO.CSS — Search Experience Optimization
   Copravasi | All animations, CTAs, UX improvements
   ========================================================== */

/* ---- Sticky Book Now CTA ---- */
#sxo-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: #fff;
    box-shadow: 0 -4px 30px rgba(51, 75, 153, 0.18);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 2px solid #334b99;
}
#sxo-sticky-cta.visible { transform: translateY(0); }
#sxo-sticky-cta .price-label { font-size: 1.3rem; font-weight: 800; color: #334b99; }
#sxo-sticky-cta .price-label span { font-size: 0.85rem; font-weight: 400; color: #888; }
#sxo-sticky-cta .btn-book {
    background: linear-gradient(135deg, #334b99, #5568d4);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-cta 2s infinite;
}
#sxo-sticky-cta .btn-book:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(51, 75, 153, 0.4);
    animation: none;
}

/* ---- Pulse animation for primary CTAs ---- */
@keyframes pulse-cta {
    0%   { box-shadow: 0 0 0 0 rgba(51, 75, 153, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(51, 75, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(51, 75, 153, 0); }
}

/* ---- Urgency / Scarcity Badge ---- */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff4e3e, #ff6b35);
    color: #fff;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    animation: flicker 2.5s ease-in-out infinite;
}
@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}
.urgency-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s step-start infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* ---- Social Proof Ticker ---- */
.social-proof-ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f4ff;
    border: 1px solid #d0d9ff;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #334b99;
    font-weight: 600;
    margin-bottom: 16px;
}
.social-proof-ticker i { color: #fbbf24; }

/* ---- AEO Definition Block ---- */
.aeo-fact-block {
    background: linear-gradient(135deg, #f8f9ff, #eef1ff);
    border-left: 4px solid #334b99;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.aeo-fact-block dl { margin: 0; }
.aeo-fact-block dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 2px;
}
.aeo-fact-block dd {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.aeo-fact-block dd:last-child { margin-bottom: 0; }

/* ---- VSO Voice Answer Block ---- */
.vso-answer-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
}
.vso-answer-block .vso-question {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.vso-answer-block .vso-question::before {
    content: "Q";
    background: #334b99;
    color: #fff;
    border-radius: 50%;
    width: 22px; height: 22px;
    min-width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.vso-answer-block .vso-answer {
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.7;
    padding-left: 30px;
    margin-bottom: 16px;
}
.vso-answer-block .vso-answer:last-child { margin-bottom: 0; }

/* ---- E-E-A-T Guide Card ---- */
.eeat-guide-card {
    background: linear-gradient(135deg, #1a1a2e, #334b99);
    color: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}
.eeat-guide-card .guide-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.eeat-guide-card .guide-name { font-weight: 800; font-size: 1rem; }
.eeat-guide-card .guide-role { font-size: 0.8rem; opacity: 0.75; }
.eeat-guide-card .guide-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
}

/* ---- WhatsApp Mobile Float ---- */
.whatsapp-float-mobile {
    display: none;
    position: fixed;
    bottom: 70px;
    right: 16px;
    z-index: 1049;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none !important;
    animation: pulse-wa 2s infinite;
    align-items: center;
    gap: 8px;
}
@keyframes pulse-wa {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 767px) {
    .whatsapp-float-mobile { display: flex; }
    #sxo-sticky-cta { padding: 10px 14px; }
    #sxo-sticky-cta .price-label { font-size: 1.1rem; }
}

/* ---- Page Reading Progress Bar ---- */
#sxo-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #334b99, #5568d4, #ff6b35);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ---- CRO Trust Badges Row ---- */
.cro-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.cro-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #166534;
}
.cro-trust-badge i { color: #22c55e; }
