/* ==========================================================================
   Top pick strip, LIVE since 2026-10-19 (approved by the owner in preview).
   Loaded only on /ai-girlfriend-generator/ and /image-to-prompt/ by
   madeprompt_top_strip_assets() in inc/top-strip.php.
   ========================================================================== */

.mp-strip {
    display: flex; align-items: center; gap: 12px;
    width: 100%; max-width: 560px; margin: 0 auto; padding: 10px 12px 10px 10px; border-radius: 16px;
    background: linear-gradient(rgba(var(--accrgb, 255, 255, 255), .07), rgba(var(--accrgb, 255, 255, 255), .07)), var(--surf, rgba(255, 255, 255, .045));
    border: 1px solid rgba(var(--accrgb, 255, 255, 255), .32);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    color: var(--ink, #fff); text-decoration: none;
    transition: border-color .2s, transform .2s;
}
.mp-strip:hover { border-color: rgba(var(--accrgb, 255, 255, 255), .6); transform: translateY(-2px); }
.mp-strip:hover, .mp-strip:focus { color: var(--ink, #fff); text-decoration: none; }
.mp-strip:focus-visible { outline: 2px solid var(--acctx, #fff); outline-offset: 3px; }
/* Upright like the photos on the brand cards, so the brand gets a face rather than a crop. */
.mp-strip-ph {
    flex: none; display: block; width: 54px; height: 72px; border-radius: 10px;
    object-fit: cover; object-position: 50% 20%; background: #2a2a30;
    border: 1px solid var(--edge, rgba(255, 255, 255, .22));
}
.mp-strip-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.mp-strip-k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acctx, #fff); line-height: 1.2; }
.mp-strip-nr { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.mp-strip-nm { font-size: 18px; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mp-strip .mp-strip-stamp {
    display: inline-block; padding: 3px 8px; border-radius: 999px;
    font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; white-space: nowrap;
}
.mp-strip-go {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--btntx, #fff); background: var(--btn, rgba(255, 255, 255, .14)); border: 1px solid var(--btnbrd, rgba(255, 255, 255, .28));
    transition: filter .2s;
}
.mp-strip:hover .mp-strip-go { filter: brightness(1.1); }
/* Brand colour too dark to paint a button (AiNudez): the page colour instead, white text (owner's call). */
.mp-strip.is-neutral .mp-strip-go { color: #fff; background: var(--acc, #12a06b); border-color: rgba(0, 0, 0, .22); }
/* The pixel entrance (script in madeprompt_strip_pixel_script()). While .mp-px is on, the row's
   own panel and contents are hidden and a canvas draws them as pixels; then the contents fade
   in as the canvas fades out, and .mp-px-glow lights the edge once while a light crosses it. */
.mp-strip { position: relative; overflow: hidden; }
.mp-strip > :not(.mp-px-cv) { transition: opacity .55s ease; }
.mp-px-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .55s ease; }
.mp-strip.mp-px { background: transparent; border-color: transparent; }
.mp-strip.mp-px > :not(.mp-px-cv) { opacity: 0; }
.mp-strip-phw { position: relative; flex: none; display: block; overflow: hidden; border-radius: 10px; }
@keyframes mps-glow {
    0%   { border-color: rgba(var(--accrgb, 255, 255, 255), .32); box-shadow: 0 0 0 0 rgba(var(--accrgb, 255, 255, 255), 0); }
    30%  { border-color: rgba(var(--accrgb, 255, 255, 255), .95); box-shadow: 0 0 0 1px rgba(var(--accrgb, 255, 255, 255), .55), 0 0 26px rgba(var(--accrgb, 255, 255, 255), .45); }
    100% { border-color: rgba(var(--accrgb, 255, 255, 255), .32); box-shadow: 0 0 0 0 rgba(var(--accrgb, 255, 255, 255), 0); }
}
@keyframes mps-sweep { from { left: -45%; } to { left: 120%; } }
.mp-strip::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 40%; pointer-events: none; opacity: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .2), transparent);
}
.mp-strip.mp-px-glow { animation: mps-glow 1.35s ease-out; }
.mp-strip.mp-px-glow::after { opacity: 1; animation: mps-sweep 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .mp-strip.mp-px-glow, .mp-strip.mp-px-glow::after { animation: none; }
    .mp-strip.mp-px-glow::after { opacity: 0; }
}
@media (min-width: 761px) {
    .mp-strip { max-width: 540px; margin-top: -6px; padding: 12px 14px 12px 12px; gap: 14px; }
    .mp-strip-ph { width: 58px; height: 78px; }
    .mp-strip-nm { font-size: 19px; }
    .mp-strip .mp-strip-stamp { font-size: 9.5px; padding: 4px 10px; }
    .mp-strip-go { font-size: 12px; padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-strip, .mp-strip-go { transition: none; }
    .mp-strip:hover { transform: none; }
}
