/**
 * Swim School Core — sekcja zespołu instruktorów (Team Section).
 *
 * FRONT-TEAM-01 (09.07.2026): widget prezentacyjny paczka 5 sylwetek instruktorów
 * na overlap flex z linią markerów + rząd nazwisk pod paczką (desktop) lub
 * focus card z imieniem+rolą aktywnego (mobile <900px).
 *
 * Fonty ładowane osobnym handle `ssc-team-section-fonts` (Playfair Display 500
 * + Inter 500/600) przez `SSC_Team_Section::enqueue_assets()` — nie @import.
 *
 * Konwencja specificity: wszystkie selektory scoped przez `.pk-team-mock4`
 * (isolation od reszty theme CSS + Elementor).
 *
 * Namespace .pk-* pochodzi z prototypowego mockupu (paczka koordynatora) —
 * anti-collision zweryfikowana: 0 wystąpień w innych SSC CSS.
 *
 * GAP-C (FRONT-TEAM-01): usunięto dead code .pk-header, .pk-eyebrow, .pk-title,
 * .pk-title em — nagłówek renderowany przez Elementor widget Heading, nie shortcode.
 * GAP-G: usunięto dead code .pk-focus-bio — brak pola bio w payload get_members().
 */

.pk-team-mock4 {
    --pk-blue: #1552F0;
    --pk-blue-deep: #0A3AAB;
    --pk-blue-soft: #F0F4FA;
    --pk-ink: #0A0F1F;
    --pk-ink-mute: #6B7280;
    --pk-white: #FFFFFF;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pk-white);
    color: var(--pk-ink);
    padding: 48px 24px 64px;
    position: relative;
    overflow: hidden;
}

.pk-team-mock4 * { box-sizing: border-box; }

.pk-container { max-width: 1280px; margin: 0 auto; }

/* PACZKA — flex z overlap */
.pk-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    min-height: 460px;
}

.pk-slot {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    flex: 0 0 22%;
    max-width: 260px;
    position: relative;
    margin-left: -6%;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease, filter 0.4s ease;
}

.pk-slot:first-child { margin-left: 0; }

.pk-slot:focus-visible {
    outline: 2px solid var(--pk-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.pk-figure {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pk-figure img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Subtle drop shadow zeby paczka miala glebie */
    filter: drop-shadow(0 20px 24px rgba(10, 15, 31, 0.08));
}

/* HOVER STATE — wybrany wysuwa sie z paczki */
.pk-team-mock4.has-active .pk-slot:not(.is-active) {
    opacity: 0.4;
    filter: grayscale(30%);
}

.pk-team-mock4.has-active .pk-slot.is-active {
    z-index: 10 !important;
}

.pk-team-mock4.has-active .pk-slot.is-active .pk-figure img {
    transform: scale(1.08);
    filter: drop-shadow(0 30px 40px rgba(21, 82, 240, 0.18));
}

/* SIGNATURE — linia wody z 5 markerami */
.pk-waterline {
    max-width: 900px;
    margin: 32px auto 24px;
    position: relative;
    height: 24px;
    padding: 0 40px;
}

.pk-line {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 11px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(21, 82, 240, 0.25) 15%, rgba(21, 82, 240, 0.25) 85%, transparent);
}

.pk-markers {
    position: absolute;
    left: 40px; right: 40px; top: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.pk-dot {
    width: 12px;
    height: 12px;
    background: var(--pk-white);
    border: 1px solid var(--pk-blue);
    border-radius: 50%;
    margin-top: 5px;
    justify-self: center;
    box-sizing: border-box;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    cursor: pointer;
}

.pk-team-mock4.has-active .pk-dot.is-active {
    background: var(--pk-blue);
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(21, 82, 240, 0.15);
}

/* NAZWISKA W RZEDZIE POD PACZKA */
.pk-names {
    list-style: none;
    padding: 0 40px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    max-width: 900px;
}

.pk-name {
    text-align: center;
    padding: 0 4px;
    transition: opacity 0.3s ease;
}

.pk-first {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--pk-ink);
    display: block;
    line-height: 1.15;
}

.pk-last {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pk-ink-mute);
    display: block;
    margin-top: 4px;
}

.pk-team-mock4.has-active .pk-name:not(.is-active) { opacity: 0.35; }
.pk-team-mock4.has-active .pk-name.is-active .pk-first { color: var(--pk-blue); }

/* ============ FOCUS CARD (mobile only) ============ */
.pk-focus-card {
    display: none;
    max-width: 500px;
    margin: 24px auto 0;
    padding: 20px 20px 8px;
    text-align: center;
}

.pk-focus-num {
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--pk-blue);
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 4px 10px;
    background: var(--pk-blue-soft);
    border-radius: 999px;
    margin: 0 0 14px;
    transition: opacity 0.2s ease;
}

.pk-focus-name {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pk-ink);
    margin: 0 0 8px;
    transition: opacity 0.2s ease;
}

.pk-focus-role {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pk-blue);
    margin: 0 0 14px;
    transition: opacity 0.2s ease;
}

.pk-fade { opacity: 0.15; }

/* ============================================================
 * HF-FRONT-TEAM-01-1: SPECIFICITY BOOST (Elementor override)
 * Elementor i theme maja globalne reguly dla button i img
 * ktore nadpisuja nasze base rules. !important na kluczowych
 * properties zabezpiecza render.
 * ============================================================ */

/* Section root — zabezpieczenie theme background override */
section.pk-team-mock4 {
    background: var(--pk-white) !important;
}

