/* Web to App Converter Pro — Frontend Styles */

/* ── Banner variables ─────────────────────────────────────────────────────── */
.wtacp-prompt {
    --wtacp-bg:   #1e293b;
    --wtacp-text: #f8fafc;
    --wtacp-btn:  #2563EB;
}

/* ── Floating install banner ─────────────────────────────────────────────── */
.wtacp-prompt {
    position: fixed;
    z-index: 999998;
    max-width: 380px;
    width: calc(100% - 32px);
    background: var(--wtacp-bg);
    color: var(--wtacp-text);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .35s ease, visibility .35s;
}

/* Positions */
.wtacp-pos-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }
.wtacp-pos-bottom-left   { bottom: 20px; left: 16px; }
.wtacp-pos-bottom-right  { bottom: 20px; right: 16px; }
.wtacp-pos-top-center    { top: 20px; left: 50%; transform: translateX(-50%); }
.wtacp-pos-top-left      { top: 20px; left: 16px; }
.wtacp-pos-top-right     { top: 20px; right: 16px; }

/* Hidden state — only applies to the banner, NOT to shortcode buttons */
.wtacp-prompt.wtacp-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.wtacp-pos-bottom-center.wtacp-hidden,
.wtacp-pos-bottom-left.wtacp-hidden,
.wtacp-pos-bottom-right.wtacp-hidden { transform: translateX(var(--tx,0)) translateY(120px); }
.wtacp-pos-bottom-center.wtacp-hidden { --tx: -50%; }
.wtacp-pos-top-center.wtacp-hidden,
.wtacp-pos-top-left.wtacp-hidden,
.wtacp-pos-top-right.wtacp-hidden    { transform: translateX(var(--tx,0)) translateY(-120px); }
.wtacp-pos-top-center.wtacp-hidden   { --tx: -50%; }

/* Inner layout */
.wtacp-prompt__inner   { padding: 16px; }
.wtacp-prompt__header  { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.wtacp-prompt__icon-wrap { flex-shrink: 0; }
.wtacp-prompt__icon-wrap img { width: 52px; height: 52px; border-radius: 12px; display: block; }
.wtacp-prompt__text    { flex: 1; min-width: 0; }
.wtacp-prompt__title   { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.wtacp-prompt__subtitle { margin: 0; font-size: 13px; opacity: .75; line-height: 1.4; }
.wtacp-prompt__close   { background: none; border: none; cursor: pointer; color: var(--wtacp-text);
                          opacity: .55; padding: 4px; border-radius: 6px; flex-shrink: 0; font-size: 18px;
                          line-height: 1; transition: opacity .15s; }
.wtacp-prompt__close:hover { opacity: 1; }

/* Buttons inside banner */
.wtacp-prompt__actions { display: flex; gap: 8px; }
.wtacp-prompt .wtacp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
    border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: none;
    transition: filter .15s; font-family: inherit; }
.wtacp-prompt .wtacp-btn--primary { background: var(--wtacp-btn); color: #fff; flex: 1; justify-content: center; }
.wtacp-prompt .wtacp-btn--primary:hover { filter: brightness(1.12); }
.wtacp-prompt .wtacp-btn--ghost   { background: rgba(255,255,255,.12); color: var(--wtacp-text); }
.wtacp-prompt .wtacp-btn--ghost:hover { background: rgba(255,255,255,.2); }

/* Progress bar */
.wtacp-prompt__progress     { margin-top: 12px; height: 3px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.wtacp-prompt__progress-bar { height: 100%; background: var(--wtacp-btn); border-radius: 999px; transform-origin: left; }

/* ── Shortcode install & push buttons ────────────────────────────────────── */
/* These are STANDALONE elements — never inside .wtacp-hidden container.     */
/* pointer-events and cursor are explicitly set to ensure clickability.      */
.wtacp-inline-install,
.wtacp-push-subscribe {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    border: none !important;
    background: #2563EB !important;
    color: #fff !important;
    text-decoration: none !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    transition: background .15s, transform .1s !important;
    box-shadow: 0 2px 8px rgba(37,99,235,.35) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.wtacp-inline-install:hover,
.wtacp-push-subscribe:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
}
.wtacp-inline-install:active,
.wtacp-push-subscribe:active {
    transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
    .wtacp-prompt, .wtacp-prompt__progress-bar { transition: none; }
}
