/* ====== TRAINER POPUP (trp__) — Standalone, theme-aware ====== */
/* --trp-accent, --trp-accent-rgb, --trp-accent-light are defined
   in each bootcamp package CSS (:root). Do NOT add a :root block here
   or it will override the package-specific colours (cascade order). */

.trp__popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: safe center;
    justify-content: safe center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}
.trp__popup--active {
    opacity: 1;
    visibility: visible;
}
.trp__container {
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    border: 2px solid var(--trp-accent);
    background: white;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--trp-accent-rgb), 0.3) transparent;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.trp__container::-webkit-scrollbar { width: 6px; }
.trp__container::-webkit-scrollbar-track { background: transparent; }
.trp__container::-webkit-scrollbar-thumb { background: rgba(var(--trp-accent-rgb), 0.3); border-radius: 3px; }
.trp__closeBtn {
    position: sticky;
    top: 0;
    align-self: flex-end;
    margin-bottom: -36px;
    z-index: 10;
    color: var(--trp-accent);
    font-size: 20px;
    outline: none;
    border: none;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.trp__closeBtn:hover { background: rgba(var(--trp-accent-rgb), 0.08); }
.trp__top {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}
.trp__top img {
    border-radius: 16px;
    width: 220px;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.trp__topInfo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.trp__name {
    font-size: 36px;
    color: var(--trp-accent);
    font-weight: 800;
    line-height: 1em;
}
.trp__linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0a66c2;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.trp__linkedin:hover {
    color: #004182;
    text-decoration: underline;
}
.trp__linkedin i { font-size: 18px; }
.trp__text {
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 20px 0 0 0;
    line-height: 1.6em;
}
.trp__text p { margin: 0 0 8px; }
.trp__h3 {
    color: var(--trp-accent);
    font-size: 18px;
    font-weight: 800;
    margin: 30px 0 8px 0;
    width: 100%;
}
.trp__trainings {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.trp__training {
    color: black;
    font-size: 16px;
    outline: none;
    text-decoration: underline;
    width: 100%;
    font-weight: 600;
    padding: 3px 0;
    transition: color 0.3s;
}
.trp__training i {
    padding: 0 5px 0 0;
    color: var(--trp-accent);
}
.trp__training:hover { color: var(--trp-accent); }

@media only screen and (max-width: 850px) {
    .trp__container { padding: 25px 20px; width: 96%; }
    .trp__top { flex-direction: column; align-items: flex-start; }
    .trp__top img { width: 90%; max-width: 220px; }
    .trp__name { font-size: 28px; }
}

/* ---- Bootcamp trainer card: clickable + "pokaż więcej" button ---- */
.bp .trainer__content { cursor: pointer; }
.bp .trainer__content:hover { border-color: rgba(var(--trp-accent-rgb), .4); box-shadow: 0 0 60px rgba(var(--trp-accent-rgb), .12); }
.bp .trainer__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 28px;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff;
    background: rgba(var(--trp-accent-rgb), .25);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(var(--trp-accent-rgb), .45);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(var(--trp-accent-rgb), .15);
    transition: all .3s ease;
    cursor: pointer;
}
.bp .trainer__more:hover { color: #fff; gap: 14px; background: rgba(var(--trp-accent-rgb), .4); border-color: rgba(var(--trp-accent-rgb), .7); box-shadow: 0 4px 20px rgba(var(--trp-accent-rgb), .25); }
.bp .trainer__more i { font-size: .8rem; transition: transform .3s; }
.bp .trainer__content:hover .trainer__more i { transform: translateX(4px); }
