/* tips.css: the "Try this" feature tips. Solid colours (no blur), moves only with transform/opacity. */
#ft-bubble, #ft-ring { position: fixed; z-index: 9990; pointer-events: none; }
#ft-ring {
    border: 2px solid #818cf8; box-shadow: 0 0 0 4px rgba(129,140,248,.28);
    opacity: 0; transform: scale(1.06); transition: opacity .25s ease, transform .25s ease;
}
#ft-ring.ft-on { opacity: 1; transform: scale(1); animation: ftRing 1.1s ease-in-out 2; }
@keyframes ftRing { 50% { opacity: .25; transform: scale(1.05); } }

#ft-bubble {
    pointer-events: auto; cursor: pointer; box-sizing: border-box;
    padding: 12px 14px 14px; border-radius: 16px;
    background: #14183a; color: #f1f5f9; border: 1px solid rgba(165,180,252,.45);
    box-shadow: 0 14px 40px rgba(2,6,23,.55), 0 2px 0 rgba(255,255,255,.06) inset;
    font-family: inherit; line-height: 1.5; font-size: 13.5px;
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(.97);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
#ft-bubble.ft-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#ft-bubble[data-side="above"] { transform-origin: bottom center; }
#ft-bubble[data-side="below"] { transform-origin: top center; }

#ft-arrow {
    position: absolute; left: var(--ax, 24px); width: 12px; height: 12px; margin-left: -6px;
    background: inherit; border: inherit; transform: rotate(45deg);
}
#ft-bubble[data-side="below"] #ft-arrow { top: -7px; border-right: 0; border-bottom: 0; }
#ft-bubble[data-side="above"] #ft-arrow { bottom: -7px; border-left: 0; border-top: 0; }

#ft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
#ft-spark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); flex: none; }
#ft-title { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #a5b4fc; flex: 1; }
html[lang="ar"] #ft-title { letter-spacing: 0; text-transform: none; font-size: 13px; }
#ft-x { all: unset; cursor: pointer; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 18px; line-height: 1; color: #cbd5e1; touch-action: manipulation; }
#ft-x:hover { background: rgba(148,163,184,.25); color: #fff; }
#ft-text { margin: 0; color: #e2e8f0; }
#ft-bar { display: block; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #6366f1, #22d3ee); transform-origin: left center; transform: scaleX(0); opacity: .9; }
#ft-bubble[dir="rtl"] #ft-bar { transform-origin: right center; }
#ft-bubble.ft-on #ft-bar { animation: ftBar 6.5s linear forwards; }
@keyframes ftBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* light theme: white card, dark text, indigo accents (same contrast quality as dark) */
html.light-theme #ft-bubble { background: #ffffff; color: #1e1b4b; border-color: rgba(99,102,241,.5); box-shadow: 0 14px 40px rgba(67,56,202,.22), 0 2px 8px rgba(15,23,42,.10); }
html.light-theme #ft-title { color: #4338ca; }
html.light-theme #ft-text { color: #312e81; }
html.light-theme #ft-x { color: #475569; }
html.light-theme #ft-x:hover { background: rgba(99,102,241,.14); color: #1e1b4b; }
html.light-theme #ft-ring { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.25); }

@media (prefers-reduced-motion: reduce) {
    #ft-bubble, #ft-ring { transition: opacity .01ms !important; transform: none !important; animation: none !important; }
    #ft-bubble.ft-on #ft-bar { animation-duration: 6.5s !important; }   /* keep the countdown, it is information */
}
