/* ==========================================================================
   EPP Team Member Widget — style.css
   ========================================================================== */

/* ── Base wrap ───────────────────────────────────────────────────────────── */
.eppro-tm-wrap {
    position: relative;
    background: var(--eppro-card-bg, #ffffff);
    border: 1.5px solid var(--eppro-card-border, #e5e7eb);
    border-radius: var(--eppro-radius-lg, 14px);
    box-shadow: var(--eppro-shadow-sm, 0 2px 8px rgba(0,0,0,.08));
    padding: 32px 24px;
    transition: transform var(--eppro-transition, .28s ease), box-shadow var(--eppro-transition, .28s ease), border-color var(--eppro-transition, .28s ease);
}
.eppro-tm-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--eppro-shadow-md, 0 16px 48px rgba(0,0,0,.13));
    border-color: var(--eppro-gray-300, #d1d5db);
}

/* Top accent bar — classic & minimal cards */
.eppro-tm-style-classic::before,
.eppro-tm-style-minimal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--eppro-primary, #7c3aed), var(--eppro-secondary, #06b6d4));
    border-radius: var(--eppro-radius-lg, 14px) var(--eppro-radius-lg, 14px) 0 0;
}

/* ── Photo ───────────────────────────────────────────────────────────────── */
.eppro-tm-photo {
    display: block;
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    line-height: 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.eppro-tm-style-classic .eppro-tm-photo,
.eppro-tm-style-minimal .eppro-tm-photo {
    margin-left: auto;
    margin-right: auto;
}
.eppro-tm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--eppro-transition, .3s ease);
}
.eppro-tm-wrap:hover .eppro-tm-photo img {
    transform: scale(1.06);
}

