/* Playtix Hero Categories v2.4.0 — LQIP blur-up + bg-image via HTML inline (RUCSS-proof) */
.ptx-hero-cats {
    --ptx-hc-max-w: 1300px;
    --ptx-hc-gap: clamp(30px, 4vw, 55px);
    --ptx-hc-icon-size: clamp(40px, 4vw, 65px);
    --ptx-hc-font-size: clamp(13px, 1vw, 16px);
    --ptx-hc-label-gap: clamp(10px, 1.5vh, 18px);
    --ptx-hc-visual-pad: clamp(50px, 7vh, 80px);
    --ptx-hc-header-offset: 80px;
    --ptx-hc-lift: -6px;
    --ptx-hc-glow: drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
    --ptx-hc-ease: cubic-bezier(.16, 1, .3, 1);
    --ptx-hc-speed: 500ms;
    --ptx-hc-overlay-top: rgba(0, 0, 0, 0.55);
    --ptx-hc-overlay-mid: rgba(0, 0, 0, 0.48);
    --ptx-hc-overlay-bot: rgba(0, 0, 0, 0.58);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    /* background-image vem do inline style no HTML (LQIP → full) */
    background-color: #1a1a2e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* LQIP blur-up: starts blurred, clears on --loaded */
    filter: blur(0px);
    transition: filter 0.6s ease-out;
}
/* Blur only the background while LQIP is showing (before full image loads) */
.ptx-hero-cats:not(.ptx-hero-cats--loaded)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 0;
    transition: opacity 0.6s ease-out;
}
.ptx-hero-cats--loaded::after {
    opacity: 0;
    pointer-events: none;
}
.ptx-hero-cats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--ptx-hc-overlay-top) 0%,
        var(--ptx-hc-overlay-mid) 50%,
        var(--ptx-hc-overlay-bot) 100%);
    z-index: 1;
    pointer-events: none;
}
.ptx-hero-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--ptx-hc-gap);
    width: min(92%, 85vw);
    max-width: var(--ptx-hc-max-w);
    margin: 0 auto;
    padding: calc(var(--ptx-hc-header-offset) + var(--ptx-hc-visual-pad)) clamp(16px, 4vw, var(--ptx-hc-gap)) var(--ptx-hc-visual-pad);
    position: relative;
    z-index: 2;
    align-content: center;
    list-style: none;
}
.ptx-hero-cats__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    padding: clamp(16px, 2vh, 24px);
    border-radius: 12px;
    opacity: 1;
    transition:
        opacity var(--ptx-hc-speed) var(--ptx-hc-ease),
        transform var(--ptx-hc-speed) var(--ptx-hc-ease);
}
.ptx-hero-cats__card:hover {
    transform: translateY(var(--ptx-hc-lift));
}
.ptx-hero-cats__card:active {
    transform: translateY(-2px) scale(0.98);
    transition-duration: 100ms;
}
.ptx-hero-cats__card:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 4px;
    opacity: 1;
}
.ptx-hero-cats__icon {
    width: var(--ptx-hc-icon-size);
    height: var(--ptx-hc-icon-size);
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter var(--ptx-hc-speed) ease;
    flex-shrink: 0;
}
.ptx-hero-cats__card:hover .ptx-hero-cats__icon {
    filter: brightness(0) invert(1) var(--ptx-hc-glow);
}
.ptx-hero-cats__label {
    margin-top: var(--ptx-hc-label-gap);
    font-size: var(--ptx-hc-font-size);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #ffffff;
    white-space: normal;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 1023px) {
    .ptx-hero-cats__grid { width: 90%; }
}
@media (max-width: 767px) {
    .ptx-hero-cats__grid {
        grid-template-columns: repeat(3, 1fr);
        width: 92%;
    }
    .ptx-hero-cats__label {
        font-size: clamp(12px, 3.2vw, 16px);
        white-space: normal;
    }
}
@media (max-width: 479px) {
    .ptx-hero-cats__grid {
        grid-template-columns: repeat(2, 1fr);
        width: 88%;
        padding: 100px 16px 36px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ptx-hero-cats__card,
    .ptx-hero-cats__icon { transition: none; }
    .ptx-hero-cats__card:hover { transform: none; }
    .ptx-hero-cats::after { transition: none; }
}


/* ── Black Eagle icon scale — wider aspect ratio needs boost ── */
.ptx-hero-cats__card[data-slug="serie-black-eagle"] .ptx-hero-cats__icon {
    transform: scale(1.3);
}
/* Maintain proportional scale on hover (1.3 × 1.1 ≈ 1.43) */
body.home .ptx-hero-cats__card[data-slug="serie-black-eagle"]:hover .ptx-hero-cats__icon,
body.page-id-25 .ptx-hero-cats__card[data-slug="serie-black-eagle"]:hover .ptx-hero-cats__icon {
    transform: scale(1.43) !important;
}
