/* Modern Talent Cards - Matching Image Design */

.modern-talent-card {
    background: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: local;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    min-height: 400px;
    justify-content: flex-end;
    will-change: transform;
}

.modern-talent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.2);
}

.modern-talent-card:hover {
    background-size: 105%;
}

/* Gradient Overlay */
.talent-card-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Profile Image Section (for badge positioning) */
.talent-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 0;
    z-index: 2;
}

.talent-level-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

/* Profile Info Section */
.talent-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: transparent;
}

.talent-card-header {
    margin-bottom: 16px;
}

.talent-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.talent-card-name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.talent-card-name a:hover {
    color: #fecaca;
}

.talent-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.talent-verified-badge svg {
    width: 100%;
    height: 100%;
}

.talent-card-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stats Section */
.talent-card-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.talent-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.talent-stat-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.talent-stat-item svg path {
    stroke: rgba(255, 255, 255, 0.9);
}

.talent-stat-value {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.talent-stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Action Button */
.talent-card-action {
    padding-top: 12px;
}

.talent-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.talent-follow-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.talent-follow-btn svg {
    transition: transform 0.3s ease;
}

.talent-follow-btn:hover svg {
    transform: translateX(2px);
}

/* Image Quality Enhancement */
.modern-talent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(0);
    -webkit-filter: blur(0);
    transform: translateZ(0);
    will-change: transform;
    z-index: 0;
}

.modern-talent-card {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive Design */
@media (max-width: 768px) {
    .talent-card-content {
        padding: 16px;
    }

    .talent-card-name {
        font-size: 18px;
    }

    .talent-card-title {
        font-size: 13px;
    }

    .talent-card-stats {
        gap: 16px;
    }

    .talent-stat-item {
        font-size: 12px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modern-talent-card {
        image-rendering: auto;
        -ms-interpolation-mode: bicubic;
    }
}

/* Empty State */
.categoryWrap-wrapper-item:empty::before {
    content: "No talents found";
    display: block;
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 16px;
}

