/* feature_vendors.css
 * Extracted from app/features/public_website/ui/feature_vendors.html
 * to remove ~5KB of inline CSS from the HTML payload, get HTTP cache
 * reuse on repeat visits, and let the browser parse this in parallel
 * with the rest of the document. Linked via <link rel="preload"
 * as="style" ... onload="this.media='all'"> in the template so it
 * never blocks first paint.
 */

/* ============ Reveal animations ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* ============ Float / pulse ============ */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-float-delayed { animation: float 5s ease-in-out 2s infinite; }

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45); }
    50% { box-shadow: 0 0 0 14px rgba(245, 158, 11, 0); }
}
.glow-pulse { animation: glow-pulse 2.4s ease-in-out infinite; }

@keyframes scan-x { 0% { transform: translateX(-110%); } 100% { transform: translateX(220%); } }
.scan-x { animation: scan-x 2.6s ease-in-out infinite; }

/* ============ Workflow path ============ */
@keyframes dash-flow {
    from { stroke-dashoffset: 240; }
    to { stroke-dashoffset: 0; }
}
.dash-flow {
    stroke-dasharray: 8 10;
    animation: dash-flow 6s linear infinite;
}

/* ============ Bg art lattice ============ */
.bg-lattice {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 24px 24px;
}

/* ============ Vendor leaderboard rows ============ */
.lb-row { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
.lb-row.is-live { opacity: 1; transform: translateY(0); }
.lb-row.fade-out { opacity: 0; transform: translateY(-8px); }

/* ============ Job category chip selector ============ */
.cat-chip {
    cursor: pointer;
    transition: all 0.25s ease;
}
.cat-chip:hover { transform: translateY(-2px); }
.cat-chip:focus { outline: none; }
.cat-chip:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}
.cat-chip.is-on {
    background: linear-gradient(to right, #f59e0b, #f97316);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 30px -8px rgba(245, 158, 11, 0.55);
}

/* ============ Match card morph ============ */
.match-step { opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease, transform 0.4s ease; }
.match-step.is-shown { opacity: 1; transform: translateY(0); }

/* ============ Vendor card hover ============ */
.vendor-card {
    transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}
.vendor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -20px rgba(245, 158, 11, 0.35);
    border-color: #f59e0b;
}

/* ============ Bid bar ============ */
.bid-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.bid-bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 1.6s cubic-bezier(0.5, 0, 0, 1);
}

/* ============ Performance chart ============ */
.perf-path { stroke-dasharray: 1500; stroke-dashoffset: 1500; transition: stroke-dashoffset 1.8s cubic-bezier(0.5, 0, 0, 1); }
.perf-path.is-drawn { stroke-dashoffset: 0; }
.perf-area { opacity: 0; transition: opacity 1.2s ease 0.4s; }
.perf-area.is-drawn { opacity: 1; }

/* ============ Phone mock ============ */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 19;
    background: linear-gradient(180deg, #0f172a, #1e293b);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4), 0 0 0 8px #1e293b;
    margin: 0 auto;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #0f172a;
    border-radius: 999px;
    z-index: 20;
}

/* ============ Star rating animation ============ */
@keyframes star-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.star-anim { animation: star-pop 0.4s cubic-bezier(0.5, 0, 0, 1) forwards; }

/* ============ Number ticker ============ */
.ticker { animation: ticker-up 1.4s cubic-bezier(0.5, 0, 0, 1) forwards; }
@keyframes ticker-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ Vendor avatar swatch (used with <symbol id="vendor-avatar-48">)
 * Background is set via Tailwind bg-* utility classes on the SVG element;
 * foreground figure is colored via currentColor inheriting from the
 * Tailwind text-* utility class. Two utility classes per card replace
 * ~250 chars of repeated inline SVG markup.
 */
.va-svg { display: block; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; transition: none !important; }
    .animate-float, .animate-float-delayed,
    .glow-pulse, .scan-x, .dash-flow,
    .lb-row, .star-anim, .ticker,
    .vendor-bar > span { animation: none !important; transition: none !important; }
    .lb-row { opacity: 1 !important; transform: none !important; }
    .ticker { opacity: 1 !important; transform: none !important; }
    .vendor-bar > span { width: var(--target-w, 100%) !important; }
}
