/* ==========================================
   MangaStudio - Character Popup Component
   ========================================== */

/* Character Mention (inline) */
.character-mention {
    font-weight: 600;
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.character-mention:hover {
    background: rgba(0, 113, 227, 0.15);
}

/* Character Sheet Popup */
.character-popup {
    position: fixed;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    width: 280px;
    z-index: 1500;
    display: none;
    overflow: hidden;
}

.character-popup.visible {
    display: block;
    animation: popupFade 0.2s ease;
}

@keyframes popupFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Popup Header */
.character-popup-header {
    background: linear-gradient(135deg, #e8e8ed 0%, #d2d2d7 100%);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.character-popup-avatar {
    width: 70px;
    height: 70px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.character-popup-avatar svg {
    width: 32px;
    height: 32px;
    color: var(--text-tertiary);
}

/* Close Button */
.character-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.character-popup-close:hover {
    background: white;
    transform: scale(1.1);
}

.character-popup-close svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

/* Popup Body */
.character-popup-body {
    padding: 16px;
}

.character-popup-name {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4px;
}

.character-popup-role {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 12px;
}

/* Popup Stats */
.character-popup-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.character-popup-stat {
    background: var(--bg-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.character-popup-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.character-popup-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
}

/* Popup Description */
.character-popup-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
