/**
 * peoplePicker.css - Styles for PeoplePicker component
 * Person card styles needed when PeoplePicker is used outside the profile page.
 * Profile page has these in profile.css; this file provides them for other pages.
 */

/* Rating Card (base) */
.rating-card {
    background: var(--mv-bg-card, #fff);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, opacity 0.3s;
    min-width: 0;
}
.rating-card:hover { transform: translateY(-2px); }
.rating-card.rated-out { opacity: 0; transform: scale(0.9); }

.rating-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: contain;
    background: var(--mv-bg-surface, #e9ecef);
}

.person-card .rating-card-poster {
    aspect-ratio: 2/3;
    object-fit: cover;
    object-position: top center;
}

.rating-card-info { padding: 0.75rem; }
.person-card .rating-card-info { padding: 0.5rem; }

.rating-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.person-card .rating-card-title { font-size: 0.85rem; }

.rating-card-year { font-size: 0.8rem; color: var(--mv-text-secondary, #6c757d); }
.person-card .rating-card-year,
.person-card .rating-card-subtitle { font-size: 0.75rem; }

.rating-card-subtitle {
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Person Action Buttons — heart + skip */
.person-card-image-wrapper { position: relative; }

.person-action-buttons {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    z-index: 5;
}
.person-action-buttons .favorite-heart { position: static; }

.favorite-heart {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 5;
}
.favorite-heart i { font-size: 0.8rem; color: #6c757d; transition: all 0.2s ease; }
.favorite-heart:hover { transform: scale(1.1); background: #fff; }
.favorite-heart:hover i { color: #dc3545; }
.favorite-heart.active { background: rgba(255, 255, 255, 0.9); }
.favorite-heart.active i { color: #dc3545; }
.favorite-heart.active:hover { background: #fff; }

.person-skip-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.person-skip-btn i { font-size: 0.7rem; color: #6c757d; transition: all 0.2s ease; }
.person-skip-btn:hover { transform: scale(1.1); background: #fff; }
.person-skip-btn:hover i { color: #dc3545; }

/* Add-to-List button (opt-in via PeoplePicker config) — matches heart overlay style */
.person-action-buttons .person-action-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.person-action-buttons .person-action-btn i { font-size: 0.8rem; color: #6c757d; transition: all 0.2s ease; }
.person-action-buttons .person-action-btn:hover { transform: scale(1.1); background: #fff; }
.person-action-buttons .person-action-btn:hover i { color: #0d6efd; }
/* "On a list" state — EntityListPopover.highlightButtons() adds .btn-info.
   Solid blue fill + white icon, matching book/video-game card convention. */
.person-action-buttons .person-action-btn.btn-info,
.person-action-buttons .person-action-btn.btn-info:hover {
    background: #0d6efd !important;
}
.person-action-buttons .person-action-btn.btn-info i,
.person-action-buttons .person-action-btn.btn-info:hover i {
    color: #fff !important;
}

/* Refresh card */
.refresh-list-card .poster-container {
    overflow: visible !important;
    padding-top: 0 !important;
}

/* Dark mode */
[data-bs-theme="dark"] .favorite-heart { background: rgba(0, 0, 0, 0.7); }
[data-bs-theme="dark"] .favorite-heart:hover { background: rgba(0, 0, 0, 0.85); }
[data-bs-theme="dark"] .favorite-heart.active { background: rgba(0, 0, 0, 0.7); }
[data-bs-theme="dark"] .favorite-heart.active i { color: #dc3545; }
[data-bs-theme="dark"] .person-skip-btn { background: rgba(0, 0, 0, 0.7); }
[data-bs-theme="dark"] .person-skip-btn:hover { background: rgba(0, 0, 0, 0.85); }
[data-bs-theme="dark"] .person-skip-btn:hover i { color: #ff6b7a; }
[data-bs-theme="dark"] .refresh-list-card .poster-container { background: var(--mv-bg-surface) !important; }
