/* ============================================================
   VOOV Team Members — Frontend Styles
   ============================================================ */

/* ── Grid ──────────────────────────────────────────────────── */
.voov-tm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Filter Tabs ────────────────────────────────────────────── */
.voov-tm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.voov-tm-filter-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.15s ease;
    background-color: #f0f0f5;
    color: #555;
    letter-spacing: 0.01em;
}
.voov-tm-filter-btn.active,
.voov-tm-filter-btn:hover {
    background-color: #1a1a2e;
    color: #fff;
}
.voov-tm-filter-btn:active { transform: scale(0.97); }

/* ── Card ───────────────────────────────────────────────────── */
.voov-tm-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.28s ease;
    --voov-accent: #f0c020;
    position: relative;
    display: flex;
    flex-direction: column;
}
.voov-tm-card.voov-tm-hidden { display: none; }

/* ── Hover effects ──────────────────────────────────────────── */
.voov-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.voov-hover-scale:hover {
    transform: scale(1.025);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.voov-hover-border { border-bottom: 3px solid transparent; }
.voov-hover-border:hover {
    border-bottom-color: var(--voov-accent, #f0c020);
    transform: translateY(-3px);
}
.voov-hover-overlay .voov-tm-photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,26,46,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.voov-hover-overlay:hover .voov-tm-photo-overlay { opacity: 1; }
.voov-tm-photo-overlay p {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ── Photo wrap ─────────────────────────────────────────────── */
.voov-tm-photo-wrap {
    width: 100%;
    height: 280px;
    overflow: visible; /* allow play button pulse ring to show outside bounds */
    position: relative;
    flex-shrink: 0;
    display: block;
}

/* Clip the photo itself without clipping the play button */
.voov-tm-photo-wrap img,
.voov-tm-photo-link {
    border-radius: inherit; /* picks up card border-radius if set */
    overflow: hidden;
}

/* The img gets object-position applied as inline style in PHP.
   We only set structural properties here — nothing that touches
   object-position, so there is zero chance of a specificity conflict. */
.voov-tm-photo-wrap img,
.voov-tm-photo-link img {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit and object-position are set via inline style attribute */
}

.voov-tm-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.voov-tm-card:hover .voov-tm-photo-wrap img {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.voov-tm-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8f0 0%, #d0d0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.voov-tm-photo-placeholder span {
    font-size: 64px;
    font-weight: 700;
    color: #aaa;
    line-height: 1;
    text-transform: uppercase;
}

/* ── Video Play Button ──────────────────────────────────────── */
.voov-tm-play-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 20; /* above photo link */
    animation: voovPulse 2.4s cubic-bezier(0.4,0,0.6,1) infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: all; /* ensure clickable even if siblings have pointer-events */
}
.voov-tm-play-btn svg {
    width: 20px;
    height: 20px;
    fill: #1a1a2e;
    margin-left: 3px; /* optical center for play icon */
}
.voov-tm-play-btn:hover {
    transform: scale(1.12);
    background: #fff;
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
    animation: none;
}

@keyframes voovPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(26,26,46,0.35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 12px rgba(26,26,46,0);
        transform: scale(1.04);
    }
}

/* ── Card body ──────────────────────────────────────────────── */
.voov-tm-card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ── Badge ──────────────────────────────────────────────────── */
.voov-tm-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
    background: rgba(240,192,32,0.12);
    color: #b08000;
}

/* ── Name ───────────────────────────────────────────────────── */
.voov-tm-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 2px;
    line-height: 1.25;
}
.voov-tm-credentials {
    font-size: 0.68em;
    font-weight: 500;
    color: #8a8fa8;
    vertical-align: super;
}

/* ── Position ───────────────────────────────────────────────── */
.voov-tm-position {
    font-size: 14px;
    color: #8a8fa8;
    margin: 0;
    line-height: 1.4;
}

/* ── Divider ─────────────────────────────────────────────────── */
.voov-tm-divider {
    border: none;
    border-top: 1px solid #e8e8f0;
    margin: 14px 0;
}

/* ── Bio ─────────────────────────────────────────────────────── */
.voov-tm-bio {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}

/* ── Contact ─────────────────────────────────────────────────── */
.voov-tm-contact-row { margin: 0 0 6px; }
.voov-tm-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}
.voov-tm-contact-link:hover { color: #1a1a2e; }
.voov-tm-contact-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.voov-tm-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
}
.voov-tm-btn {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}
.voov-tm-btn:active { transform: scale(0.98); }
.voov-tm-btn-read_more { background-color: #1a1a2e; color: #fff; }
.voov-tm-btn-read_more:hover { background-color: #333352; color: #fff; }
.voov-tm-btn-schedule { background-color: #f0c020; color: #1a1a2e; }
.voov-tm-btn-schedule:hover { background-color: #e0b010; color: #1a1a2e; }

/* ── LinkedIn ────────────────────────────────────────────────── */
.voov-tm-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.voov-tm-linkedin-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.voov-tm-linkedin-link:hover { transform: scale(1.12); }
.voov-tm-linkedin-link svg {
    width: 24px;
    height: 24px;
    fill: #a0a4b8;
    transition: fill 0.2s ease;
}
.voov-tm-linkedin-link:hover svg { fill: #0077b5; }

/* ── Video Modal ─────────────────────────────────────────────── */
.voov-tm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.voov-tm-modal.is-open {
    opacity: 1;
    pointer-events: all;
}
.voov-tm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8,8,20,0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.voov-tm-modal-box {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 900px;
    background: #0d0d1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.7);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.voov-tm-modal.is-open .voov-tm-modal-box {
    transform: scale(1) translateY(0);
}
.voov-tm-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 10;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}
.voov-tm-modal-close:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.1);
}
.voov-tm-modal-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}
.voov-tm-modal-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Filter animation ────────────────────────────────────────── */
@keyframes voovCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.voov-tm-card.voov-tm-visible {
    animation: voovCardIn 0.3s ease forwards;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) { .voov-tm-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .voov-tm-grid { grid-template-columns: 1fr; } }
