/* ═══════════════════════════════════════════════════════════════════
   TALENT CARDS V2 — Design Multinacional Premium
   Inspirado em: LinkedIn, Greenhouse, SAP SuccessFactors
   Fix: foto cortada, layout limpo, avatar circular profissional
   ═══════════════════════════════════════════════════════════════════ */

/* ── GRID ─────────────────────────────────────────────────────────── */
.talent-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 10px;
}
@media (max-width: 640px)                    { .talent-cards-grid { grid-template-columns: 1fr; } }
@media (min-width: 1400px)                   { .talent-cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) and (max-width: 1399px) { .talent-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  and (max-width: 999px)  { .talent-cards-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── CARD WRAPPER ─────────────────────────────────────────────────── */
.tc2-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e8edf3;
    padding: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}
.tc2-card:hover {
    box-shadow: 0 10px 32px rgba(13,138,188,0.14);
    border-color: #0D8ABC;
    transform: translateY(-3px);
}
[data-theme="dark"] .tc2-card {
    background: #1e293b;
    border-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .tc2-card:hover {
    border-color: #0D8ABC;
}

/* ── CARD COVER STRIP ─────────────────────────────────────────────── */
.tc2-cover {
    height: 64px;
    background: linear-gradient(135deg, #0f2d4a 0%, #0D8ABC 55%, #7c3aed 100%);
    position: relative;
    flex-shrink: 0;
}
.tc2-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 18px 18px;
}

/* Tier badge no canto */
.tc2-tier-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: white;
    z-index: 2;
}
.tc2-tier-ouro   { background: rgba(245,158,11,0.85);  }
.tc2-tier-prata  { background: rgba(148,163,184,0.85); }
.tc2-tier-bronze { background: rgba(180,120,60,0.75);  }

/* ── AVATAR ───────────────────────────────────────────────────────── */
.tc2-body {
    padding: 0 18px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tc2-avatar-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: -28px;
    margin-bottom: 10px;
}

/* Container do avatar — dimensões fixas para evitar distorção */
.tc2-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

/* A foto — CIRCULAR, object-fit garantido */
.tc2-avatar-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;          /* circular = rosto sempre bem exibido */
    object-fit: cover;
    object-position: center top; /* prioriza a região do rosto */
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: block;
    background: #0D8ABC;
}
[data-theme="dark"] .tc2-avatar-img {
    border-color: #1e293b;
}

/* Fallback de iniciais */
.tc2-avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D8ABC, #0284c7);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    letter-spacing: -0.5px;
}
[data-theme="dark"] .tc2-avatar-initials {
    border-color: #1e293b;
}

/* Status dot (opcional — online/offline futuramente) */
.tc2-avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
}

/* Score badge embaixo à direita do avatar */
.tc2-score-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* XP Badge ao lado direito do avatar */
.tc2-xp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(13,138,188,0.08);
    color: #0D8ABC;
    border: 1px solid rgba(13,138,188,0.2);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    margin-bottom: 4px;
}

/* ── INFO ─────────────────────────────────────────────────────────── */
.tc2-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-theme="dark"] .tc2-name { color: #f1f5f9; }

.tc2-cargo {
    font-size: 0.77rem;
    color: #0D8ABC;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc2-diret {
    font-size: 0.71rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc2-diret i { font-size: 0.62rem; flex-shrink: 0; }

.tc2-edu {
    font-size: 0.69rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc2-edu i { font-size: 0.62rem; flex-shrink: 0; color: #f59e0b; }

/* ── STATS ROW ────────────────────────────────────────────────────── */
.tc2-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 10px 0;
    padding: 8px 0;
}
[data-theme="dark"] .tc2-stats {
    border-color: rgba(255,255,255,0.06);
}
.tc2-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.tc2-stat + .tc2-stat {
    border-left: 1px solid #f1f5f9;
}
[data-theme="dark"] .tc2-stat + .tc2-stat {
    border-color: rgba(255,255,255,0.06);
}
.tc2-stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}
.tc2-stat-lbl {
    font-size: 0.6rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ── SKILLS ───────────────────────────────────────────────────────── */
.tc2-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 24px;
    margin-bottom: 12px;
}
.tc2-skill-chip {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}
.tc2-skill-more {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
}
[data-theme="dark"] .tc2-skill-more {
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

/* ── CTA BUTTON ───────────────────────────────────────────────────── */
.tc2-btn {
    width: 100%;
    padding: 9px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0D8ABC, #0284c7);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: filter 0.18s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    letter-spacing: 0.01em;
}
.tc2-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* ── MODAL AVATAR FIX ──────────────────────────────────────────────── */
/* Garante que a foto no modal também seja bem cortada */
.talent-modal-avatar {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;   /* circular no modal também */
    object-fit: cover !important;
    object-position: center top !important;
    border: 4px solid white !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    flex-shrink: 0;
    display: block;
}
[data-theme="dark"] .talent-modal-avatar {
    border-color: #1e293b !important;
}

.talent-modal-avatar-wrap {
    flex-shrink: 0;
}