/* Circle shape ring accent */
.eppro-tm-shape-circle .eppro-tm-photo {
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--eppro-primary-light, #ede9fe), 0 0 0 4.5px var(--eppro-card-border, #e5e7eb);
    transition: box-shadow var(--eppro-transition, .28s ease);
}
.eppro-tm-wrap:hover .eppro-tm-shape-circle .eppro-tm-photo {
    box-shadow: 0 0 0 3px var(--eppro-primary, #7c3aed), 0 0 0 5px var(--eppro-primary-light, #ede9fe);
}

/* Photo shapes */
.eppro-tm-shape-circle  .eppro-tm-photo img { border-radius: 50%; }
.eppro-tm-shape-rounded .eppro-tm-photo     { border-radius: 16px; }
.eppro-tm-shape-rounded .eppro-tm-photo img { border-radius: 16px; }
.eppro-tm-shape-square  .eppro-tm-photo     { border-radius: 0; }
.eppro-tm-shape-square  .eppro-tm-photo img { border-radius: 0; }

/* ── Body ────────────────────────────────────────────────────────────────── */
.eppro-tm-body {
    display: flex;
    flex-direction: column;
    align-items: inherit;
}

/* ── Info (name + designation) ───────────────────────────────────────────── */
.eppro-tm-info {
    margin-bottom: 0;
}
.eppro-tm-name {
    font-size: var(--eppro-text-md, 1.125rem);
    font-weight: var(--eppro-font-bold, 700);
    color: var(--eppro-gray-900, #111827);
    margin: 0 0 4px;
    line-height: 1.3;
    transition: color var(--eppro-transition-fast, .2s);
}
.eppro-tm-name a {
    color: inherit;
    text-decoration: none;
    transition: color var(--eppro-transition-fast, .2s);
}
.eppro-tm-name a:hover {
    color: var(--eppro-primary, #7c3aed);
}
.eppro-tm-designation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--eppro-text-sm, .85rem);
    font-weight: var(--eppro-font-semibold, 600);
    color: var(--eppro-primary, #7c3aed);
    margin-bottom: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.eppro-tm-designation::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--eppro-primary, #7c3aed);
    flex-shrink: 0;
}

/* ── Bio ─────────────────────────────────────────────────────────────────── */
.eppro-tm-bio {
    font-size: var(--eppro-text-base, .9rem);
    color: var(--eppro-gray-500, #6b7280);
    line-height: var(--eppro-leading-relaxed, 1.7);
    margin: 0 0 20px;
}

.eppro-tm-bio-wrap { position: relative; }

.eppro-tm-bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: var(--eppro-text-sm, 13px);
    font-weight: var(--eppro-font-semibold, 600);
    color: var(--eppro-primary, #7c3aed);
    cursor: pointer;
    margin-bottom: 12px;
    transition: color var(--eppro-transition, .22s ease);
}

.eppro-tm-bio-toggle:hover { color: var(--eppro-primary-dark, #6d28d9); }

/* ── Skills ─────────────────────────────────────────────────────────────── */
.eppro-tm-skills {
    width: 100%;
    text-align: left;
}

.eppro-tm-skill-item + .eppro-tm-skill-item { margin-top: 14px; }

.eppro-tm-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.eppro-tm-skill-label {
    font-size: var(--eppro-text-sm, 13px);
    font-weight: var(--eppro-font-medium, 500);
    color: var(--eppro-gray-700, #374151);
}

.eppro-tm-skill-percent {
    font-size: var(--eppro-text-xs, 12px);
    color: var(--eppro-gray-500, #6b7280);
}

.eppro-tm-skill-track {
    width: 100%;
    height: 6px;
    background: var(--eppro-gray-200, #e5e7eb);
    border-radius: 6px;
    overflow: hidden;
}

.eppro-tm-skill-fill {
    height: 100%;
    background: var(--eppro-primary, #7c3aed);
    border-radius: 6px;
    transition: width .6s ease;
}

/* ── Social list ─────────────────────────────────────────────────────────── */
.eppro-tm-social-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: inherit;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.eppro-tm-social-item {
    list-style: none;
    margin: 0;
    padding: 0;
}
.eppro-tm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--eppro-gray-100, #f3f4f6);
    color: var(--eppro-gray-500, #6b7280);
    font-size: var(--eppro-text-base, 15px);
    text-decoration: none;
    transition: background var(--eppro-transition, .22s ease), color var(--eppro-transition, .22s ease), transform var(--eppro-transition, .22s ease), box-shadow var(--eppro-transition, .22s ease);
    line-height: 1;
}
.eppro-tm-social-link i, .eppro-tm-social-link svg {
    pointer-events: none;
    width: 1em; height: 1em;
    fill: currentColor;
}
.eppro-tm-social-link:hover {
    background: var(--eppro-primary, #7c3aed);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--eppro-shadow-colored, 0 4px 12px rgba(124,58,237,.3));
}
/* ==========================================================================
   Card style: CLASSIC (default — photo top, content below, centered)
   ========================================================================== */
.eppro-tm-style-classic {
    text-align: center;
}
.eppro-tm-style-classic .eppro-tm-social-list {
    justify-content: center;
}
.eppro-tm-style-classic .eppro-tm-body {
    align-items: center;
}

/* ==========================================================================
   Card style: MODERN (horizontal — photo left, content right)
   ========================================================================== */
.eppro-tm-style-modern {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
    padding: 28px 24px;
}
.eppro-tm-style-modern .eppro-tm-photo {
    flex-shrink: 0;
    margin-bottom: 0;
}
.eppro-tm-style-modern .eppro-tm-body {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}
.eppro-tm-style-modern .eppro-tm-social-list {
    justify-content: flex-start;
}

/* ==========================================================================
   Card style: OVERLAY (photo full-bleed, content revealed on hover)
   ========================================================================== */
.eppro-tm-style-overlay {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.eppro-tm-social-link:focus-visible {
    outline: none;
    box-shadow: var(--eppro-focus-ring, 0 0 0 3px rgba(124,58,237,.25));
}
.eppro-tm-overlay-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}
.eppro-tm-overlay-image .eppro-tm-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.eppro-tm-wrap:hover .eppro-tm-overlay-image .eppro-tm-bg-img {
    transform: scale(1.07);
}
.eppro-tm-overlay-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,24,39,.88) 0%, rgba(17,24,39,.2) 50%, transparent 100%);
    opacity: .7;
    transition: opacity .3s ease;
}
.eppro-tm-wrap:hover .eppro-tm-overlay-mask {
    opacity: 1;
}
.eppro-tm-overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 22px 22px;
    transform: translateY(8px);
    transition: transform .3s ease;
}
.eppro-tm-wrap:hover .eppro-tm-overlay-content {
    transform: translateY(0);
}
.eppro-tm-style-overlay .eppro-tm-name {
    color: #ffffff;
}
.eppro-tm-style-overlay .eppro-tm-name a {
    color: #ffffff;
}
.eppro-tm-style-overlay .eppro-tm-designation {
    color: #c4b5fd;
}
.eppro-tm-style-overlay .eppro-tm-info {
    margin-bottom: 12px;
}
.eppro-tm-style-overlay .eppro-tm-social-list {
    justify-content: flex-start;
}
.eppro-tm-style-overlay .eppro-tm-social-link {
    background: rgba(255,255,255,.15);
    color: #ffffff;
    backdrop-filter: blur(4px);
}
.eppro-tm-style-overlay .eppro-tm-social-link:hover {
    background: var(--eppro-primary, #7c3aed);
    color: #ffffff;
}

/* ==========================================================================
   Card style: MINIMAL (no card bg, clean open layout)
   ========================================================================== */
.eppro-tm-style-minimal {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    text-align: center;
    padding: 16px 8px;
}
.eppro-tm-style-minimal:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: transparent;
}
.eppro-tm-style-minimal::before { display: none; }
.eppro-tm-style-minimal .eppro-tm-body {
    align-items: center;
}
.eppro-tm-style-minimal .eppro-tm-social-list {
    justify-content: center;
}
.eppro-tm-style-minimal .eppro-tm-photo img {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.eppro-tm-style-minimal .eppro-tm-designation {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.eppro-tm-style-minimal .eppro-tm-designation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--eppro-primary, #7c3aed);
    border-radius: 2px;
}

/* ── Department ───────────────────────────────────────────────────────────── */
.eppro-tm-department {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--eppro-primary, #7c3aed);
    margin-bottom: 4px;
}

/* ── Contact (email / phone) ─────────────────────────────────────────────── */
.eppro-tm-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}
.eppro-tm-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--eppro-gray-500, #6b7280);
    text-decoration: none;
    transition: color .2s;
}
.eppro-tm-contact a:hover { color: var(--eppro-primary, #7c3aed); }
.eppro-tm-contact i { font-size: .85em; }
.eppro-tm-contact--center { justify-content: center; }

/* ── Popup modal ─────────────────────────────────────────────────────────── */
.eppro-tm-wrap.eppro-tm-clickable { cursor: pointer; }
.eppro-tm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}
.eppro-tm-modal-overlay.is-open { display: flex; }
.eppro-tm-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: eppro-modal-in .22s ease;
}
@keyframes eppro-modal-in {
    from { opacity: 0; transform: scale(.94) translateY(16px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.eppro-tm-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--eppro-gray-500, #6b7280);
    transition: background .2s;
}
.eppro-tm-modal-close:hover { background: var(--eppro-gray-200, #e5e7eb); }
.eppro-tm-modal-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--eppro-primary, #7c3aed);
}
.eppro-tm-modal-name { font-size: 22px; font-weight: 700; color: var(--eppro-gray-900, #111827); text-align: center; margin: 0 0 4px; }
.eppro-tm-modal-dept { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--eppro-primary, #7c3aed); text-align: center; margin-bottom: 4px; }
.eppro-tm-modal-designation { font-size: 14px; color: var(--eppro-gray-500, #6b7280); text-align: center; margin: 0 0 16px; }
.eppro-tm-modal-bio { font-size: 14px; color: var(--eppro-gray-600, #4b5563); line-height: 1.7; text-align: center; margin-bottom: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media ( max-width: 768px ) {
    .eppro-tm-style-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .eppro-tm-style-modern .eppro-tm-body {
        align-items: center;
    }
    .eppro-tm-style-modern .eppro-tm-social-list {
        justify-content: center;
    }
    .eppro-tm-style-modern .eppro-tm-photo {
        margin-bottom: 16px;
    }
}
