/* =====================================================
   Team Members CPT — Estilos Frontend
   Compatível com Elementor | Responsivo | 3 estilos
   ===================================================== */

/* ── Grid ── */
.tm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.tm-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tm-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tm-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.tm-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ── Card Base ── */
.tm-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

/* ── Foto ── */
.tm-card__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.tm-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.tm-card:hover .tm-card__photo img {
    transform: scale(1.04);
}

.tm-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
    color: #aaa;
}

.tm-card__photo-placeholder svg {
    width: 40%;
    height: 40%;
}

/* ── Info ── */
.tm-card__info {
    padding: 14px 16px 16px;
}

.tm-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.3;
}

.tm-card__cargo {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* ── Redes Sociais ── */
.tm-card__redes {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tm-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.tm-social svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tm-social:hover {
    color: #1a1a1a;
    transform: scale(1.15);
}

.tm-social--linkedin:hover { color: #0077b5; }
.tm-social--instagram:hover { color: #e1306c; }
.tm-social--twitter:hover { color: #000; }
.tm-social--email:hover { color: #ea4335; }

/* ── Estilo: Dark (inspirado na imagem) ── */
.tm-style--dark {
    background: transparent;
}

.tm-style--dark .tm-card {
    background: #181818;
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #2a2a2a;
}

.tm-style--dark .tm-card__photo {
    aspect-ratio: 3 / 4;
    border-radius: 0;
}

.tm-style--dark .tm-card__photo img {
    filter: grayscale(100%);
}

.tm-style--dark .tm-card__info {
    padding: 10px 12px 12px;
    background: rgba(0,0,0,0.6);
    margin-top: -1px;
}

.tm-style--dark .tm-card__name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.tm-style--dark .tm-card__cargo {
    color: #aaa;
    font-size: 10px;
    letter-spacing: 0.1em;
}

.tm-style--dark .tm-social {
    color: #666;
}

.tm-style--dark .tm-social:hover {
    color: #fff;
}

/* ── Estilo: Minimal ── */
.tm-style--minimal .tm-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.tm-style--minimal .tm-card__photo {
    border-radius: 8px;
}

.tm-style--minimal .tm-card__info {
    padding: 12px 4px;
}

.tm-style--minimal .tm-card__name {
    font-size: 14px;
}

.tm-style--minimal .tm-card__cargo {
    font-size: 11px;
    color: #888;
}

/* ── Vazio ── */
.tm-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* ── Responsivo ── */
@media (max-width: 1024px) {
    .tm-grid--cols-5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .tm-grid,
    .tm-grid--cols-4,
    .tm-grid--cols-5 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .tm-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .tm-grid,
    .tm-grid--cols-3,
    .tm-grid--cols-4,
    .tm-grid--cols-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
