/*
 * Search on foxentry.com: manual and blog.
 * Approved design, Claude artifact 32861bff-882d-48c4-9534-338d1de9a39b (version 1794489382-344a).
 * Loaded after www/assets/css/main.css. Every class added by this design starts with fx-.
 */

/* Suggestion bubble (manual search, big field and small field) */
.search__wrapper{overflow:visible}
.fx-sugg{position:absolute;top:calc(100% + 10px);left:0;right:0;z-index:30;background:#fff;border-radius:12px;padding:6px;box-shadow:0 14px 40px rgba(18,18,57,.26);text-align:left}
.fx-sugg:before{content:"";position:absolute;top:-9px;left:46px;width:12px;height:10px;background:#fff;clip-path:polygon(50% 0,100% 100%,0 100%)}
.fx-row{position:relative;display:flex;align-items:center;gap:16px;padding:12px 18px;border-radius:8px;color:#131313;text-decoration:none}
.fx-row:hover,.fx-row:focus{background:#f6f4fb;color:#131313}
.fx-title{flex:1;min-width:0;font-size:15px;font-weight:700;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-cat{flex:none;font-size:13px;color:#8a8da3;white-space:nowrap}
.fx-mark{background:#ffe7de;color:inherit;border-radius:2px;padding:0 1px;font-weight:inherit}

/* Platform suggestion row (implementation page): same fx-row, plus the
   platform's own logo on the left — useful there only, so scoped to its own
   modifier rather than added to the shared .fx-row (foxentry/presentation-web#127) */
.fx-row--platform .fx-row__logo{flex:none;width:28px;height:28px;object-fit:contain}

/* Small field variant: detail of an article, manual results, blog results */
.fx-sugg--small{left:auto;right:0;width:460px;max-width:calc(100vw - 40px);box-shadow:none;filter:drop-shadow(0 0 1px rgba(18,18,57,.22)) drop-shadow(0 10px 22px rgba(18,18,57,.14))}
.fx-sugg--small:before{left:auto;right:270px}
.fx-sugg--small .fx-row{padding:10px 16px}
.fx-sugg--small .fx-title{font-size:14px}
.fx-sugg--small .fx-cat{font-size:12px}

/* Blog: field next to the categories, live filtering */
.blog-navigation .content-nav{flex-direction:row;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:24px;padding:0}
.fx-blog-cats{display:flex;flex-wrap:wrap;gap:4px}
.fx-blog-cats .content-nav__item{padding:0 16px;height:42px;margin:0;font-size:16px}
.fx-blog-search{flex:none}
.fx-blog-count{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 30px;font-size:15px;color:#54576c}
.fx-blog-count[hidden]{display:none}
.fx-blog-count strong{color:#131313}
.fx-blog-count a{color:#f54009;font-weight:700;font-size:14px;cursor:pointer}

/* Nothing found (blog page and both results pages) */
.fx-empty{text-align:center;padding:20px 0 60px}
.fx-empty img{width:220px;margin:0 auto 20px;display:block}
.fx-empty h3{font-size:22px;font-weight:800;margin:0 0 28px}

/* Results card with a preview image (blog results) */
.ManualSearch .manual-search__item.fx-result{display:flex;gap:28px;align-items:flex-start}
.fx-result__thumb{flex:none;width:200px;aspect-ratio:16/10;object-fit:cover;border-radius:8px;background:#eef1f6}
.fx-result__body{flex:1;min-width:0}
.fx-result__body h3{margin-top:0}

/* Loading skeleton (manual + blog results, #113) — card shape reuses
   .manual-search__item/.fx-result/.fx-result__thumb as-is; only the bars are
   new, filled with the same #eef1f6/#e6e6e6 already used above. Shown and
   hidden by the page's own inline script (manual-search.latte/blog-search.latte)
   only once Pagefind takes longer than ~180ms, so a fast answer never shows
   it at all. The pulse already collapses under prefers-reduced-motion
   through build-src/css/base/_base.scss's global animation override. */
.fx-skeleton{opacity:0;transition:opacity .15s ease}
.fx-skeleton.show{opacity:1}
.fx-skeleton__bar{height:14px;border-radius:4px;background:#eef1f6;margin-bottom:12px;animation:fxSkeletonPulse 1.4s ease-in-out infinite}
.fx-skeleton__bar--title{width:55%;height:18px}
.fx-skeleton__bar--text-last{width:70%;margin-bottom:0}
.fx-skeleton__thumb{animation:fxSkeletonPulse 1.4s ease-in-out infinite}
@keyframes fxSkeletonPulse{0%,100%{opacity:1}50%{opacity:.5}}

/* Results fade in once populated — paired with the skeleton's own fade-out
   above so the swap (#113: "skeleton plynule nahradit výsledky") never jumps. */
[data-ref="manualSearchItems"],[data-ref="blogSearchItems"]{opacity:0;transition:opacity .15s ease}
[data-ref="manualSearchItems"].show,[data-ref="blogSearchItems"].show{opacity:1}

@media (max-width: 991px){
  .fx-sugg--small{left:0;right:0;width:auto;max-width:none}
  .fx-sugg--small:before{left:18px;right:auto}
  .blog-navigation .content-nav{flex-direction:column;align-items:stretch;gap:16px}
  .fx-blog-search{order:-1}
  .fx-blog-search.search--small{width:100%}
  .fx-blog-cats{gap:6px}
  .fx-blog-cats .content-nav__item{flex:none;white-space:nowrap;height:36px;padding:0 12px;font-size:14px;background:#f6f4fb}
  .fx-blog-cats .content-nav__item.active{background:#ece5fb}
}
@media (max-width: 767px){
  .fx-row{flex-direction:column;align-items:flex-start;gap:2px;padding:10px 14px}
  .fx-row--platform{flex-direction:row;align-items:center}
  .fx-title{white-space:normal}
  .fx-cat{font-size:12px}
  .fx-blog-count{flex-direction:column;gap:6px}
  .fx-empty img{width:170px}
  .fx-empty h3{font-size:19px}
  .ManualSearch .manual-search__item.fx-result{flex-direction:column;gap:16px}
  .fx-result__thumb{width:100%}
}
