/* Leadership Keywords/Tags Styling */

/* Keyword Pills/Capsules for Cards */
.leader-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.keyword-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary-cyan);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.keyword-pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.keyword-pill:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: var(--secondary-cyan);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.keyword-pill:hover::before {
    width: 100%;
    height: 100%;
}

/* Category-based color coding */
.keyword-pill.technical {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.keyword-pill.technical:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
}

.keyword-pill.business {
    background: rgba(229, 193, 189, 0.1);
    border-color: rgba(229, 193, 189, 0.3);
    color: var(--accent-pink);
}

.keyword-pill.business:hover {
    background: rgba(229, 193, 189, 0.2);
    border-color: var(--accent-pink);
}

.keyword-pill.research {
    background: rgba(157, 78, 221, 0.1);
    border-color: rgba(157, 78, 221, 0.3);
    color: #a78bfa;
}

.keyword-pill.research:hover {
    background: rgba(157, 78, 221, 0.2);
    border-color: #a78bfa;
}

/* Modal Keywords Section */
.modal-keywords {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(78, 205, 196, 0.2);
}

.modal-keywords-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-cyan);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.modal-keyword-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), rgba(78, 205, 196, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.2);
    border-radius: 25px;
    font-size: 0.85rem;
    color: #B8C5E0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-keyword-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal-keyword-item:hover::before {
    left: 100%;
}

.modal-keyword-item:hover {
    transform: translateX(5px);
    border-color: var(--secondary-cyan);
    color: #fff;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

/* Icon support for keywords */
.keyword-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    opacity: 0.8;
}

/* Animated entrance for keywords */
@keyframes keywordFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.keyword-pill {
    animation: keywordFadeIn 0.4s ease-out backwards;
}

.keyword-pill:nth-child(1) { animation-delay: 0.1s; }
.keyword-pill:nth-child(2) { animation-delay: 0.15s; }
.keyword-pill:nth-child(3) { animation-delay: 0.2s; }
.keyword-pill:nth-child(4) { animation-delay: 0.25s; }
.keyword-pill:nth-child(5) { animation-delay: 0.3s; }

/* Compact version for preview cards */
.leader-card .leader-keywords {
    margin-top: 10px;
    padding-top: 10px;
}

.leader-card .keyword-pill {
    padding: 3px 10px;
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-keywords-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .modal-keyword-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .leader-keywords {
        gap: 6px;
    }
    
    .keyword-pill {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
}

/* Special highlighting for key expertise */
.keyword-pill.highlight {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(59, 130, 246, 0.2));
    border-color: var(--secondary-cyan);
    color: #fff;
    font-weight: 600;
}

/* Loading animation for keywords */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.keyword-pill.loading {
    background: linear-gradient(90deg, 
        rgba(78, 205, 196, 0.1) 25%, 
        rgba(78, 205, 196, 0.2) 50%, 
        rgba(78, 205, 196, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}