/* favorites modal styles — extracted from includes/favorites-modal.php */
@keyframes favSpin {
    to { transform: rotate(360deg); }
}

/* Scrollbar hiding */
.favorites-modal-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.favorites-modal-content::-webkit-scrollbar {
    display: none;
}
#favoritesContent {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#favoritesContent::-webkit-scrollbar {
    display: none;
}

/* Favorite items — row layout like chat history */
.favorite-item {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.favorite-item:last-child {
    border-bottom: none;
}
.favorite-item:hover {
    background: rgba(255,255,255,0.06);
}
.favorite-item.mutual {
    background: transparent;
}
.favorite-item.mutual:hover {
    background: rgba(255,255,255,0.06);
}

/* Avatar */
.favorite-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}
.favorite-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.favorite-item.mutual .favorite-avatar {
    border-color: rgba(255,255,255,0.1);
}

/* Mutual badge — small 💕 text beside username instead of overlay */
.favorite-mutual-badge {
    display: none;
}

/* Info */
.favorite-info {
    flex: 1;
    min-width: 0;
}
.favorite-username {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.favorite-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.favorite-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}
.favorite-time {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}
.favorite-flag {
    font-size: 14px;
    line-height: 1;
}

/* Remove button */
.favorite-remove-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.2);
    line-height: 1;
    box-sizing: border-box;
}
.favorite-remove-btn:hover {
    background: rgba(239,68,68,0.15);
    color: #EF4444;
}

/* Verification badges */
.favorite-verification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 8px;
    color: white;
    font-weight: bold;
}
.favorite-verification-badge.gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.favorite-verification-badge.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* Mobile fullscreen */
@media (max-width: 900px) {
    #meetgleFavoritesModal { padding: 0 !important; }
    #meetgleFavoritesModal > .favorites-modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100svh !important;
        max-height: 100vh !important;
        max-height: 100svh !important;
        border-radius: 0 !important;
    }
    #favoritesContent {
        max-height: calc(100svh - 80px) !important;
    }
}
