/* talent_bank_enhancements.css */

:root {
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.premium-talent-header {
    margin-top: -1rem;
}

.header-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--premium-shadow);
}

.premium-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    font-size: 2.2rem;
}

.premium-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.bg-soft-primary {
    background-color: rgba(13, 138, 188, 0.1);
    color: var(--primary-main);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(13, 138, 188, 0.2);
}

/* Search Box */
.premium-search-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--premium-shadow);
    border: 1px solid #f1f5f9;
}

/* Glass Search and Select are now managed in talent_bank_premium.css to avoid conflicts */

/* Grid & Cards */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.talent-item-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.talent-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(13, 138, 188, 0.2);
}

.talent-item-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.talent-avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    object-fit: cover;
    background: #f8fafc;
}

.talent-info-main h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.talent-role-label {
    font-size: 0.85rem;
    color: var(--primary-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.talent-academic-list {
    margin-bottom: 1.2rem;
    border-top: 1px solid #f8fafc;
    padding-top: 1rem;
}

.talent-academic-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.talent-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.skill-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.talent-certs-preview {
    margin-top: auto;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 12px;
}

.cert-mini-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    color: #64748b;
}

.cert-mini-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-cert i {
    color: #8b5cf6;
}

.premium-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(13, 138, 188, 0.1);
    border-top-color: var(--primary-main);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .premium-title {
        font-size: 1.8rem;
    }

    .header-glass-card {
        padding: 1.5rem;
    }

    .premium-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .header-glass-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .premium-title {
    color: white;
}

[data-theme="dark"] .premium-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .premium-search-box {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .glass-search-input input,
[data-theme="dark"] .premium-select {
    background-color: #0f172a;
    border-color: #334155;
    color: white;
}

[data-theme="dark"] .talent-item-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .talent-info-main h4 {
    color: white;
}

[data-theme="dark"] .talent-academic-item {
    color: #94a3b8;
}

[data-theme="dark"] .skill-tag {
    background: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .talent-certs-preview {
    background: #0f172a;
}

[data-theme="dark"] .cert-mini-item {
    color: #94a3b8;
}

[data-theme="dark"] .glass-search-input input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .premium-select option {
    background-color: #1e293b;
    color: white;
}

[data-theme="dark"] .bg-soft-primary {
    background-color: rgba(13, 138, 188, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .talent-meta-mini i {
    color: #38bdf8;
}

[data-theme="dark"] .premium-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-main);
}

[data-theme="dark"] .talent-card-footer {
    border-top-color: #334155 !important;
}

[data-theme="dark"] .talent-academic-list {
    border-top-color: #334155;
}

/* Smart Match Button */
.btn-smart-match {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    border: none;
    border-radius: 14px;
    color: white;
    padding: 0 20px;
    height: 100%;
    min-height: 52px;
    font-size: 0.95rem;
    font-weight: 750;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-smart-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.btn-smart-match i {
    font-size: 1.1rem;
}

/* Smart Match Animation States */
.btn-smart-match.scanning {
    background: #1e293b !important;
    pointer-events: none;
    box-shadow: none;
}

.btn-smart-match.scanning i {
    animation: fa-spin 1s linear infinite;
}

/* Highlighted Talent Card */
.talent-item-card.smart-highlight {
    border: 2px solid #8b5cf6 !important;
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6) !important;
    transform: scale(1.04) translateY(-12px) !important;
    z-index: 10;
}

.smart-match-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 11;
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(139, 92, 246, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.scanning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.08);
    backdrop-filter: blur(2px);
    z-index: 9998;
    display: none;
    pointer-events: none;
}

.scanning-line {
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    box-shadow: 0 0 20px #8b5cf6;
    top: -10%;
    z-index: 9999;
}

@keyframes scan-animation {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

.scanning-active .scanning-line {
    animation: scan-animation 2.5s linear infinite;
}