/* Konfigurátory baterií (pages/battery-finder.php) a skel/pouzder (pages/phone-finder.php):
   tmavý hero jako vyhledávač náplní (/naplne), stránka na šířku webu. Výsledky a SEO části drží třídy .bf-*. */

.fh-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: center;
    margin: 0.5rem 0 2rem;
    padding: 2.75rem 3rem;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(110% 100% at 100% 0%, rgba(82, 28, 223, 0.55) 0%, rgba(82, 28, 223, 0) 55%),
        radial-gradient(80% 80% at 0% 100%, rgba(122, 77, 255, 0.18) 0%, rgba(122, 77, 255, 0) 60%),
        #15131f;
    z-index: 3; /* našeptávač z pole přesahuje přes spodek bloku – bez overflow: hidden */
}
.fh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
            mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.fh-hero > * { position: relative; min-width: 0; }

.fh-kicker {
    display: flex; align-items: center; gap: 0.55rem;
    margin: 0 0 0.75rem;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: #c9b8fb;
}
.fh-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #7cf0c4; box-shadow: 0 0 0 4px rgba(124, 240, 196, 0.16); }
.fh-title {
    margin: 0;
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08;
    color: #fff; text-wrap: balance;
}
.fh-title span { color: #c9b8fb; }
.fh-lede { margin: 0.9rem 0 1.5rem; max-width: 52ch; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.72); }

/* Pole hledání uvnitř hera (původní .bf-search-* kvůli skriptu) */
.fh-hero .bf-search-section { max-width: 640px; margin: 0; }
.fh-hero .bf-search-wrap { gap: 0; }
.fh-hero .bf-search-input {
    height: 64px; padding: 0 9.5rem 0 3.1rem;
    border: 2px solid transparent; border-radius: 16px;
    background: #fff; color: #15131f; font-size: 1.0625rem; font-weight: 600;
    box-shadow: 0 0 0 6px rgba(201, 184, 251, 0.14), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}
.fh-hero .bf-search-input::placeholder { color: #9a9db0; font-weight: 400; font-size: 0.9375rem; }
.fh-hero .bf-search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 6px rgba(201, 184, 251, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.fh-hero .bf-search-icon { left: 1.1rem; color: #8a8ea3; }
.fh-hero .bf-search-clear { right: 8.4rem; }
.fh-hero .bf-search-btn {
    position: absolute; right: 7px; top: 7px; bottom: 7px;
    padding: 0 1.35rem; border-radius: 11px;
}
.fh-hero .bf-search-btn:hover { transform: none; }
.fh-hero .bf-suggestions { top: calc(100% + 8px); margin-top: 0; border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(40, 20, 120, 0.45); }

.fh-try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 1.1rem; font-size: 0.8125rem; }
.fh-try > span { color: rgba(255, 255, 255, 0.55); margin-right: 0.2rem; }
.fh-try button {
    padding: 0.35rem 0.65rem; border-radius: 8px; cursor: pointer;
    font: inherit; font-size: 0.8rem; font-weight: 600;
    background: rgba(255, 255, 255, 0.06); border: 1px dashed rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.85);
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.fh-try button:hover { border-style: solid; border-color: #c9b8fb; color: #fff; background: rgba(201, 184, 251, 0.14); }
.fh-try button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fh-hint { display: flex; gap: 0.45rem; align-items: flex-start; margin: 1rem 0 0; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.55); }
.fh-hint svg { flex: none; margin-top: 1px; }
.fh-hint em { font-style: normal; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* Fotka produktu na světlém poli (stejné obrázky jako v menu Konfigurátory) */
.fh-visual { display: flex; flex-direction: column; align-items: center; }
.fh-photo {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 340px; aspect-ratio: 4 / 3;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 58%, #ffffff 0%, #f3efff 55%, #e2d9ff 100%);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.fh-photo img { max-width: 72%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(21, 19, 31, 0.25)); }
.fh-caption { margin: 1.2rem 0 0; max-width: 34ch; text-align: center; font-size: 0.8125rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); }
.fh-caption strong { color: #fff; }

/* Stránka na šířku webu: výsledky i obsah pod nimi bez zúžení.
   Inline <style> stránky je až za tímhle souborem, proto selektory přes .fh-wrap. */
.fh-wrap .bf-page { padding-bottom: 2rem; }
.fh-wrap .bf-results, .fh-wrap .bf-loading { max-width: none; }
.fh-wrap .bf-seo { max-width: none; margin: 1rem 0 3rem; padding-top: 2.5rem; }
.fh-wrap .bf-seo > section > p { max-width: 75ch; }
.fh-wrap .bf-step { padding: 1.25rem 1.25rem 1.35rem; text-align: left; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 16px; }
.fh-wrap .bf-step-num { margin-left: 0; margin-right: 0; }
.fh-wrap .bf-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; align-items: start; }
.fh-wrap .bf-faq > h2 { grid-column: 1 / -1; }
.fh-wrap .bf-faq-item { margin-bottom: 0; }
@media (min-width: 769px) {
    .fh-wrap .bf-products-grid, .fh-wrap .bf-skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 991.98px) {
    .fh-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 2rem 1.5rem; }
    .fh-visual { display: none; }
    .fh-wrap .bf-faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .fh-wrap .bf-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.85rem; align-items: start; padding: 1rem; }
    .fh-wrap .bf-step-num { grid-row: span 2; margin: 0; width: 30px; height: 30px; font-size: 0.875rem; }
    .fh-wrap .bf-step h3 { margin: 0.2rem 0 0.35rem; }
    .fh-wrap .bf-step p { margin: 0; }
}
@media (max-width: 575.98px) {
    .fh-hero { margin-top: 0; padding: 1.5rem 1.1rem; border-radius: 18px; }
    .fh-lede { font-size: 0.9375rem; margin-bottom: 1.1rem; }
    .fh-hero .bf-search-input { height: 56px; padding-right: 3.6rem; padding-left: 2.8rem; font-size: 16px; }
    .fh-hero .bf-search-icon { left: 0.9rem; }
    .fh-hero .bf-search-btn { padding: 0 0.9rem; }
    .fh-hero .bf-search-btn span { display: none; }
    .fh-hero .bf-search-clear { right: 3.4rem; }
    .fh-try button { font-size: 0.75rem; }
}
