/* =========================================================
   ŠABLONA: single Trenér (bio)
   Hlavička (fotka, jméno, role, kontakty) + obsah (taby).
   Fonty a barvy dle brandu. WYSIWYG obsah plně stylovaný.
   ========================================================= */

.mts-trener {
    background-color: var(--color-bg);
}
.mts-trener,
.mts-trener * {
    font-family: var(--font-body);
}

/* =========================================================
   SEKCE 1: HLAVIČKA
   ========================================================= */
.mts-trener-hlavicka {
    position: relative;
    top: 5.5rem;
    padding: 4rem 0;
    background-color: var(--color-body);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Triskelion vodoznak v pozadí (jako Kariéra) */
.mts-trener-hlavicka::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45rem;
    height: 45rem;
    background-color: var(--color-ground, #F4EBE7);
    opacity: 0.1;
    z-index: 1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 146.3 143'%3E%3Cpath d='M71.4,86.8c2,6.2,5.4,12.6,5.4,12.6c33.2-26.8,44-75.6-4-99.4C42.8,12.2,34.4,47.8,46,70l-0.1-0.1 c11.1-1.1,18.6,0.9,18.6,0.9C46.2,52.6,57,25.4,72.8,16.6h0.4C101.4,36,90.8,67.6,71.4,86.8z M104.4,75.8c21.8,1.6,44.2,20.6,41.8,51.8c-15.6,21.4-64.6,28.8-85.6-35.4c4-1.2,7.8-3,10.8-5.4 c3.2,11,26.8,60.2,61,35.8c-0.6-19.2-13.2-36-36.2-32.4C99.6,82.2,102.4,78.4,104.4,75.8z M70,80.6C30,66.6-2.8,87,0.2,128.8c10,14,45.6,25.4,66.4-5.2c-3.2-6.2-5-10-8.6-18.2 c-3.8,25.2-29.6,29-45.2,17.8C13.6,99.4,33,82.6,60.6,91.6C65.2,86,67.2,83.8,70,80.6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 146.3 143'%3E%3Cpath d='M71.4,86.8c2,6.2,5.4,12.6,5.4,12.6c33.2-26.8,44-75.6-4-99.4C42.8,12.2,34.4,47.8,46,70l-0.1-0.1 c11.1-1.1,18.6,0.9,18.6,0.9C46.2,52.6,57,25.4,72.8,16.6h0.4C101.4,36,90.8,67.6,71.4,86.8z M104.4,75.8c21.8,1.6,44.2,20.6,41.8,51.8c-15.6,21.4-64.6,28.8-85.6-35.4c4-1.2,7.8-3,10.8-5.4 c3.2,11,26.8,60.2,61,35.8c-0.6-19.2-13.2-36-36.2-32.4C99.6,82.2,102.4,78.4,104.4,75.8z M70,80.6C30,66.6-2.8,87,0.2,128.8c10,14,45.6,25.4,66.4-5.2c-3.2-6.2-5-10-8.6-18.2 c-3.8,25.2-29.6,29-45.2,17.8C13.6,99.4,33,82.6,60.6,91.6C65.2,86,67.2,83.8,70,80.6z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* Obsah hlavičky nad vodoznakem */
.mts-trener-hlavicka > .container {
    position: relative;
    z-index: 2;
}

/* Fotka v kolečku */
.mts-trener-foto {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.mts-trener-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mts-trener-jmeno {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 900;
    line-height: 1.15;
    color: white;
    margin: 0 0 0.5rem;
}
.mts-trener-role {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1.15rem;
    margin: 0 0 1.75rem;
}

/* Kontaktní ikony */
.mts-trener-kontakty {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.mts-trener-kontakt {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: white;
    color: var(--color-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.mts-trener-kontakt:hover {
    background-color: var(--color-sport);
    color: white;
    transform: translateY(-2px);
}
.mts-trener-kontakt svg {
    width: 1.2rem;
    height: 1.2rem;
    display: block;
}

/* =========================================================
   SEKCE 2: OBSAH (taby)
   ========================================================= */
.mts-trener-obsah {
    padding: 10rem 0 5rem;
}
.mts-trener-taby {
    max-width: 850px;
    margin: 0 auto;
}

/* Přepínače tabů */
.mts-trener-taby-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #E5E0D8;
    margin-bottom: 2.5rem;
}
.mts-trener-tab-btn {
    padding: 0.9rem 2rem;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--color-slate);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.mts-trener-tab-btn:hover {
    color: var(--color-sport);
}
.mts-trener-tab-btn.active {
    color: var(--color-sport);
    border-bottom-color: var(--color-sport);
}

/* Panely */
.mts-trener-tab-panel[hidden] {
    display: none;
}
.mts-trener-tab-panel.is-animating {
    animation: mts-trener-fade 0.4s ease;
}
@keyframes mts-trener-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bílá karta obsahu */
.mts-trener-tab-obsah {
    background-color: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: var(--color-text, #4A5568);
    line-height: 1.7;
    font-size: 1.125rem;
}

/* =========================================================
   WYSIWYG OBSAH (cokoli, co trenér vloží)
   ========================================================= */
.mts-trener-tab-obsah > *:first-child {
    margin-top: 0;
}
.mts-trener-tab-obsah > *:last-child {
    margin-bottom: 0;
}
.mts-trener-tab-obsah p {
    margin: 0 0 1.25rem;
}
.mts-trener-tab-obsah h2,
.mts-trener-tab-obsah h3,
.mts-trener-tab-obsah h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-sport);
    line-height: 1.2;
    margin: 2rem 0 1rem;
}
.mts-trener-tab-obsah h2 { font-size: 2rem; }
.mts-trener-tab-obsah h3 { font-size: 1.5rem; }
.mts-trener-tab-obsah h4 { font-size: 1.25rem; }

.mts-trener-tab-obsah a {
    color: var(--color-mind);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}
.mts-trener-tab-obsah a:hover {
    color: var(--color-sport);
}

.mts-trener-tab-obsah ul,
.mts-trener-tab-obsah ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}
.mts-trener-tab-obsah li {
    margin-bottom: 0.5rem;
}

.mts-trener-tab-obsah strong {
    color: var(--color-sport);
    font-weight: 700;
}

/* Blockquote (modrý proužek, Fraunces italic) */
.mts-trener-tab-obsah blockquote {
    border-left: 4px solid var(--color-body);
    padding-left: 1.5rem;
    margin: 1.75rem 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--color-sport);
}
.mts-trener-tab-obsah blockquote p {
    margin: 0;
}

/* Obrázky a média */
.mts-trener-tab-obsah img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}
.mts-trener-tab-obsah iframe {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* =========================================================
   RESPONZIVITA
   ========================================================= */
@media (max-width: 767px) {
    .mts-trener-hlavicka {
        padding: 3.5rem 0 3rem;
    }
    .mts-trener-foto {
        width: 8rem;
        height: 8rem;
    }
    .mts-trener-obsah {
        padding: 8rem 0 4rem;
    }
    .mts-trener-tab-obsah {
        padding: 2rem 1.5rem;
    }
    .mts-trener-tab-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
