/**
 * Expert Page — frontend styling for /expert/{slug}/ pages
 * Design system: Gilroy/Montserrat, sharp-corner buttons, #000 borders
 */

/* =============================================================================
   HERO HEADER
   ============================================================================= */
.lidery-expert-header {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1140px;
    margin: 0 auto;
    font-family: 'Gilroy', 'Montserrat', sans-serif;
}

/* --- Left column: avatar + social icons --- */
.lidery-expert-left {
    flex-shrink: 0;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lidery-expert-avatar {
    width: 220px;
}

.lidery-expert-avatar img {
    border-radius: 12px;
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lidery-expert-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lidery-expert-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: opacity 0.2s;
    text-decoration: none;
}

.lidery-expert-social:hover {
    opacity: 0.7;
}

.lidery-expert-social svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* --- Right column: info --- */
.lidery-expert-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    font-family: 'Gilroy', 'Montserrat', sans-serif;
}

.lidery-expert-name {
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: #000;
}

.lidery-expert-role {
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    color: #333;
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.lidery-expert-bio {
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
}

/* =============================================================================
   BADGES — same row, compact
   ============================================================================= */
.lidery-expert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.lidery-expert-badge {
    display: inline-flex;
    align-items: center;
}

.lidery-expert-badge-img {
    width: 50px;
    object-fit: contain;
}

.lidery-expert-badge-text {
    padding: 2px 6px;
    font-size: 12px;
    font-family: 'Gilroy', 'Montserrat', sans-serif;
}

/* =============================================================================
   LINKS — sharp corners, unified with tag-cloud-link filter style
   ============================================================================= */
.lidery-expert-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lidery-expert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #000;
    border-radius: 0;
    text-decoration: none !important;
    color: #000 !important;
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: all 150ms ease-out;
}

.lidery-expert-link:hover {
    background: #000;
    color: #fff !important;
}

.lidery-expert-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: #000;
    color: #000;
}

.lidery-expert-link:hover svg {
    stroke: #fff;
    color: #fff;
}

/* =============================================================================
   STATS BADGES (Articles, Video, Speeches, Trainings)
   ============================================================================= */
.lidery-expert-stats-hr {
    border: none;
    margin: 0;
}

.lidery-expert-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 0 8px 0;
}

.lidery-expert-stat {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: #10192a !important;
    border: 1px solid #c0c0c0;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    cursor: pointer;
    transition: border-color 150ms ease-out, color 150ms ease-out;
}

.lidery-expert-stat:hover {
    border-color: #000;
    color: #000 !important;
}

/* Modal styles (reuse cl-speech-modal if not already loaded) */
.cl-speech-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.cl-speech-modal-overlay.active {
    display: flex;
}
.cl-speech-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.cl-speech-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.cl-speech-modal-close:hover {
    color: #000;
    background: none !important;
}
.cl-speech-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}
.cl-speech-modal-row {
    margin-bottom: 6px;
    color: #000;
}
.cl-speech-modal-row b {
    color: #000;
}
.cl-speech-modal-doklads {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #000;
}

/* =============================================================================
   SECTIONS (Video, Articles)
   ============================================================================= */
.lidery-expert-section-heading {
    font-family: 'Gilroy', 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .lidery-expert-header {
        gap: 1.5rem;
    }

    .lidery-expert-left {
        width: 160px;
    }

    .lidery-expert-avatar {
        width: 160px;
    }

    .lidery-expert-name {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .lidery-expert-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lidery-expert-left {
        width: 180px;
    }

    .lidery-expert-avatar {
        width: 180px;
    }

    .lidery-expert-links {
        justify-content: center;
    }

    .lidery-expert-badges {
        justify-content: center;
    }

    .lidery-expert-socials {
        justify-content: center;
    }

    .lidery-expert-stats {
        justify-content: center;
    }
}