/* Slot button reset — walka z Elementor .elementor button */
.pk-team-mock4 button.pk-slot,
.pk-team-mock4 .pk-slot {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    color: inherit !important;
    font-family: inherit !important;
    text-shadow: none !important;
}

/* Image inside slot — walka z .elementor img box-shadow, border */
.pk-team-mock4 .pk-figure img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Dot button — fixed dimensions vs Elementor min-width */
.pk-team-mock4 button.pk-dot,
.pk-team-mock4 .pk-dot {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    background: var(--pk-white) !important;
    background-color: var(--pk-white) !important;
    border: 1px solid var(--pk-blue) !important;
    border-radius: 50% !important;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    box-sizing: border-box !important;
    color: transparent !important;
    text-shadow: none !important;
    font-size: 0 !important;
}

.pk-team-mock4.has-active .pk-dot.is-active {
    background: var(--pk-blue) !important;
    background-color: var(--pk-blue) !important;
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(21, 82, 240, 0.15) !important;
}

/* Mobile — kropki wieksze do tap */
@media (max-width: 900px) {
    .pk-team-mock4 button.pk-dot,
    .pk-team-mock4 .pk-dot {
        width: 14px !important;
        height: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
        border-width: 1.5px !important;
    }
}

/* ============================================================
 * HF-FRONT-TEAM-01-2: PADDING + FOCUS CARD TYPOGRAPHY
 * Elementor daje wlasny padding sekcji + theme ma H2 override.
 * ============================================================ */

/* Section padding — zmniejszony, Elementor kontroluje ekstra padding sekcji */
section.pk-team-mock4 {
    padding: 16px 24px 24px !important;
}

/* Focus card typography — walka z theme .pk-focus-name jako <h2> */
.pk-team-mock4 .pk-focus-num {
    font-family: 'Playfair Display', serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.1em !important;
    color: var(--pk-blue) !important;
    display: inline-block !important;
    padding: 4px 10px !important;
    background: var(--pk-blue-soft) !important;
    border-radius: 999px !important;
    margin: 0 0 12px !important;
    text-transform: none !important;
}

.pk-team-mock4 h2.pk-focus-name,
.pk-team-mock4 .pk-focus-name {
    font-family: 'Playfair Display', serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    color: var(--pk-ink) !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    text-transform: none !important;
}

.pk-team-mock4 .pk-focus-role {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--pk-blue) !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 900px) {
    section.pk-team-mock4 {
        padding: 12px 12px 20px !important;
    }
}

@media (max-width: 400px) {
    .pk-team-mock4 h2.pk-focus-name,
    .pk-team-mock4 .pk-focus-name {
        font-size: 22px !important;
    }
}

/* ============================================================
 * HF-FRONT-TEAM-01-3: EXTREME COMPACT (zero padding sekcji)
 * PO ogarnia odstepy miedzy kontenerami przez Elementor section
 * padding — nasz shortcode ma byc maksymalnie kompaktowy.
 * ============================================================ */

/* Padding sekcji = 0. Nasz shortcode nie kontroluje odstepow
 * od sasiednich sekcji — robi to Elementor. */
section.pk-team-mock4 {
    padding: 0 !important;
}

/* Stage min-height = 0. Wysokosc dyktowana wysokoscia sylwetek
 * (~245px w slot 22%), nie sztywno 460px jak w base rules. */
.pk-team-mock4 .pk-stage {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Waterline margin — 8px od sylwetek, 4px do names/focus-card */
.pk-team-mock4 .pk-waterline {
    margin: 8px auto 4px !important;
}

/* Focus card (mobile) — minimalne odstepy */
.pk-team-mock4 .pk-focus-card {
    margin: 8px auto 0 !important;
    padding: 4px 20px 0 !important;
}

@media (max-width: 900px) {
    section.pk-team-mock4 {
        padding: 0 !important;
    }
    .pk-team-mock4 .pk-stage {
        min-height: 0 !important;
    }
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
    .pk-team-mock4 { padding: 32px 12px 48px; }

    /* Paczka: mniejszy overlap zeby nie przeplataly sie */
    .pk-stage { padding: 0 4px; min-height: 360px; }
    .pk-slot {
        flex: 0 0 26%;
        margin-left: -6%;
    }

    /* Delikatniejszy scale bo malo miejsca */
    .pk-team-mock4.has-active .pk-slot.is-active .pk-figure img {
        transform: scale(1.06);
    }
    .pk-team-mock4.has-active .pk-slot:not(.is-active) {
        opacity: 0.55;
        filter: grayscale(15%);
    }

    /* Linia + kropki: kropki wieksze + hit-area padding do latwego tap */
    .pk-waterline {
        margin: 16px auto 0;
        max-width: 340px;
        height: 32px;
        padding: 0 20px;
    }
    .pk-line { left: 20px; right: 20px; top: 15px; }
    .pk-markers { left: 20px; right: 20px; }
    .pk-dot {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
        margin-top: 8px;
        position: relative;
    }
    .pk-dot::after {
        content: '';
        position: absolute;
        inset: -12px;
    }

    /* Ukryj rzad 5 nazwisk (nie miesci sie) */
    .pk-names { display: none; }

    /* Pokaz focus card */
    .pk-focus-card { display: block; }
}

/* Bardzo wąskie ekrany (~320px) */
@media (max-width: 400px) {
    .pk-stage { min-height: 300px; }
    .pk-slot { flex: 0 0 28%; margin-left: -8%; }
    .pk-focus-name { font-size: 26px; }
}
