/*
 * Talent Module Styles
 * Page layout: companies.css (shared with companies, locations pages)
 * This file: talent card internals + profile teaser page
 */

/* ========== Talent Card ========== */

.tal-card {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.tal-card-inner {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tal-card:hover .tal-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Card header: info left, badge right */
.tal-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.tal-card__info {
    flex: 1;
    min-width: 0;
}

.tal-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem 0;
}

.tal-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.tal-card__headline {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tal-card__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
}

.tal-card__location i {
    color: #999;
    font-size: 0.8rem;
}

.tal-card__experience {
    background: #f8f9fa;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Type badge — small, upper right, matching job-count-pill from locations */
.tal-card__type-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background-color: #3172ae;
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    white-space: nowrap;
}

.tal-card__type-badge-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.tal-card__type-badge-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.tal-card__type-badge-label {
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 1px;
}

/* Skills row */
.tal-card__skills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tal-card__skills-label {
    font-size: 0.85rem;
    color: #6c757d;
    flex-shrink: 0;
}

.tal-card__skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tal-skill-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #166534;
}

/* Badges */
.tal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tal-badge--verified {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tal-badge--recent {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.tal-badge--school {
    background-color: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* View Profile button */
.tal-card__actions {
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.75rem;
}

.tal-btn--view-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}

.tal-card:hover .tal-btn--view-profile {
    background: #f8f9fa;
}

/* ========== Profile Teaser Page ========== */

.talent-profile-container {
    max-width: 1200px;
    margin: 2rem auto 3rem;
}

.talent-profile-header {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #f1f5f9;
}

.talent-profile-header-inner {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
}

.talent-profile-avatar,
.talent-profile-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
}

.talent-profile-avatar {
    background: linear-gradient(135deg, #3172ae 0%, #1e40af 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px rgba(49, 114, 174, 0.25);
}

.talent-profile-photo {
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.talent-profile-info {
    flex: 1;
    min-width: 0;
}

.talent-profile-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #111827;
    letter-spacing: -0.01em;
}

.talent-profile-info .talent-headline {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Headline rendered as chips when it contains | separators */
.talent-headline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.875rem;
}

.talent-headline-chip {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: #f1f5f9;
    color: #334155;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Meta pills row (location, years, school) */
.talent-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.talent-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #475569;
}

.talent-meta-pill i {
    color: #94a3b8;
    font-size: 0.85rem;
}

.talent-profile-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

/* "Open to roles" preferred-titles row */
.talent-open-to {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.talent-open-to-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-right: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.talent-open-to-label i {
    color: #3172ae;
    margin-right: 0.3rem;
}

.talent-open-to-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ========== Body cards ========== */

.talent-section-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 1.5rem;
}

.talent-section-card h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.125rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.talent-section-card h2 i {
    color: #3172ae;
}

/* Summary block — readable typography */
.talent-summary {
    color: #334155;
    font-size: 0.975rem;
    line-height: 1.55;
    max-width: 70ch;
    white-space: pre-line;
}

/* Empty-state text in sidebar cards */
.talent-empty-state {
    color: #9ca3af;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* Sidebar variant: tighter padding for narrower column */
.talent-sidebar-card {
    padding: 1.25rem 1.5rem;
}

/* Definition list for sidebar facts */
.talent-detail-list {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.talent-detail-list dt {
    color: #6b7280;
    font-weight: 500;
}

.talent-detail-list dd {
    margin: 0;
    color: #1f2937;
    font-weight: 500;
}

/* Resume teaser card */
.talent-resume-card .talent-resume-available {
    color: #166534;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.talent-resume-card .talent-resume-available i {
    color: #16a34a;
    margin-right: 0.3rem;
}

.talent-resume-note {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.talent-gated-section {
    position: relative;
    overflow: hidden;
}

.talent-gated-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.95) 40%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.talent-gated-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.talent-gated-overlay p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.talent-gated-blur {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    padding: 1.5rem;
}

.talent-gated-redacted {
    letter-spacing: 0.05em;
    color: #6b7280;
    font-family: monospace;
}

.talent-breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.85rem;
}

.talent-breadcrumb a {
    color: #3172ae;
    text-decoration: none;
}

.talent-breadcrumb a:hover {
    text-decoration: underline;
}

.talent-breadcrumb .separator {
    margin: 0 0.4rem;
    color: #9ca3af;
}

.talent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.talent-badge--verified {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.talent-badge--recent {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.talent-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.talent-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #ecfdf5;
    color: #065f46;
    padding: 0.35rem 0.75rem;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.talent-skill-tag i {
    color: #10b981;
    font-size: 0.75rem;
}

.talent-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.talent-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.talent-meta-item i {
    color: #9ca3af;
    font-size: 0.8rem;
}

.talent-location {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.talent-location i {
    margin-right: 0.25rem;
    color: #9ca3af;
}

.talent-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.talent-card-cta {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.talent-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #3172ae;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .talent-profile-container {
        margin: 1rem auto 2rem;
    }

    .talent-profile-header {
        padding: 1.5rem;
    }

    .talent-profile-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .talent-profile-info h1 {
        font-size: 1.5rem;
    }

    .talent-profile-badges,
    .talent-profile-meta,
    .talent-headline-chips,
    .talent-open-to {
        justify-content: center;
    }

    .talent-section-card {
        padding: 1.25rem 1.25rem;
    }

    .talent-section-card h2 {
        font-size: 1rem;
    }

    .talent-summary {
        font-size: 0.95rem;
        line-height: 1.65;
    }
}