/* BoomBizz – portfólio referencií (zdieľané všetkými variantmi; farby/polomery preberá z :root variantu) */
.pf { --pf-r: var(--pf-radius, 14px); --pf-line: var(--pf-border, var(--line, #E3E0D6)); --pf-chrome: var(--pf-chrome-bg, #EEEDE8); }

/* Filtre a počet */
.pf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.pf__count { margin-left: auto; color: var(--muted, #5A6872); font-size: .95rem; }
.pf__filter { font: inherit; font-weight: 600; font-size: .92rem; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--pf-line); background: transparent; color: var(--navy, #102A3A); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.pf__filter:hover { border-color: var(--navy, #102A3A); }
.pf__filter[aria-pressed="true"] { background: var(--navy, #102A3A); border-color: var(--navy, #102A3A); color: var(--cream, #F5E8C9); }
.pf__filter span { opacity: .65; font-weight: 500; margin-left: .3rem; }
.section--dark .pf__filter, .section--dark .pf__count { color: var(--cream, #F5E8C9); }
.section--dark .pf__filter[aria-pressed="true"] { background: var(--cream, #F5E8C9); color: var(--navy, #102A3A); border-color: var(--cream, #F5E8C9); }

/* Mriežka */
.pf__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pf__empty { grid-column: 1 / -1; color: var(--muted, #5A6872); padding: 2rem 0; text-align: center; }

/* Karta = okno prehliadača */
.pf-card { position: relative; display: flex; flex-direction: column; background: var(--white, #fff); border: 1px solid var(--pf-line); border-radius: var(--pf-r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--pf-shadow, 0 1px 2px rgba(16, 42, 58, .06)); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }
.pf-card:hover, .pf-card:focus-within { transform: translateY(-4px); box-shadow: var(--pf-shadow-hover, 0 18px 40px -20px rgba(16, 42, 58, .45)); border-color: var(--pf-border-hover, var(--navy, #102A3A)); }
.pf-card__chrome { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--pf-chrome); border-bottom: 1px solid var(--pf-line); font-size: .78rem; color: var(--muted, #5A6872); }
.pf-card__dots { display: flex; gap: 5px; }
.pf-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy, #102A3A); opacity: .25; }
.pf-card__dots i:nth-child(2) { background: var(--wine, #941F20); opacity: .8; }
.pf-card__url { flex: 1; background: var(--white, #fff); border-radius: 6px; padding: .25rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--pf-line); }
.pf-card__shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-soft, #FAF3E3); }
.pf-card__shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; }
.pf-card__shot img.pf-card__full { opacity: 0; transition: opacity .3s; will-change: transform; }
.pf-card.is-fullready .pf-card__full { opacity: 1; }
.pf-card.is-fullready .pf-card__top { opacity: 0; }
.pf-card__shot::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgba(16, 42, 58, .25), transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pf-card:hover .pf-card__shot::after { opacity: 1; }
/* hover = pomalý prechod celou stránkou (len ak používateľ nemá vypnuté animácie) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pf-card.is-fullready:hover .pf-card__full, .pf-card.is-fullready:focus-within .pf-card__full { transform: translateY(calc(-100% + var(--pf-view, 240px))); transition: opacity .3s, transform var(--pf-dur, 7s) linear; }
}
.pf-card__body { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; }
.pf-card__name { font-weight: 700; color: var(--navy, #102A3A); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-card__tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .2rem .5rem; border-radius: 4px; background: var(--cream, #F5E8C9); color: var(--navy, #102A3A); }
.pf-card__open { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--pf-line); color: var(--navy, #102A3A); background: transparent; transition: background-color .15s, color .15s, border-color .15s; }
.pf-card__open:hover { background: var(--wine, #941F20); border-color: var(--wine, #941F20); color: var(--cream, #F5E8C9); }
.pf-card__open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-card__detail { position: absolute; inset: 0; z-index: 1; background: none; border: 0; cursor: zoom-in; font: inherit; color: transparent; }
.pf-card__detail:focus-visible { outline: 3px solid var(--wine, #941F20); outline-offset: -3px; border-radius: var(--pf-r); }
.pf-card__body, .pf-card__chrome { position: relative; z-index: 2; pointer-events: none; }
.pf-card__open { pointer-events: auto; }
.pf-card--noshot .pf-card__shot { display: grid; place-items: center; color: var(--muted, #5A6872); font-size: .9rem; }

/* Viac */
.pf__more { text-align: center; margin-top: 2rem; }

/* Lightbox */
.pf-dialog { width: min(100% - 2rem, 1180px); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--pf-r); background: var(--white, #fff); color: var(--ink, #1B2730); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.pf-dialog::backdrop { background: rgba(11, 30, 43, .72); backdrop-filter: blur(4px); }
.pf-dialog[open] { display: flex; flex-direction: column; }
.pf-dialog__head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--pf-line); }
.pf-dialog__title { margin: 0; font-size: 1.15rem; color: var(--navy, #102A3A); }
.pf-dialog__host { color: var(--muted, #5A6872); font-size: .9rem; text-decoration: none; }
.pf-dialog__host:hover { color: var(--wine, #941F20); text-decoration: underline; }
.pf-dialog__close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pf-line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--navy, #102A3A); }
.pf-dialog__close:hover { background: var(--navy, #102A3A); color: var(--cream, #F5E8C9); }
.pf-dialog__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pf-dialog__body { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; padding: 1.5rem; background: var(--pf-chrome); overflow: hidden; min-height: 0; flex: 1; }
.pf-frame { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--white, #fff); border: 1px solid var(--pf-line); box-shadow: 0 20px 40px -24px rgba(16, 42, 58, .45); min-height: 0; }
.pf-frame__bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: #F3F2EE; border-bottom: 1px solid var(--pf-line); font-size: .78rem; color: var(--muted, #5A6872); }
.pf-frame__scroll { overflow-y: auto; overscroll-behavior: contain; max-height: min(68vh, 760px); scrollbar-width: thin; }
.pf-frame__scroll img { width: 100%; height: auto; display: block; }
.pf-phone { align-self: start; justify-self: center; width: 240px; border-radius: 30px; background: var(--navy, #102A3A); padding: 10px; box-shadow: 0 20px 40px -24px rgba(16, 42, 58, .6); }
.pf-phone__screen { border-radius: 22px; overflow: hidden; background: var(--white, #fff); aspect-ratio: 390 / 844; }
.pf-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pf-phone__notch { width: 70px; height: 6px; border-radius: 3px; background: rgba(245, 232, 201, .5); margin: 4px auto 8px; }
.pf-dialog__foot { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-top: 1px solid var(--pf-line); }
.pf-dialog__nav { display: flex; gap: .4rem; }
.pf-dialog__nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--pf-line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--navy, #102A3A); }
.pf-dialog__nav button:hover { background: var(--navy, #102A3A); color: var(--cream, #F5E8C9); }
.pf-dialog__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-dialog__pos { color: var(--muted, #5A6872); font-size: .9rem; }
.pf-dialog__foot .btn { margin-left: auto; }
.pf-dialog__hint { font-size: .8rem; color: var(--muted, #5A6872); margin-left: auto; }

/* Fallback bez JS */
.pf-fallback { list-style: disc; padding-left: 1.2rem; columns: 2; gap: 2rem; }
.js .pf-fallback { display: none; }

@media (max-width: 1000px) {
  .pf__grid { grid-template-columns: repeat(2, 1fr); }
  .pf-dialog__body { grid-template-columns: 1fr; }
  .pf-phone { display: none; }
}
@media (max-width: 640px) {
  .pf__grid { grid-template-columns: 1fr; }
  .pf__count { width: 100%; margin-left: 0; }
  .pf-dialog { width: 100%; max-height: 100vh; border-radius: 0; }
  .pf-dialog__body { padding: .8rem; }
  .pf-frame__scroll { max-height: 60vh; }
  .pf-dialog__hint { display: none; }
}
